| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-28 | [4.2.x] Refs #34320 -- Added skipIf for a test requiring check constraints. | Tim Graham | |
| Backport of 40e88ae8c899bcae3a9520f7a6519dd178185f85 from main | |||
| 2023-02-15 | [4.2.x] Fixed #34320 -- Make sure constraints names are obtained from ↵ | nabil-rady | |
| truncated columns names. Backport of 6bdc3c58b65eb32fd63cd41849f00a17a36b4473 from main | |||
| 2023-02-01 | [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main | |||
| 2023-01-31 | [4.2.x] Fixed #34304 -- Made MySQL's SchemaEditor.remove_constraint() don't ↵ | sage | |
| create foreign key index when unique constraint is ignored. Regression in b731e8841558ee4caaba766c83f34ea9c7004f8b. Backport of 110b3b83567da22f19ec04210db134d0fe83d662 from main | |||
| 2022-12-28 | Fixed #18468 -- Added support for comments on columns and tables. | kimsoungryoul | |
| Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-12-22 | Fixed #34219 -- Preserved Char/TextField.db_collation when altering column type. | Mariusz Felisiak | |
| This moves setting a database collation to the column type alteration as both must be set at the same time. This should also avoid another layer of the column type alteration when adding database comments support (#18468). | |||
| 2022-12-15 | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | |
| Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-11-04 | Fixed #34138 -- Avoided table rebuild when adding inline m2m fields on SQLite. | Mariusz Felisiak | |
| Regression in 2f73e5406d54cb8945e187eff302a3a3373350be. Thanks David Wobrock for the report. | |||
| 2022-10-01 | Refs #34058 -- Fixed changing/deleting sequences when altering pre-Django ↵ | Mariusz Felisiak | |
| 4.1 auto fields on PostgreSQL. Thanks Anders Kaseorg for the report. Follow up to 19e6efa50b603af325e7f62058364f278596758f. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. | |||
| 2022-09-29 | Fixed #34058 -- Changed sequence types when altering pre-Django 4.1 auto ↵ | Mariusz Felisiak | |
| fields on PostgreSQL. Thanks Anders Kaseorg for the report. Thanks Florian Apolloner for pair programming. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. | |||
| 2022-09-13 | Fixed #31335 -- Fixed removing composed composed Meta constraints/indexes on ↵ | Sergey Fursov | |
| foreign keys on MySQL. | |||
| 2022-09-12 | Refs #31335 -- Added more tests for removing composed Meta ↵ | Sergey Fursov | |
| constraints/indexes on foreign keys. | |||
| 2022-08-17 | Fixed #33932 -- Fixed altering AutoFields to OneToOneField on PostgreSQL. | Benoît Vinot | |
| Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. | |||
| 2022-08-15 | Fixed #33901 -- Skipped varchar_pattern_ops/text_pattern_ops index creation ↵ | Haolun Chai | |
| when db_collation is set. | |||
| 2022-08-12 | Fixed #33919 -- Fixed adding AutoFields on PostgreSQL. | Mariusz Felisiak | |
| Thanks Jack Calvin Brown for the report. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. | |||
| 2022-08-08 | Fixed #33899 -- Fixed migration crash when removing indexed field on SQLite ↵ | Fiza Ashraf | |
| 3.35.5+. Regression in 702819227fd0cdd9b581cd99e11d1561d51cbeb. Thanks cessor for the report. | |||
| 2022-08-02 | Fixed #33881 -- Added support for database collations to ↵ | Mariusz Felisiak | |
| ArrayField(Char/TextFields). | |||
| 2022-07-12 | Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. | David Wobrock | |
| This also deprecates AlterIndexTogether migration operation. | |||
| 2022-06-03 | Refs #27236 -- Moved models with Meta.index_together inside of test methods. | David Wobrock | |
| 2022-05-04 | Fixed #25105 -- Checked deferred constraints before updating rows on PostgreSQL. | David Wobrock | |
| 2022-04-29 | Refs #33671 -- Fixed migrations crash when adding collation to a primary key ↵ | Mariusz Felisiak | |
| on Oracle. | |||
| 2022-04-29 | Fixed #33670 -- Fixed altering primary key on SQLite. | Mariusz Felisiak | |
| 2022-04-13 | Fixed #30511 -- Used identity columns instead of serials on PostgreSQL. | Florian Apolloner | |
| 2022-04-13 | Fixed tests on databases that don't support introspecting foreign keys. | Mariusz Felisiak | |
| 2022-04-12 | Fixed #33626 -- Cleared cache when unregistering a lookup. | Himanshu-Balasamanta | |
| 2022-04-06 | Skipped SchemaTests.test_alter_field_type_and_db_collation on databases that ↵ | Mariusz Felisiak | |
| don't support collation on TextField. | |||
| 2022-04-06 | Fixed #33471 -- Made AlterField operation a noop when changing "choices". | sarahboyce | |
| This also allows customizing attributes of fields that don't affect a column definition. | |||
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-03-21 | Fixed #33256 -- Fixed schema test failures when using --keepdb. | likecodingloveproblems | |
| 2022-02-25 | Added test for removing through model from ManyToManyField. | Mariusz Felisiak | |
| 2022-02-11 | Refs #32502 -- Avoided table rebuild when removing fields on SQLite 3.35.5+. | Mariusz Felisiak | |
| ALTER TABLE ... DROP COLUMN was introduced in SQLite 3.35+ however a data corruption issue was fixed in SQLite 3.35.5. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-01-04 | Fixed #33408 -- Fixed adding nullable unique fields on SQLite. | Mariusz Felisiak | |
| Regression in 2f73e5406d54cb8945e187eff302a3a3373350be. Thanks Alan Crosswell for the report. | |||
| 2021-12-14 | Fixed #33358 -- Fixed handling timedelta < 1 day in schema operations on Oracle. | mdalp | |
| 2021-12-10 | Refs #32502 -- Avoided table rebuild when adding fields with no default on ↵ | Mariusz Felisiak | |
| SQLite. | |||
| 2021-11-24 | Removed unneeded @skipUnlessDBFeature('supports_combined_alters'). | Tim Graham | |
| The test acts a regression test for 715ccfde24f9f2b7f6710429370a1eff3c78fc2a if the feature is True, but it works on other backends too. | |||
| 2021-11-15 | Refs #33288 -- Made SQLite introspection raise DatabaseError on nonexistent ↵ | Simon Charette | |
| tables. All the other backends behave this way and we had to make adjustments to our test suite to account for this discrepancy. This also allows SQLite's get_relations() not to raise on a nonexistent table while making sure the InspectDBTestCase.test_introspection_errors test which ensures an error during introspection is surfaced in generated models files still passes. | |||
| 2021-09-28 | Fixed #33125 -- Avoided redundant unique constraint when converting a ↵ | Jordan Bae | |
| non-unique field to primary key on MySQL and PostgreSQL. | |||
| 2021-09-01 | Fixed #33080 -- Preserved nullability of textual fields on Oracle. | Mariusz Felisiak | |
| Thanks Matt Hoskins for the report. | |||
| 2021-09-01 | Fixed typo in tests/schema/tests.py docstrings. | Mariusz Felisiak | |
| 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-15 | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | |
| django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2021-06-10 | Fixed #32832 -- Fixed adding BLOB/TEXT nullable field with default on MySQL ↵ | Mariusz Felisiak | |
| 8.0.13+. Regression in d4ac23bee1c84d8e4610350202ac068fc90f38c0. Thanks Omkar Deshpande for the report. | |||
| 2021-05-28 | Fixed #32676 -- Prevented migrations from rendering related field attributes ↵ | David Wobrock | |
| when not passed during initialization. Thanks Simon Charette for the implementation idea. | |||
| 2021-05-28 | Refs #32779 -- Changed ↵ | Hannes Ljungberg | |
| DatabaseSchemaEditor._unique_sql()/_create_unique_sql() to take fields as second parameter. | |||
| 2021-05-24 | Fixed #32777 -- Passed table reference as a string to ↵ | Hannes Ljungberg | |
| DatabaseSchemaEditor._index_columns(). | |||
| 2021-05-21 | Fixed #32503 -- Fixed altering BLOB/TEXT field to non-nullable with default ↵ | Yuekui Li | |
| on MySQL 8.0.13+. MySQL 8.0.13+ supports defaults for BLOB/TEXT but not in the ALTER COLUMN statement. Regression in 6b16c91157512587017e9178d066ed1a683e7795. Thanks Matt Westcott for the report. | |||
| 2021-04-26 | Fixed isolation of test_rename_table_renames_deferred_sql_references(). | Mariusz Felisiak | |
| 2021-02-23 | Fixed #30916 -- Added support for functional unique constraints. | Hannes Ljungberg | |
| Thanks Ian Foote and Mariusz Felisiak for reviews. | |||
