#33507: Use native UUID data type on MariaDB 10.7+
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  raydeal
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  mariadb              |             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):

 Replying to [comment:7 Adam Johnson]:
 > > unless we adapt the schema editor to avoid `ALTER` when the generated
 SQL column of `from_field` and `to_field` remains the same.
 >
 > This sounds like generally a good idea any way!

 Looks like it already
 
[https://github.com/django/django/blob/05d70fb92b72f9701bea99c809a5edd53b290de9/django/db/backends/base/schema.py#L961-L966
 works]. For example, I've changed `models.CharField(max_length=50,
 unique=True)` to `models.SlugField(unique=True)` on PostgreSQL and Django
 didn't alter the db type:
 {{{#!sql
 --
 -- Alter field field_2 on mytestmodel
 --
 -- (no-op)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33507#comment:14>
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/010701851a8bab58-abcc3ca2-c97a-472e-b45a-d253186b5e1a-000000%40eu-central-1.amazonses.com.

Reply via email to