Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#27676 closed New feature (fixed)

MariaDB 10.2 supports defaults for text columns

Reported by: Adam Johnson Owned by: Adam Johnson
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: me@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Django has workaround code for MySQL's deficiency not supporting DEFAULT for TEXT, BLOB, and JSON columns, but MariaDB 10.2 fixes this ( see "BLOB and TEXT fields can now have a DEFAULT value." ).

Django should allow DEFAULT for these columns when on MariaDB 10.2+.

Change History (7)

comment:1 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedSomeday/Maybe
Type: BugNew feature

First some consensus is needed about whether Django should officially support MariaDB.

comment:2 Changed 6 years ago by Adam Johnson

Thanks, I missed that thread, commented

comment:3 Changed 6 years ago by Tim Graham

Has patch: set
Triage Stage: Someday/MaybeReady for checkin

comment:4 Changed 5 years ago by Tim Graham

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

On the PR, Adam said, "I was thinking of forming a better plan around MariaDB first."

comment:5 Changed 3 years ago by Mariusz Felisiak

Django 3.0 will officially support MariaDB 10.1+. I think it's time to change this feature flag. Adam, can you resubmit your patch?

comment:6 Changed 3 years ago by Adam Johnson

Patch needs improvement: unset
Version 0, edited 3 years ago by Adam Johnson (next)

comment:7 Changed 3 years ago by Mariusz Felisiak <felisiak.mariusz@…>

Resolution: fixed
Status: assignedclosed

In 7da6a28a:

Fixed #27676 -- Allowed BLOB/TEXT defaults on MariaDB 10.2.1+.

Note: See TracTickets for help on using tickets.
Back to Top