summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2014-06-15Fixed #22833: Autodetector not doing through mapping correctlyAndrew 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-09Remove overzealous migration flushes from migration test suiteAndrew Godwin
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-07Fixed #22436: More careful checking on method ref'ce serializationAndrew 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-30Improved the test for refs #22682.Moayad Mardini
Thanks apollo13 for the review.
2014-05-29Fix additional test failures caused by migration pollutionAndrew Godwin
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-27Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.Moayad Mardini
`makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
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-23Fixed tuple serialization test.Baptiste Mispelon
Thanks to rockallite for the report.
2014-05-23Fixed #22602 -- Improved code coverage of makemigrations command tests.Huu Nguyen
2014-05-22Fixed #22667 -- Replaced leader/follower terminology with primary/replicaFlavio Curella
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-21Skipped a migrations test that's not supported on MySQL + Python 3.Tim Graham
2014-05-20Merge pull request #2692 from fcurella/patch-5Alex Gaynor
#22667 replaced occurrences of master/slave terminology with leader/follower
2014-05-20replaced occurrences of master/slave terminology with leader/followerFlavio Curella
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-19Fixed #22661 -- Move makemigrations tests to the proper classHuu Nguyen
2014-05-18Failing testcases for #22649.Loic Bistuer
2014-05-18Fixed #22424 -- Fixed handling of default values for TextField/BinaryField ↵Loic Bistuer
on MySQL. Thanks syphar for the review and suggestions.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-08Tests for #22325Andrew Godwin
2014-05-08Appeased flake8.Aymeric Augustin
2014-05-07Fixed #22496: Data migrations get transactions again!Andrew Godwin
2014-05-02Fixed #22435 -- Prevented adding a ManyToManyField from prompting for a default.Tim Graham
Thanks andrewsg for the report.
2014-05-02Fix migration autodector to work correctly with custom deconstructed valuesChris Beaven
2014-04-30flake8 fixes.Tim Graham
2014-04-30Cleanup failing test w/contenttypes and remove useless graph loadAndrew Godwin
2014-04-30Fixed #22485: Include all unmigrated apps in project state by default.Andrew Godwin
2014-04-30Fixed #22474 -- Made migration recorder aware of multiple databasesClaude Paroz
Thanks Tim Graham for the review.
2014-04-29Fixed #22447 -- Make sure custom model bases can be migrated.Simon Charette
Thanks to cdestigter for the report.
2014-04-26Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin
Avoided introducing a new regex-based SQL splitter in the migrations framework, before we're bound by backwards compatibility. Adapted this change to the legacy "initial SQL data" feature, even though it's already deprecated, in order to facilitate the transition to migrations. sqlparse becomes mandatory for RunSQL on some databases (all but PostgreSQL). There's no API to provide a single statement and tell Django not to attempt splitting. Since we have a more robust splitting implementation, that seems like a good tradeoff. It's easier to add a new keyword argument later if necessary than to remove one. Many people contributed to both tickets, thank you all, and especially Claude for the review. Refs #22401.
2014-04-21Fixed table cleanup in GIS migration testsClaude Paroz
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-20Fixed flake8 errors.Tim Graham
2014-04-18Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-18Revert "Fixed #22397 -- Issues removing M2M field with explicit through model."Simon Charette
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
2014-04-17Fixed #22397 -- Issues removing M2M field with explicit through model.Andrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-16Fixed #22460 -- Explicity remove constraints when dropping a related field.Motiejus Jakštys
2014-04-13Fixed #22350 -- Consistently serialize bytes and text in migrations.Simon Charette
Thanks to @treyhunner and Loïc for their suggestions and review.
2014-04-03Fixed #22363 -- Correctly serialize `django.utils.datetime_safe` objects.Simon Charette
Thanks to linovia for the report.
2014-03-31Fixed #22319 -- Fixed migration external dependencies when there are ↵Loic Bistuer
internal dependencies.