#8162: Increase Permission.name max_length
---------------------------------+-------------------------------------
     Reporter:  juliae           |                    Owner:  wilsoniya
         Type:  Bug              |                   Status:  assigned
    Component:  contrib.auth     |                  Version:  master
     Severity:  Normal           |               Resolution:
     Keywords:  schemamigration  |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-------------------------------------
Changes (by charettes):

 * cc: charettes (added)


Comment:

 What about using a `TextField` instead?

 This would lift the length limitation and shouldn't have any user
 noticeable effect since this field is not queried by Django.

 Do all backends support altering a `CharField` to a `TextField`? If it's
 not the case we could ship three migrations:

 1. Schema migration that creates the new text field;
 2. Data migration that populates the new field;
 3. Schema migration that removes the old char field and rename the new one
 `name`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/8162#comment:42>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.47199178f52497b4a0c6a94e13acc52c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to