summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2019-11-25[3.0.x] Fixed #27914 -- Fixed serialization of nested classes in migrations.John Bowen
Backport of 29d8198841ea39af44f3bc835d646e642d498475 from master
2019-11-25[3.0.x] Refs #23950 --- Moved test DeconstructibleInstances class to a ↵John Bowen
module level. DeconstructibleInstances was not importable from the asserted path. Backport of 8008795a3899d979d65832ca7c4946903de206f7 from master
2019-10-14[3.0.x] Fixed #30870 -- Fixed showing that RunPython operations are ↵Mariusz Felisiak
irreversible by migrate --plan. Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the report. Backport of 06d34aab7cfb1632a1538a243db81f24498525ff from master
2019-10-14[3.0.x] Isolated migrations.test_commands.MigrateTests.test_migrate_plan.Mariusz Felisiak
Backport of 05186c03a30686f4898c1cb9acf4b8613035afcc from master
2019-10-14[3.0.x] Fixed #30868 -- Prevented unnecessary AlterField when renaming a ↵Simon Charette
referenced pk. Regression introduced by dcdd219ee1, refs #25817. Thanks Carlos E. C. Leite for the report and Mariusz for the bisect. Backport of 2839659b42ef80038152768b6cedae1016c59d90 from master
2019-10-03[3.0.x] Refs #27914 -- Fixed serialization of nested enum.Enum classes in ↵Hasan Ramezani
migrations. Backport of 6452112640081ac8838147a8ba192c45879203d8 from master
2019-10-03[3.0.x] Refs #27914 -- Moved test enum.Enum subclasses outside of ↵Hasan Ramezani
WriterTests.test_serialize_enums(). Backport of d3030deaaa50b7814e34ef1e71f2afaf97c6bec6 from master
2019-09-30[3.0.x] Fixed #30774 -- Made serialization in migrations use members names ↵Hasan Ramezani
for Enums. Backport of f0adf3b9b7a19cdee05368ff0c0c2d087f011180 from master
2019-09-11[3.0.x] Refs #30591 -- Fixed too long identifier crash in ↵Mariusz Felisiak
migrations.test_operations on MySQL 8.0.16+. Backport of 937ddaff55efbfb4a9560603bbc8c5b17d9e1364 from master
2019-09-11[3.0.x] Fixed #30591 -- Fixed recreation of foreign key constraints on MySQL ↵Adnan Umer
when altering type of referenced unique field. Thanks Mariusz Felisiak for tests and Matthijs Kooijman for investigation and initial patch. Backport of 241deed2590bcb1d8c45271d44c86eaedfb57119 from master
2019-09-04Fixed #27910 -- Added enumeration helpers for use in Field.choices.Shai Berger
These classes can serve as a base class for user enums, supporting translatable human-readable names, or names automatically inferred from the enum member name. Additional properties make it easy to access the list of names, values and display labels. Thanks to the following for ideas and reviews: Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger. Co-authored-by: Shai Berger <shai@platonix.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-09-03Fixed #30691 -- Made migrations autodetector find dependencies for foreign ↵Viktor Lomakin
keys altering.
2019-08-21Fixed #21039 -- Added AddIndexConcurrently/RemoveIndexConcurrently ↵Mads Jensen
operations for PostgreSQL. Thanks to Simon Charettes for review. Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
2019-08-19Moved migrations.test_operations.OperationTestBase to migrations.test_base.Mads Jensen
Co-Authored-By: Daniel Tao <daniel.tao@gmail.com>
2019-08-07Corrected several typos in string literals and test names.Min ho Kim
2019-08-02Fixed #30661 -- Added models.SmallAutoField.Nick Pope
2019-07-08Changed django.db.models.indexes.Index imports to django.db.models.Index.Mariusz Felisiak
2019-07-01Fixed #30595 -- Added error message when no objects found to sql* management ↵Hasan Ramezani
commands.
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2019-04-30Fixed #30412 -- Fixed crash when adding check constraints with OR'ed ↵can
condition on Oracle and SQLite.
2019-04-30Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator ↵Simon Charette
on Oracle and PostgreSQL. The LIKE operator wildcard generated for contains, startswith, endswith and their case-insensitive variant lookups was conflicting with parameter interpolation on CREATE constraint statement execution. Ideally we'd delegate parameters interpolation in DDL statements on backends that support it but that would require backward incompatible changes to the Index and Constraint SQL generating methods. Thanks David Sanders for the report.
2019-04-14Fixed #30350 -- Prevented recreation of migration for operations with a ↵Florian Apolloner
range object. Thanks to Mariusz Felisiak for helping with the patch.
2019-03-08Fixed #30186 -- Made showmigrations --list display the applied datetimes at ↵tschilling
verbosity 2+.
2019-03-07Refs #30186 -- Changed MigrationRecorder.applied_migrations() to return a dict.Tim Schilling
2019-03-07Fixed #30189 -- Removed transaction from sqlmigrate output if database ↵Parth Patil
doesn't use one.
2019-02-13Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis
Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
2019-02-11Fixed spelling mistakes in comments and tests.Semen Zhydenko
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2019-01-28Made test table cleanup in OperationTestBase more robust.Paveł Tyślacki
Some non-unique constraint names were added in b69f8eb04cc8762d3dfd5af5ea1fc58e3f2ebcc3 which resulted in failures depending on the order in which tests were run.
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-21Made assertOptimizesTo() more strict in migrations tests.Vytis Banaitis
A recursive deconstruction is needed because comparing deconstructed operations doesn't check field attributes. Fixed typo in failing test.
2019-01-12Fixed #30062 -- Added support for unique conditional constraints.Paveł Tyślacki
2019-01-11Refs #29738 -- Allowed registering serializers with MigrationWriter.can
2019-01-11Moved django.db.migrations.writer.SettingsReference to django.conf.Tim Graham
Reduces the possibility of circular imports.
2019-01-10Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵Simon Charette
favor of databases.
2018-12-19Fixed #30031 -- Added --no-header option to makemigrations/squashmigrations.Dakota Hawkins
2018-11-30Fixed #29987 -- Detected unmanaged model deletions.Tim Fiedler
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-11-14Fixed #25884 -- Fixed migrate --run-syncdb when specifying an app label.Sarah Guermond
2018-11-09Fixed #29934 -- Added sqlparse as a require dependency.Tim Graham
2018-10-30Fixed #29783 -- Added app label validation to showmigrations command.Junyoung
2018-10-30Refs #29868 -- Prevented name collisions between test constraints on Oracle.Simon Charette
2018-10-29Fixed #29897 -- Fixed autodetector's swappable MTI dependency resolution.Simon Charette
Thanks Steven Ganz for the detailed report.
2018-10-29Fixed #29868 -- Retained database constraints on SQLite table rebuilds.Simon Charette
Refs #11964. Thanks Scott Stevens for testing this upcoming feature and the report.
2018-10-24Fixed #29721 -- Ensured migrations are applied and recorded atomically.Sanyam Khurana
2018-10-24Refs #11964 -- Removed raw SQL from and cleaned up constraint operation tests.Simon Charette
2018-10-23Fixed #29831 -- Added validation for makemigrations --name.Prabakaran Kumaresshan
2018-10-11Fixed #29814 -- Added support for NoneType serialization in migrations.Patrik Sletmo
2018-10-02Refs #11964 -- Changed CheckConstraint() signature to use keyword-only ↵Simon Charette
arguments. Also renamed the `constraint` argument to `check` to better represent which part of the constraint the provided `Q` object represents.
2018-09-28Tested showmigrations with apps without migrations.Tim Graham