| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-02-08 | [4.2.x] Fixed #34319 -- Fixed Model.validate_constraints() crash on ↵ | Mariusz Felisiak | |
| ValidationError with no code. Thanks Mateusz Kurowski for the report. Regression in 667105877e6723c6985399803a364848891513cc. Backport of 2fd755b361d3da2cd0440fc9839feb2bb69b027b from main | |||
| 2023-01-26 | [4.2.x] Fixed #34291 -- Fixed Meta.constraints validation crash on ↵ | Mariusz Felisiak | |
| UniqueConstraint with ordered expressions. Thanks Dan F for the report. Bug in 667105877e6723c6985399803a364848891513cc. Backport of 2b1242abb3989f5d74e787b09132d01bcbee5b55 from main | |||
| 2022-09-13 | Fixed #33996 -- Fixed CheckConstraint validation on NULL values. | David Sanders | |
| Bug in 667105877e6723c6985399803a364848891513cc. Thanks James Beith for the report. | |||
| 2022-08-09 | Fixed #33902 -- Fixed Meta.constraints validation crash with F() expressions. | Mariusz Felisiak | |
| Thanks Adam Zahradník for the report. Bug in 667105877e6723c6985399803a364848891513cc. | |||
| 2022-07-08 | Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵ | Stéphane "Twidi" Angel | |
| violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc. | |||
| 2022-05-10 | Fixed #30581 -- Added support for Meta.constraints validation. | Gagaro | |
| Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. | |||
| 2022-05-05 | Refs #30581 -- Moved CheckConstraint tests for conditional expressions to ↵ | Mariusz Felisiak | |
| migrations.test_operations. This allows avoiding warning in tests about using RawSQL in CheckConstraints. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 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. | |||
| 2020-07-27 | Fixed #31815 -- Fixed schema value encoding on PostgreSQL. | Mariusz Felisiak | |
| 2020-06-29 | Fixed #31745 -- Added error messages when using ↵ | Hannes Ljungberg | |
| UniqueConstraint.include/opclasses with deferrable. | |||
| 2020-06-16 | Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint. | Hannes Ljungberg | |
| 2020-06-04 | Refs #30913 -- Added system checks for covering indexes and unique ↵ | Mariusz Felisiak | |
| constraints support. | |||
| 2020-06-04 | Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+. | Hannes Ljungberg | |
| 2020-04-30 | Fixed #20581 -- Added support for deferrable unique constraints. | Ian Foote | |
| 2020-04-17 | Refs #31351 -- Made partial constraints tests use required_db_features. | Mariusz Felisiak | |
| This will notably silence the warnings issued when running the test suite on MySQL and MariaDB. | |||
| 2019-11-21 | Fixed #30484 -- Added conditional expressions support to CheckConstraint. | Simon Charette | |
| 2019-10-01 | Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ | ElizabethU | |
| implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically. | |||
| 2019-08-12 | Refs #11964 -- Made constraint support check respect required_db_features. | Simon Charette | |
| This will notably silence the warnings issued when running the test suite on MySQL. | |||
| 2019-07-19 | Fixed #30593 -- Added support for check constraints on MariaDB 10.2+. | Hasan Ramezani | |
| 2019-07-08 | Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵ | can | |
| constraints. | |||
| 2019-01-12 | Fixed #30062 -- Added support for unique conditional constraints. | Paveł Tyślacki | |
| 2019-01-12 | Added tests for Check/UniqueConstraint.__eq__(). | Paveł Tyślacki | |
| 2019-01-10 | Renamed variables after generalization of constraints. | Paveł Tyślacki | |
| Follow up to 8eae094638acf802c8047b341d126d94bc9b45a3. | |||
| 2019-01-01 | Fixed #30060 -- Moved SQL generation for indexes and constraints to ↵ | Paveł Tyślacki | |
| SchemaEditor. | |||
| 2018-11-21 | Fixed #29949 -- Refactored db introspection identifier converters. | Mariusz Felisiak | |
| Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review. | |||
| 2018-11-13 | Fixed #29641 -- Added support for unique constraints in Meta.constraints. | Simon Charette | |
| This constraint is similar to Meta.unique_together but also allows specifying a name. Co-authored-by: Ian Foote <python@ian.feete.org> | |||
| 2018-11-13 | Refs #29641 -- Refactored database schema constraint creation. | Simon Charette | |
| Added a test for constraint names in the database. Updated SQLite introspection to use sqlparse to allow reading the constraint name for table check and unique constraints. Co-authored-by: Ian Foote <python@ian.feete.org> | |||
| 2018-10-02 | Refs #29641 -- Extracted reusable CheckConstraint logic into a base class. | Simon Charette | |
| 2018-10-02 | Refs #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-25 | Refs #11964 -- Renamed a database check constraint test. | Ian Foote | |
| 2018-07-10 | Fixed #11964 -- Added support for database check constraints. | Ian Foote | |
