-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add missing migrations #3608
Add missing migrations #3608
Conversation
Good! I noticed this some time ago and I wasn't sure why this was happening. Do you know why these migrations are needed? I supposed that it could be some |
So this models were added by #2764 |
@humitos @safwanrahman maybe something to do with the And I'm not sure about the production db. |
@stsewd the |
@ericholscher can you take a quick look at this PR? This is causing problems in other PRs to generate the proper migrations files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe most of these are due to linting and other cleanup, but the integration proxy models might be either a missed migration or a difference in django versions or something? I believe we need those migrations either way.
I will block on the migration names. As I usually bring up in migration PRs, I prefer migrations to be named, not autonamed. If there was a way to auto enforce this, I'd be 👍 on that as well.
0becf0f
to
befa4c8
Compare
@agjohnson I did a grep and didn't find any previous migration about that models on the project :/ I updated the names, I'm not sure if I chosen the more descriptive name for some migrations, let me know if you want me to change some names. |
This looks good, and will remove the Will wait on @agjohnson's re-review to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the integration proxy models might be either a missed migration or a difference in django versions or something? I believe we need those migrations either way.
I'd say that it's because the proxy = True
. There is a better explanation here: https://stackoverflow.com/questions/37988914/why-does-django-create-migration-files-for-proxy-models
I just left some suggestions regarding the naming of the files.
@@ -0,0 +1,20 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name suggestion: 0002_alter_choices_in_level_model.py
@@ -0,0 +1,56 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name suggestion: 0003_create_proxy_webhook_models.py
@@ -0,0 +1,50 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name suggestion: 0024_alter_and_project_models.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...alter_and
domain and project, right?
befa4c8
to
c379bfb
Compare
c379bfb
to
24cbc42
Compare
This is outdated. Closing this, we should just run this right before doing a deploy, since any PR will likely conflict or go stale. |
There are some missing migrations on the project, this make a little difficult to isolate migrations for other recent changes.