#32503: AlterField migration to TextField with default fails on MySQL 8.0.13+
-------------------------------+------------------------------------
     Reporter:  Matt Westcott  |                    Owner:  yuekui
         Type:  Bug            |                   Status:  assigned
    Component:  Migrations     |                  Version:  3.0
     Severity:  Normal         |               Resolution:
     Keywords:  mysql default  |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by Mariusz Felisiak):

 I've checked MySQL 8.0.13 release notes once more time:

 ''"MySQL now supports use of expressions as default values **in data type
 specifications**. This includes the use of expressions as default values
 for the BLOB, TEXT, GEOMETRY, and JSON data types, which previously could
 not be assigned default values at all. For details, see Data Type Default
 Values."''

 it looks that MySQL support is limited to the `ADD COLUMN` statement. We
 should revert 6b16c91157512587017e9178d066ed1a683e7795 and close #30712 as
 wontfix.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32503#comment:5>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.780dd0def5b1fc28c0ba9450ca99864e%40djangoproject.com.

Reply via email to