1. Andrew Godwin
  2. south


Andrew Godwin  committed 0cee0a1 Merge

Merged in shaib/south (pull request #150)

Fix SQLite3 double-index errors on Django=1.4 by cancelling deferred sql on table remake

  • Participants
  • Parent commits 79da863, 1a78df9
  • Branches default

Comments (0)

Files changed (1)

File south/db/sqlite3.py

View file
         # We can't do that before since it's impossible to rename indexes
         # and index name scope is global
         self._make_standalone_indexes(table_name, standalone_indexes, renames=renames, deleted=deleted, uniques_deleted=uniques_deleted)
+        self.deferred_sql = [] # prevent double indexing
     def _copy_data(self, src, dst, field_renames={}, added={}):
         "Used to copy data into a new table"