#30593: Add support for check constraints on MariaDB 10.2+.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: nobody
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) | Keywords: MariaDB,
Severity: Normal | constraint, check
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
MariaDB 10.2+ support check constraints (see
[https://mariadb.com/kb/en/library/constraint/#check-constraints check-
constraints]), we should support them because we officially support this
database. I created [https://github.com/django/django/pull/11513 PR] to
fix feature flags but it requires more work e.g. with introspection.
10 tests fail at 698df6a009cb1c4dbd55905264f24f6edf41066e:
- `constraints.tests.CheckConstraintTests.test_name`
- `constraints.tests.CheckConstraintTests.test_database_constraint`
- `introspection.tests.IntrospectionTests.test_get_constraints`
- `migrations.test_operations.OperationTests.test_add_constraint`
-
`migrations.test_operations.OperationTests.test_add_constraint_percent_escaping`
- `migrations.test_operations.OperationTests.test_add_or_constraint`
-
`migrations.test_operations.OperationTests.test_create_model_with_constraint`
- `migrations.test_operations.OperationTests.test_remove_constraint`
- `schema.tests.SchemaTests.test_check_constraints`
-
`schema.tests.SchemaTests.test_remove_field_check_does_not_remove_meta_constraints`
[1] https://mariadb.com/kb/en/library/information-schema-
check_constraints-table/
--
Ticket URL: <https://code.djangoproject.com/ticket/30593>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.6ff52be971b99226fe8024a035d64c73%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.