Opened 5 years ago
Closed 5 years ago
#31409 closed Cleanup/optimization (wontfix)
Add warning regarding CheckConstraint and MySQL in docs.
Reported by: | Omar | Owned by: | Omar |
---|---|---|---|
Component: | Documentation | Version: | 3.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
As CheckConstraints are not supported by versions of MySQL less than 8.0.16, can we update this page https://docs.djangoproject.com/en/2.2/ref/models/constraints/ to show a warning to explain as much.
I was warned by the lovey Django System Check:
"MySQL does not support check constraints. HINT: A constraint won't be created. Silence this warning if you don't care about it."
Can we do the same for the docs?
I've yet to contribute to Django, I'd be happy for this to be my first attempt
Change History (2)
comment:1 by , 5 years ago
Owner: | changed from | to
---|
comment:2 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Summary: | [Documentation] Add warning regarding CheckConstraint and MySQL → Add warning regarding CheckConstraint and MySQL in docs. |
Type: | New feature → Cleanup/optimization |
Thanks for this ticket, however, as you already mentioned we have a system check for using
CheckConstraint
's when it's not supported by a database. I don't see much value in documenting this.