summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2018-06-16[2.1.x] Fixed #29469 -- Added a helpful makemigrations error if app_label ↵oliver
contains dots. Backport of 78972af367a1da54aa7e539e4b1ffa2b56571e77 from master
2018-06-15[2.1.x] Fixed #29498 -- Fixed a missing pyc test file in source distribution.Tim Graham
Backport of 63f90f55f30d599d601d729060cdb0ebd2abdeb8 from master
2018-06-15[2.1.x] Fixed #29000 -- Fixed RenameModel's renaming of a M2M column when ↵Jeff
run after RenameField. Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9. Backport of fcc4e251dbc917118f73d7187ee2f4cbf3883f36 from master
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-05-05Fixed #28913 -- Fixed error handling when MIGRATIONS_MODULES specifies a ↵Sanket Saurav
nonexistent top-level package.
2018-04-02Refs #23406 -- Fixed "invalid escape sequence" warning in migrations test.Jon Dufresne
2018-03-28Fixed #29245 -- Made autodetector treat field renames + db_column addition ↵Simon Charette
as RenameField.
2018-03-23Fixed #23406 -- Allowed migrations to be loaded from .pyc files.Dan Watson
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-03-09Fixed #29180 -- Fixed a regression where migrations already in the plan were ↵Carlton Gibson
readded. Regression in a38ae914d89809aed6d79337b74a8b31b6d3849a.
2018-01-31Fixed #29091 -- Fixed makemigrations crash if migrations directory doesn't ↵Tim Graham
have __init__.py. Regression in aadd3aeb2ba3153e35bd805c80c901f289a6f333.
2017-12-30Fixed #25817 -- Made RenameField repoint to_field/to_fields references.Simon Charette
Also updated the autodetector to assume the RenameField operation will perform the required repointing.
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
2017-12-22Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model ↵Simon Charette
referenced by a ManyToManyField. Introspected database constraints instead of relying on _meta.related_objects to determine whether or not a table or a column is referenced on rename operations. This has the side effect of ignoring both db_constraint=False and virtual fields such as GenericRelation which aren't backend by database level constraints and thus shouldn't prevent the rename operations from being performed in a transaction. Regression in 095c1aaa898bed40568009db836aa8434f1b983d. Thanks Tim for the additional tests and edits, and Mariusz for the review.
2017-12-06Fixed #28870 -- Added support for functools.partialmethod serialization in ↵Sergey Fedoseev
migrations.
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-12-01Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette
Thanks Ramiro for the input and Tim for the review.
2017-12-01Fixed #28305 -- Fixed "Cannot change column 'x': used in a foreign key ↵Tim Graham
constraint" crash on MySQL with a sequence of AlterField or RenameField operations. Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9.
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-10-13Fixed #28708 -- Added constants to detect the Python version.Tim Graham
2017-09-04Fixed #28493 -- Made migrations autodetector find dependencies for model ↵Jeremy Satterfield
renaming.
2017-08-10Fixed #28386 -- Made operations within non-atomic migrations honor the ↵Evan Grim
operation's atomic flag when migrating backwards.
2017-08-10Added missing test for RunPython behavior when unapplying.Evan Grim
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-26Fixed #28363 -- Allowed naming the migration generated by squashmigrations.Melvyn Sopacua
2017-06-30Fixed #28350 -- Fixed UnboundLocalError crash in RenameField with ↵Simon Charette
nonexistent field. Thanks Tim for the review.
2017-06-26Refs #23919 -- Stopped inheriting from object to define new style classes.Mariusz Felisiak
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
2017-06-19Fixed #27858 -- Prevented read-only management commands from creating the ↵Marti Raudsepp
django_migrations table. MigrationRecorder now assumes that if the django_migrations table doesn't exist, then no migrations are applied. Reverted documentation change from refs #23808.
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-18Fixed #28152 -- Made migrations serialize sets as set literals rather than ↵Jon Dufresne
set().
2017-05-09Refs #22397 -- Removed model in test cleanupMarkus Holtermann
The test was failing when using --keepdb due to a pre-existing PonyStables model. Thanks Florian Apolloner for the report
2017-05-01Fixed #28043 -- Prevented AddIndex and RemoveIndex from mutating model state.Ian Foote
2017-04-24Renamed "Mac OS X" to "macOS" in docs.Michiel Beijen
2017-04-10Refs #26605 -- Isolated a migrations state test.Tim Graham
2017-04-07Refs #26605 -- Added migrations state test for a swappable model inheriting ↵Ingo Klöcker
an abstract model inheriting concrete model. Thanks Sébastien Diemer for the report and test.
2017-04-07Fixed #28051 -- Made migrations respect Index's name argument.Markus Holtermann
Thanks Marc Tamlyn for the report and Tim Graham for the review.
2017-03-21Fixed #27915 -- Allowed Meta.indexes to be defined in abstract models.Tim Graham
Thanks Markus Holtermann for review.
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-10Added multi_db=True to test cases that access the 'other' db connection.Tim Graham
Fixed a failure in the context processors tests when running in reverse on MySQL due to an extra query after refs #27683.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-04Added tests for various __repr__() methods.Mads Jensen
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-26Refs #23919 -- Replaced tempfile.mkdtemp() with TemporaryDirectory() context ↵Chillar Anand
manager.
2017-01-25Refs #23919 -- Removed misc Python 2/3 references.Tim Graham
2017-01-25Simplified tests with assertDoesNotOptimize().Ed Morley
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-25Removed unused variables that are overwritten.Mads Jensen
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-21Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3).Mariusz Felisiak