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
Database migrations fail to apply automatically #2420
Comments
@hackdna I'm fairly sure the migration applies. You can check with We'll always have stale content types if we're suppressing user input. I'm not sure if newer Django versions have taken care of this. As for:
That seems unrelated to this with the migrations created all being related to
Probably related to 811e1d7 |
It looks like it is possible to remove stale content types in a migration using update_contenttypes management command. So, it should be added to core/migrations/0013_auto_20171117_1058.py. |
@hackdna To me it looks like we couldn't utilize that code without manual intervention.
|
OK, in that case, a note about running migrations interactively should be added to the release changelog.
So, this note should have been added to several previous releases where models where deleted. |
@hackdna Okay I can go ahead and add notes to past releases that have included the deletion of these models, and close this after I'm done. |
Steps to reproduce
Observed behavior
Expected behavior
Migrations should apply automatically.
Notes
Additional information displayed when running the migrate command without the
--noinput
:The text was updated successfully, but these errors were encountered: