summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24123 -- Used all available migrations to generate the initial ↵Markus Holtermann
migration state Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
2015-01-11Removed supports_binary_field flag as all backends support themClaude Paroz
It was mainly for MySQL on Python 3, but now the current recommended MySQL driver for Python 3 (mysqlclient) does support binary fields, it is unneeded. Refs #20377.
2015-01-10Fixed #24110 -- Rewrote migration unapply to preserve intermediate statesMarkus Holtermann
2015-01-10Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.Loic Bistuer
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-09Fixed #24098 -- Added no-op attributes to RunPython and RunSQLMarkus Holtermann
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
2015-01-07Fixed #24093 -- Prevented MigrationWriter to write operation kwargs that are ↵Markus Holtermann
not explicitly deconstructed
2015-01-07Refs #23822 -- Made MigrationOptimizer aware of model managersMarkus Holtermann
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-05Refs #23359 -- Removed double newline from output of migrate --listMarkus Holtermann
Thanks Berker Peksag for the review.
2015-01-02Fixed #23745 -- Reused states as much as possible in migrationsClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-02Passed around the state between migrationsClaude Paroz
Refs #23745.
2015-01-02Replaced migration state render() by apps cached propertyClaude Paroz
Refs #23745.
2014-12-31Fixed #23359 -- Added showmigrations command to list migrations and plan.Markus Holtermann
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn for their input, ideas, and review.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-30Added test for an intermediate swappable model change in migration state.Markus Holtermann
refs #22563
2014-12-29Fixed #23938 -- Added migration support for m2m to concrete fields and vice ↵Markus Holtermann
versa Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
2014-12-23Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.Tim Graham
The migrations autodetector now issues AlterModelOptions operations for Meta.managed changes instead of DeleteModel + CreateModel. Thanks iambibhas for the report and Simon and Markus for review.
2014-12-22Fixed #23998 -- Added datetime.time support to migrations questioner.Oscar Ramirez
2014-12-21Fixed #24017 -- Added python_2_unicode_compatible in db/migrationsJosh Schneier
2014-12-16Fixed #23983 -- Fixed a crash in migrations when adding ↵Andriy Sokolovskiy
order_with_respect_to to non-empty table.
2014-12-15Refs #23947 -- Improved migrations tests table cleanup.Diego Guimarães
Copied technique from schema tests.
2014-12-15Fixed reverse test execution for migration manager testsMarkus Holtermann
Thanks to Tim Graham for reporting the issue; refs #23822
2014-12-15Fixed #23405 -- Fixed makemigrations prompt when adding Text/CharField.Andriy Sokolovskiy
A default is no longer required.
2014-12-15Fixed #23822 -- Added support for serializing model managers in migrationMarkus Holtermann
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
2014-12-11Fixed #23956 -- Fixed migration creation for multiple table inheritanceMarkus Holtermann
2014-12-03Fixed #23950 -- Prevented calling deconstruct on classes in MigrationWriter.Gavin Wahl
2014-12-01Fixed #23909 -- Prevented crash when collecting SQL for RunSQLClaude Paroz
Thanks James Rivett-Carnac for the report and Markus Holtermann for the review.
2014-12-01Corrected a docstring in tests/migrations/test_operations.py.wrwrwr
2014-12-01Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs ↵wrwrwr
#23933.
2014-12-01Fixed #23880 -- Added missing index_together handling for SQLiteMarkus Holtermann
2014-11-28Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap
If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
2014-11-28Fixed #23894 -- Made deconstruct methods favor kwargs over argsMarkus Holtermann
2014-11-25Fixed flake8 warnings.Tim Graham
2014-11-25Fixed bug in circular dependency algo for migration dependencies.Luke Plant
Previous algo only worked if the first item was a part of the loop, and you would get an infinite loop otherwise (see test). To fix this, it was much easier to do a pre-pass. A bonus is that you now get an error message that actually helps you debug the dependency problem.
2014-11-21Fixed #23794 -- Fixed migrations crash when removing a field that's part of ↵Andrzej Pragacz
index/unique_together.
2014-11-20Fixed duplicate index error on Oracle; refs #23859.Markus Holtermann
Refers to regression introduced in 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6
2014-11-20Fixed #23844 -- Used topological sort for migration operation dependency ↵Patryk Zawadzki
resolution. This removes the concept of equality between operations to guarantee compatilibity with Python 3. Python 3 requires equality to result in identical object hashes. It's impossible to implement a unique hash that preserves equality as operations such as field creation depend on being able to accept arbitrary dicts that cannot be hashed reliably. Thanks Klaas van Schelven for the original patch in 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-19Added another migration-executor test to avoid regressions.Carl Meyer
2014-11-19Fixed #23410 -- Avoided unnecessary rollbacks in related apps when migrating ↵Carl Meyer
backwards.
2014-11-19Fixed #23872 -- Removed sensitivity of migrations tests to CWD.Carl Meyer
2014-11-19Cleaned up and reformatted autodetector testsMarkus Holtermann
2014-11-19Formatted model states in autodetector testsMarkus Holtermann
2014-11-19Fixed #22248 -- Made RenameModel reversibleStratos Moros
2014-11-18Fixed #23799 -- Made makemigrations respect --no-optimize.Tillmann Karras
Thanks to yamila-moreno for the idea of a skip message.
2014-11-17Fixed #23859 -- Fixed a migration crash when a field is renamed that is part ↵Markus Holtermann
of an index_together
2014-11-16Removed references to the deprecated assertRaisesRegexp method.Simon Charette
2014-11-15Fixed #23835: Changed circular dependency in DFS to be less infiniteAndrew Godwin
2014-11-15Revert "Use topological sort for migration operation dependency resolution"Tim Graham
This commit broke the tests on Python 3. This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-15Use topological sort for migration operation dependency resolutionKlaas van Schelven
rather than an ad-hoc algorithm