summaryrefslogtreecommitdiff
path: root/django/db/migrations
AgeCommit message (Collapse)Author
2014-06-25Fixed #22903 -- Fixed migration generation if index_together or ↵Tim Graham
unique_together is removed from a model.
2014-06-23Fixed #22708: Typo in autodetector base dependency genAndrew Godwin
2014-06-23Fixed #22881 -- Better soft_applied migration detectionChris Beaven
2014-06-22Include swapped apps in autodetector stateAndrew Godwin
2014-06-22Fixed #22875: Optimizer did not take through= into account.Andrew Godwin
2014-06-17Fixed #22861: Internal migrations done first so __first__ worksAndrew Godwin
Thanks to Chris Beaven.
2014-06-17Fix __latest__ to actually resolve to the latest migrationAndrew Godwin
2014-06-17Fixed #22853: Swapped models are now ignored for migration operations.Andrew Godwin
2014-06-17Fixed #22577: Python 3 broke on non-module migrations directoryVíðir Valberg Guðmundsson
2014-06-16Ignore more blank throughs on swapped-out M2MsAndrew Godwin
2014-06-16Ignore through being None on some special cases of fields.Andrew Godwin
2014-06-16Fixed flake8 error.Tim Graham
2014-06-16Fixed #22847: Optimizer wasn't expecting unresolved FKsAndrew Godwin
2014-06-16Fixed #22783: Make sure swappable models come first in creationAndrew Godwin
2014-06-16Fixed #22848: Ignore no-migrations errors during makemigrations onlyAndrew Godwin
2014-06-16Use __first__ not __latest__ for unknown app dependenciesAndrew Godwin
2014-06-16Fixed #22788 -- Ensured custom migration operations can be written.Matthew Schinckel
This inspects the migration operation, and if it is not in the django.db.migrations module, it adds the relevant imports to the migration writer and uses the correct class name.
2014-06-15Fixed several flake8 errorsAlex Gaynor
2014-06-15Fixed #22568: Better proxy model support in migrationsAndrew Godwin
2014-06-15Fixed #22470: Full migration support for order_with_respect_toAndrew Godwin
2014-06-15Persist non-schema-relevant Meta changes in migrationsAndrew Godwin
2014-06-15Fixed #22833: Autodetector not doing through mapping correctlyAndrew Godwin
2014-06-15Fixed #22563: Added migration to admin, fixed a few more loader issues.Andrew Godwin
2014-06-15Improve error message for missing migrations in an appAndrew Godwin
2014-06-12Fix test breakage from previous state fixAndrew Godwin
2014-06-12Fixed #22823 (and partly #22563) - FKs from unmigrated apps breaking state.Andrew Godwin
Thanks to bendavis78 for the test and diagnostic work.
2014-06-08Fixed #22777: Add dependency on through for autodetected M2M addsAndrew Godwin
2014-06-07Fixed #22750, #22248: Model renaming now also alters field FKsAndrew Godwin
2014-06-07Removed usage of deprecated django.utils.importlib.Tim Graham
2014-06-07Fixed #22436: More careful checking on method ref'ce serializationAndrew Godwin
2014-06-06Fixed flake8 errors.Tim Graham
2014-06-05Prevent operation pollution by later operations of fieldsAndrew Godwin
2014-06-05Rewrote migration autodetector to involve actual computer science.Andrew Godwin
Fixes #22605, #22735; also lays the ground for some other fixes.
2014-06-05Merge pull request #2736 from SmileyChris/migration-run_beforeAndrew Godwin
Fixed #22725 - Migration.run_before does nothing
2014-06-01Fixed #22659 -- Prevent model states from sharing field instances.Simon Charette
Thanks to Trac alias tbartelmess for the report and the test project.
2014-05-30Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` packageMoayad Mardini
`makemigrations` will automatically create the package specified in `MIGRATION_MODULES` if it doesn't already exist. Thanks ovidiuc4 for the report.
2014-05-29Implement Migration.run_beforeChris Beaven
This attribute (used for reverse dependencies) was previously declared and mentioned in the code, but never actually used.
2014-05-24Fixed #22676 -- makemigrations --dry-run should not ask for defaultsMoayad Mardini
Made the fix in InteractiveMigrationQuestioner class code, rather than MigrationAutodetector, because --dry-run shouldn't affect whether MigrationAutodetector will detect non-nullable fields, but the questioner should skip the question and returns a None for default (since that won't be used anyway) if --dry-run is used.
2014-05-22Fixed #22679 -- Fixed empty tuple serialization in MigrationWriter.Moayad Mardini
Thanks rockallite.wulf for the report.
2014-05-22Made nested deconstruction support both forms of deconstruct()Marc Tamlyn
Nested deconstruction should (silently) handle Field.deconstruct() as well as other arbitrary deconstructable objects. This allows having a field in the deconstruction of another field.
2014-05-20Revert "Fixed #22645: Allow apps with no models module to still have migrations"Andrew Godwin
This reverts commit a4737bf6ae36a5f1cb29f2232f6deeff084fabff.
2014-05-20Fixed #22645: Allow apps with no models module to still have migrationsAndrew Godwin
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-08Fixed #22325: Ignore __first__ dependencies to your own appAndrew Godwin
2014-05-08Fixed #22563: Ignore AUTH_USER_MODEL errors in from_stateAndrew Godwin
2014-05-08Appeased flake8.Aymeric Augustin
2014-05-07Fixed #22496: Data migrations get transactions again!Andrew Godwin
2014-05-07Fixed #22563: Better error message when trying to change AUTH_USER_MODELAndrew Godwin
You're not allowed to do this after you've made migrations; see ticket for more details.
2014-05-06Fixed #22576: Ensure makemigrations doesn't touch the database.Andrew Godwin
2014-05-06Fixed #22564 -- Prevented unneeded bytestrings in migrationsClaude Paroz
In some cases, this could lead to migrations written with Python 2 being incompatible with Python 3. Thanks Tim Graham for the report and Loïc Bistuer for the advices.