Opened 4 years ago

Closed 14 months ago

Last modified 13 months ago

#27676 closed New feature (fixed)

MariaDB 10.2 supports defaults for text columns

Reported by: Adam (Chainz) Johnson Owned by: Adam (Chainz) Johnson
Component: Database layer (models, ORM) Version: master
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

Description

Django has workaround code for MySQL's deficiency not supporting DEFAULT for TEXT, BLOB, and JSON columns, but MariaDB 10.2 fixes this ( see https://mariadb.com/kb/en/mariadb/what-is-mariadb-102/: "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 4 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 4 years ago by Adam (Chainz) Johnson

Thanks, I missed that thread, commented

comment:3 Changed 4 years ago by Tim Graham

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

comment:4 Changed 3 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 15 months ago by felixxm

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 14 months ago by Adam (Chainz) Johnson

Patch needs improvement: unset
Last edited 13 months ago by felixxm (previous) (diff)

comment:7 Changed 14 months 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