Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1320136 - Mark redundant RunSQL migration operations as elidable
Django's `squashmigrations` command cannot optimise past `RunSQL` or `RunPython` migration operations, since it cannot guarantee that the order of migration operations isn't important. However as of Django 1.10 these commands can be marked as `elidable`, if they are not required in the final migration (eg if they only manipulate legacy data and have already run in all necessary environments), which solves this problem.
- Loading branch information
Ed Morley
committed
Jan 16, 2017
1 parent
bd56cca
commit 6774130
Showing
4 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters