#23880: SQLite's schema editor doesn't handle index_together
----------------------------------------------+--------------------
Reporter: MarkusH | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
The SQLite schema editor doesn't handle `index_together` changes. This
manifests itself when renaming a field that is part of `index_together`.
I came across the bug when fixing
https://code.djangoproject.com/ticket/23859#comment:6 . After
`RenameField`'s `database_forwards()` has run the index is missing.
{{{#!python
Traceback (most recent call last):
File "/home/jenkins/workspace/django-pull-
requests/database/sqlite3/python/python3.4/tests/migrations/test_operations.py",
line 1016, in test_rename_field
self.assertIndexExists("test_rnfl_pony", ["weight", "blue"])
File "/home/jenkins/workspace/django-pull-
requests/database/sqlite3/python/python3.4/tests/migrations/test_base.py",
line 46, in assertIndexExists
for c in connection.introspection.get_constraints(cursor,
table).values()
AssertionError: True != False
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23880>
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/050.81827834b067ea4c1ea00593a5061285%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.