﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23880	SQLite's schema editor doesn't handle index_together	Markus Holtermann	Markus Holtermann	"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
}}}"	Bug	closed	Database layer (models, ORM)	1.7	Release blocker	fixed		Markus Holtermann	Ready for checkin	1	0	0	0	0	0
