| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-06-24 | Refs #31703 -- Moved MigrationAutodetector.suggest_name() to Migration. | Jon Dufresne | |
| Allows expanding the method to inspect additional attributes of the migration instance. For example, the Migration.initial attribute. | |||
| 2020-06-12 | Fixed #31645 -- Enhanced the migration warning for migrate commmand. | Chinmoy Chakraborty | |
| Added the list of apps with changes not reflected in migrations. | |||
| 2020-06-08 | Fixed #31661 -- Removed period in makemigrations history check warning. | davidchorpash | |
| 2020-06-04 | Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+. | Hannes Ljungberg | |
| 2020-05-28 | Fixed #31468 -- Allowed specifying migration filename in Operation. | Adam Johnson | |
| This adds also suggested filename for many built-in operations. | |||
| 2020-05-28 | Refs #31468 -- Added tests for MigrationAutodetector.suggest_name(). | Adam Johnson | |
| 2020-05-28 | Fixed isolation of test_migrate_fake_initial. | Mariusz Felisiak | |
| 2020-05-26 | Fixed #31416 -- Made autodetector find dependencies for MTI model creation ↵ | Nan Liu | |
| on base fields removal. Removing a base field must take place before adding a new inherited model that has a field with the same name. | |||
| 2020-05-19 | Fixed #31504 -- Allowed calling makemigrations without an active database ↵ | wtkm11 | |
| connection. | |||
| 2020-04-30 | Fixed #20581 -- Added support for deferrable unique constraints. | Ian Foote | |
| 2020-04-28 | Added test for squashmigrations' output. | François Freitag | |
| 2020-04-27 | Removed unnecessary capturing/hiding of stdout/stderr in various tests. | François Freitag | |
| 2020-04-27 | Disabled management commands output with verbosity 0 in ↵ | François Freitag | |
| test_regression_22823_unmigrated_fk_to_migrated_model. | |||
| 2020-04-25 | Removed unnecessary capturing of stdout in ↵ | François Freitag | |
| test_makemigrations_non_interactive_not_null_addition. | |||
| 2020-04-23 | Fixed #29224 -- Fixed removing index_together indexes if exists ↵ | David Wobrock | |
| unique_together constraint on the same fields. | |||
| 2020-04-22 | Fixed #31499 -- Stored ModelState.fields into a dict. | Simon Charette | |
| This allows the removal of its O(n) .get_field_by_name method and many other awkward access patterns. While fields were initially stored in a list to preserve the initial model definiton field ordering the auto-detector doesn't take field ordering into account and no operations exists to reorder fields of a model. This makes the preservation of the field ordering completely superflous because field reorganization after the creation of the model state wouldn't be taken into account. | |||
| 2020-04-22 | Refs #31499 -- Ignored field ordering to determine ModelState equality. | Simon Charette | |
| 2020-04-21 | Refs #30591 -- Adjusted table rebuild for non-pk relationship on SQLite. | Simon Charette | |
| The existing code was only accounting for primary key changes and not all unique key fields that can be referenced. | |||
| 2020-04-21 | Fixed #31064 -- Recreated auto-created many-to-many tables on primary key ↵ | Simon Charette | |
| data type change on SQLite. Both local and remote auto-created many-to-many relationships were affected. | |||
| 2020-04-21 | Removed redundant import in tests/migrations/test_operations.py. | Simon Charette | |
| 2020-04-09 | Made Operation.references_model/references_field require app_label. | Simon Charette | |
| This will allow them to drop a ton of logic to deal with null app_label. | |||
| 2020-04-09 | Refs #22608 -- Made app_label required when optimizing migrations. | Simon Charette | |
| This paved the way for the removal of lot of logic when app_label was not specified. | |||
| 2020-04-08 | Refs #30966 -- Added test for reloading related model state on ↵ | Mariusz Felisiak | |
| non-relational changes. Thanks Markus Holtermann for initial test. Fixed in 1d16c5d562a67625f7309cc7765b8c57d49bf182. | |||
| 2020-04-07 | Refs #27666 -- Ensured relationship consistency on delayed reloads. | Simon Charette | |
| Delayed reloads of state models broke identity based relationships between direct and non-direct ancestors. Basing models.Options related objects map of model labels instead of their identity ensured relationship consistency is maintained. Refs #30966. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2020-03-26 | Fixed #31402 -- Added migrate --check option. | Gordon Pendleton | |
| Command exits with non-zero status if unapplied migrations exist. | |||
| 2020-03-25 | Fixed #23916 -- Allowed makemigrations to handle related model name case ↵ | Adam Johnson | |
| changes. Made autodetector ignore related model name case changes so unnecessary migrations are not created. | |||
| 2020-03-09 | Fixed #31318 -- Allowed sqlmigrate to inspect squashed migrations. | David Wobrock | |
| 2020-03-09 | Refs #31318 -- Added tests for inspecting squashed migrations and ambiguous ↵ | David Wobrock | |
| names in sqlmigrate. | |||
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2020-01-23 | Refs #31197 -- Added tests for combined expressions in CheckConstraint.check. | Mariusz Felisiak | |
| Thanks Adam Johnson for the report. Fixed in 306b6875209cfedce2536a6679e69adee7c9bc6a. | |||
| 2020-01-20 | Refs #31117 -- Made various tests properly handle unexpected databases aliases. | Matthijs Kooijman | |
| - Used selected "databases" instead of django.db.connections. - Made routers in tests.migrations skip migrations on unexpected databases. - Added DiscoverRunnerGetDatabasesTests.assertSkippedDatabases() hook which properly asserts messages about skipped databases. | |||
| 2020-01-16 | Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. | Mariusz Felisiak | |
| We assumed that any OneToOneField's in a child model must be the parent link and raised an error when parent_link=True was not specified. This patch allows to specify multiple OneToOneField's to the parent model. OneToOneField's without a custom related_name will raise fields.E304 and fields.E305 so this should warn users when they try to override the auto-created OneToOneField. | |||
| 2019-11-25 | Fixed #27914 -- Fixed serialization of nested classes in migrations. | John Bowen | |
| 2019-11-25 | Refs #23950 --- Moved test DeconstructibleInstances class to a module level. | John Bowen | |
| DeconstructibleInstances was not importable from the asserted path. | |||
| 2019-11-18 | Removed unnecessary parentheses in various code. | Jon Dufresne | |
| 2019-11-15 | Refs #29808 -- Fixed ↵ | Mariusz Felisiak | |
| MigrateTests.test_migrate_fake_initial_case_insensitive() crash on Oracle. | |||
| 2019-11-15 | Fixed #29808 -- Fixed initial migration detection when identifiers are ↵ | Hasan Ramezani | |
| case-insensitive. Thanks Simon Charette for the review. | |||
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2019-10-14 | Fixed #30870 -- Fixed showing that RunPython operations are irreversible by ↵ | Mariusz Felisiak | |
| migrate --plan. Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the report. | |||
| 2019-10-14 | Isolated migrations.test_commands.MigrateTests.test_migrate_plan. | Mariusz Felisiak | |
| 2019-10-14 | Fixed #30868 -- Prevented unnecessary AlterField when renaming a referenced pk. | Simon Charette | |
| Regression introduced by dcdd219ee1, refs #25817. Thanks Carlos E. C. Leite for the report and Mariusz for the bisect. | |||
| 2019-10-10 | Fixed #30300 -- Allowed migrations to be loaded from directories without ↵ | Benjy Weinberger | |
| __init__.py file. | |||
| 2019-10-03 | Refs #27914 -- Fixed serialization of nested enum.Enum classes in migrations. | Hasan Ramezani | |
| 2019-10-03 | Refs #27914 -- Moved test enum.Enum subclasses outside of ↵ | Hasan Ramezani | |
| WriterTests.test_serialize_enums(). | |||
| 2019-09-30 | Fixed #30774 -- Made serialization in migrations use members names for Enums. | Hasan Ramezani | |
| 2019-09-11 | Refs #30591 -- Fixed too long identifier crash in migrations.test_operations ↵ | Mariusz Felisiak | |
| on MySQL 8.0.16+. | |||
| 2019-09-11 | Fixed #30591 -- Fixed recreation of foreign key constraints on MySQL when ↵ | Adnan Umer | |
| altering type of referenced unique field. Thanks Mariusz Felisiak for tests and Matthijs Kooijman for investigation and initial patch. | |||
| 2019-09-04 | Fixed #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-03 | Fixed #30691 -- Made migrations autodetector find dependencies for foreign ↵ | Viktor Lomakin | |
| keys altering. | |||
| 2019-08-21 | Fixed #21039 -- Added AddIndexConcurrently/RemoveIndexConcurrently ↵ | Mads Jensen | |
| operations for PostgreSQL. Thanks to Simon Charettes for review. Co-Authored-By: Daniel Tao <daniel.tao@gmail.com> | |||
