Commits

amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed c39d0cf

don't create an index for any column that's also unique. the create table statement should create a unique index by default for this column

  • Participants
  • Parent commits e2b5bd0

Comments (0)

Files changed (1)

File db/generic.py

                 )
             )
             
-        if field.db_index:
+        if field.db_index and not field.unique:
             self.add_deferred_sql(self.create_index_sql(table_name, [field.column]))
             
         return sql % sqlparams