| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-11-02 | [4.0.x] Fixed #33234 -- Fixed autodetector crash for proxy models inheriting ↵ | Mariusz Felisiak | |
| from non-model class. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. Thanks Kevin Marsh for the report. Backport of dab48b7482295956973879d15bfd4d3bb0718772 from main | |||
| 2021-10-25 | [4.0.x] Fixed #31503 -- Made autodetector remove unique/index_together ↵ | David Wobrock | |
| before altering fields. Backport of 0314593fe8e7dc685bbb6585eee40e755588864e from main | |||
| 2021-10-18 | [4.0.x] Fixed #33194 -- Fixed migrations when altering a field with ↵ | Hannes Ljungberg | |
| functional indexes/unique constraints on SQLite. This adjusts Expressions.rename_table_references() to only update alias when needed. Regression in 83fcfc9ec8610540948815e127101f1206562ead. Co-authored-by: Simon Charette <charettes@users.noreply.github.com> Backport of 86971c40909430a798e4e55b140004c4b1fb02ff from main | |||
| 2021-09-20 | Refs #33119 -- Added tests for changing model name case referenced by ↵ | AliGhotbizadeh | |
| ManyToManyField. Fixed in aa4acc164d1247c0de515c959f7b09648b57dc42. | |||
| 2021-09-16 | Fixed #32365 -- Made zoneinfo the default timezone implementation. | Carlton Gibson | |
| Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews. | |||
| 2021-08-31 | Fixed #33057 -- Fixed recreation of foreign key constraints in m2m tables ↵ | Mariusz Felisiak | |
| when altering type of referenced primary key on Oracle. | |||
| 2021-08-30 | Fixed #24900 -- Allowed migrating backward to squashed migrations. | Jacob Walls | |
| 2021-08-30 | Refs #24900 -- Added MigrationLoader test for applying squashed migrations. | Jacob Walls | |
| 2021-08-27 | Fixed #32900 -- Improved migrations questioner prompts. | Mateo Radman | |
| 2021-08-27 | Refs #32900 -- Added makemigrations tests for messages in interactive mode. | Mateo Radman | |
| 2021-08-27 | Refs #32900 -- Added test for ignoring the default value in ↵ | Mateo Radman | |
| InteractiveMigrationQuestioner.ask_not_null_alteration(). | |||
| 2021-08-26 | Refs #29898 -- Changed fields in ProjectState's relation registry to dict. | Mariusz Felisiak | |
| 2021-08-25 | Refs #29898 -- Made ProjectState encapsulate alterations in relations registry. | Manav Agarwal | |
| Thanks Simon Charette and Chris Jerdonek for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-08-19 | Fixed #33014 -- Made ProjectState raise exception when real_apps argument is ↵ | Chris Jerdonek | |
| not a set. | |||
| 2021-08-11 | Refs #29898 -- Changed ProjectState.real_apps to set. | Mariusz Felisiak | |
| 2021-08-04 | Fixed #29063 -- Fixed migrate crash when specifying a name of partially ↵ | Jacob Walls | |
| applied squashed migrations. | |||
| 2021-08-04 | Fixed typos in migrations tests, comments, and error message. | Jacob Walls | |
| 2021-08-04 | Used assertRaisesMessage() to test ↵ | Mariusz Felisiak | |
| MigrationLoader.get_migration_by_prefix()'s error messages. | |||
| 2021-07-27 | Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments. | David Smith | |
| This also removes unnecessary comments with the previous spelling. AP Stylebook has a short entry to advise the preferred spelling for "en-us". "Afterwards" is preferred in British English. | |||
| 2021-07-27 | Refs #32743 -- Fixed recreation of foreign key constraints when altering ↵ | Jordan Bae | |
| type of referenced primary key with MTI. Follow up to 325d7710ce9f6155bb55610ad6b4580d31263557. | |||
| 2021-07-26 | Fixed #32743 -- Added foreign key altering when altering type of referenced ↵ | David Wobrock | |
| primary key with MTI. | |||
| 2021-07-01 | Fixed #32893 -- Fixed serialization of models.Model class in migrations. | abhiabhi94 | |
| Migrations assumed that an import of the models.Model class must already be included when it's serialized, but for models with only custom fields this was not necessarily the case. Thanks Jaap Joris Vens for the report. | |||
| 2021-06-11 | Fixed #25250 -- Clarified partially recorded state of squashed migrations in ↵ | Jacob Walls | |
| showmigrations --list. | |||
| 2021-06-08 | Fixed #25255 -- Recorded unapplied squashed migrations. | Jacob Walls | |
| 2021-06-07 | Fixed typos in test comments. | luzpaz | |
| 2021-06-07 | Fixed #32821 -- Updated os.scandir() uses to use a context manager. | Chris Jerdonek | |
| 2021-05-25 | Fixed #32780 -- Made Add/RemoveConstraint operations a noop for ↵ | Hannes Ljungberg | |
| covering/deferrable unique constraints on SQLite. | |||
| 2021-05-12 | Fixed #32366 -- Updated datetime module usage to recommended approach. | Nick Pope | |
| - Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp(). | |||
| 2021-05-12 | Added extra assertion to ↵ | Nick Pope | |
| migrations.test_writer.WriterTests.test_serialize_datetime. This checks that datetime.timezone.utc serializes correctly. | |||
| 2021-04-27 | Fixed #32686 -- Removed unnecessary semicolon on collected multiline SQL for ↵ | Hannes Ljungberg | |
| RunSQL. | |||
| 2021-04-27 | Refs #32686 -- Added tests for adding a semicolon when collecting SQL for ↵ | Hannes Ljungberg | |
| RunSQL. | |||
| 2021-04-23 | Fixed isolation of test_showmigrations_unmigrated_app(). | Mariusz Felisiak | |
| Follow up to 90916f050c64b817fdf2ea13b5c20986005fd029. | |||
| 2021-04-22 | Fixed isolation of test_showmigrations_unmigrated_app(). | Mariusz Felisiak | |
| 2021-04-16 | Fixed #29899 -- Made autodetector use model states instead of model classes. | David Wobrock | |
| Thanks Simon Charette and Markus Holtermann for reviews. | |||
| 2021-03-12 | Fixed #31516 -- Improved naming of migrations with multiple operations. | manav014 | |
| 52 gives 60 in total (52 + 5 + 3). Co-authored-by: Adam Johnson <me@adamj.eu> | |||
| 2021-03-12 | Refs #31516 -- Added Migration.suggest_name() tests for migrations with no ↵ | Adam Johnson | |
| operations. | |||
| 2021-03-12 | Refs #31516, Refs #31703 -- Made makemigrations always name initial ↵ | Adam Johnson | |
| migrations "initial". | |||
| 2021-02-23 | Fixed #30916 -- Added support for functional unique constraints. | Hannes Ljungberg | |
| Thanks Ian Foote and Mariusz Felisiak for reviews. | |||
| 2021-02-19 | Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵ | Hannes Ljungberg | |
| consistent. | |||
| 2021-02-19 | Fixed #32256 -- Fixed migration optimization crash when swapping field names. | Hasan Ramezani | |
| This disables optimization of RenameField operation when an old field name is referenced in subsequent operations. Co-authored-by: InvalidInterrupt <InvalidInterrupt@users.noreply.github.com> | |||
| 2021-02-04 | Fixed #32350 -- Fixed showmigrations crash for applied squashed migrations. | Daniel Ebrahimian | |
| Thanks Simon Charette for reviews. | |||
| 2021-02-04 | Fixed #32395 -- Allowed capturing stdout of migration signals. | Simon Charette | |
| 2021-01-26 | Fixed #32369 -- Fixed adding check constraints with pattern lookups and ↵ | Simon Charette | |
| expressions as rhs. This disables interpolation of constraint creation statements. Since Constraint.create_sql interpolates its parameters instead of deferring this responsibility to the backend connection it must disable connection level parameters interpolation. | |||
| 2021-01-21 | Fixed #32374 -- Stopped recording migration application before deferred SQL. | Simon Charette | |
| Migrations cannot be recorded in the same transaction as its associated DDL operations when some of it is deferred until the schema editor context exits. Regression in c86a3d80a25acd1887319198ca21a84c451014ad. | |||
| 2021-01-21 | Refs #29721 -- Simplified migration used to test atomic recording. | Simon Charette | |
| This makes sure atomic recording of migration application is used when the schema editor doesn't defer any statement. | |||
| 2021-01-13 | Fixed #26167 -- Added support for functional indexes. | Hannes Ljungberg | |
| Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews. Co-authored-by: Markus Holtermann <info@markusholtermann.eu> | |||
| 2020-12-31 | Fixed #31413 -- Fixed isolation of migrations.test_loader on databases that ↵ | Hasan Ramezani | |
| don't support transactions. | |||
| 2020-12-29 | Fixed #32302 -- Allowed migrations to be loaded from regular packages with ↵ | William Schwartz | |
| no __file__ attribute. The migrations loader prevents the use of PEP-420 namespace packages for holding apps' migrations modules. Previously the loader tested for this only by checking that app.migrations.__file__ is present. This prevented migrations' being found in frozen Python environments that don't set __file__ on any modules. Now the loader *additionally* checks whether app.migrations.__path__ is a list because namespace packages use a different type for __path__. Namespace packages continue to be forbidden, and, in fact, users of normal Python environments should experience no change whatsoever. | |||
| 2020-12-23 | Fixed isolation of test_migrate_fake_split_initial. | Mariusz Felisiak | |
| 2020-12-18 | Fixed #32262 -- Fixed migration optimization for model creation and Meta ↵ | Hasan Ramezani | |
| options removal. | |||
