Pull requests

#146 Merged
Repository
accek accek
Branch
default
Repository
andrewgodwin andrewgodwin
Branch
default

Re-create non-unique indexes in _remake_table in sqlite3

Author
  1. Szymon Acedański
Reviewers
Description

Only for sqlite:

Without this change, all operations involving _remake_table (for example adding a column) lose all non-unique indexes (from fields with db_index=True and from models with Meta.index_together). This causes migration failures when later trying to delete such an index, possibly in some future migration.

Comments (0)