-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warehouse/migrations: add missing migrations for organizations #11238
Conversation
Putting the 'blocked' label on this until we can review, probably don't want to merge this as-is. |
Just for my own edification: these probably originate from #11184, right? |
Looks like there is some of #8324 in there as well. We probably need a CI check that ensures that no migrations would be autogenerated... |
0e3e449
to
0a7cd33
Compare
This is now just changes that resulted from the organization-related work. @divbzero @sterbo could you take a look and make sure these are as intended? See also https://warehouse.pypa.io/development/database-migrations.html regarding autogenerating migrations when changing models. |
1 similar comment
This is now just changes that resulted from the organization-related work. @divbzero @sterbo could you take a look and make sure these are as intended? See also https://warehouse.pypa.io/development/database-migrations.html regarding autogenerating migrations when changing models. |
0a7cd33
to
160bee7
Compare
160bee7
to
2910326
Compare
Ugh I was the last one to merge and test migrations for #11184. Are these the right steps for testing migrations?
I thought I had done that but must have missed something. |
Or was the error in this case caused by us using |
I think I see what happened. We manually added But Alembic doesn’t translate @sterbo I recall you mentioned something about this in a discussion. What’s the right move here? Could we give up on having |
I'm fine with not enforcing this at the database level. Banners and sponsors are configured in a similar fashion. |
You probably also want to try to autogenerate a migration whenever models have been changed with
I think you probably want to set |
it looks like that'll do the trick. we'll give that a whirl. thanks @di |
Was crufting up another migration.