Opened 5 years ago
Closed 5 years ago
#30750 closed New feature (fixed)
Add support for check constraints on MySQL 8.0.16+.
Description ¶
MySQL 8.0.16+ supports check constraints (see documentation), we should support them in Django.
Change History (8)
by , 5 years ago
Attachment: | 30750.diff added |
---|
comment:1 by , 5 years ago
I've started to work on a patch but still a lot of schema
tests are failing on MySQL 8.
comment:5 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 5 years ago
Has patch: | set |
---|
@felixxm, I fixed the test_alter_db_table_case test.
The problem was that the table belongs to the Author
model couldn't be dropped because when the test rename table to the uppercase name, the _meta.db_table
has the old name(lowercase name).
So I added another rename to return the table to the original name.
patch