summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2017-12-01[2.0.x] Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette
Thanks Ramiro for the input and Tim for the review. Backport of 095c1aaa898bed40568009db836aa8434f1b983d from master
2017-12-01[2.0.x] Fixed #28305 -- Fixed "Cannot change column 'x': used in a foreign ↵Tim Graham
key constraint" crash on MySQL with a sequence of AlterField or RenameField operations. Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9. Backport of c3e0adcad8d8ba94b33cabd137056166ed36dae0 from master
2017-11-06[2.0.x] Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
Backport of 6c0042430e3618ce5c276d195d92a6b884daa3a3 from master
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
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-20Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Removed enum ImportError handling for Python 2.Tim Graham
2017-01-19Refs #23919 -- Removed str() conversion of type and method __name__.Simon Charette
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Replaced io.open() with open().Aymeric Augustin
io.open() is an alias for open() on Python 3.
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #25604 -- Removed makemigrations --exit option per deprecation timeline.Tim Graham
2017-01-13Made contenttypes and auth apps unavailable when not necessary in tests.Simon Charette
2017-01-10Fixed #27717 -- Allowed migration optimization across AlterModelOptions.Ed Morley