#26833: alter_field() fails to drop indexes on columns with mixed case on Oracle
----------------------------+--------------------
     Reporter:  jdufresne   |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  master
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 On fields that set `db_column` with mixed case, `alter_field()` fails to
 drop indexes on Oracle.

 Due to Oracle's `uppercases_column_names` feature,
 
[https://github.com/django/django/blob/8db889eaf7dce0cb715b075be32047c1b1b316da/django/db/backends/oracle/introspection.py#L158
 get_constraints() returns all columns as lower case]. However,
 `alter_field()` use of
 
[https://github.com/django/django/blob/8db889eaf7dce0cb715b075be32047c1b1b316da/django/db/backends/base/schema.py#L938-L961
 _constraint_names()] compares the column name as set by `db_column`. This
 must be accounted for on Oracle for the index to be properly dropped.

--
Ticket URL: <https://code.djangoproject.com/ticket/26833>
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/052.c052255a32d6e453a231fc06ddefe2bf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to