1. Luke Plant
  2. south

Commits

and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed 1912c66

Fix failing test case by doing UNIQUE properly again.

  • Participants
  • Parent commits 664721d
  • Branches default

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
             if field.primary_key:
                 field_output.append('PRIMARY KEY')
             elif field.unique:
-                # Instead of using UNIQUE, add a unique index with a predictable name
-                self.add_deferred_sql(
-                    self.create_index_sql(
-                        table_name,
-                        [field.column],
-                        unique = True,
-                        db_tablespace = tablespace,
-                    )
-                )
+                # Just use UNIQUE (no indexes any more, we have delete_unique)
+                field_output.append('UNIQUE')
 
             tablespace = field.db_tablespace or tablespace
             if tablespace and connection.features.supports_tablespaces and field.unique: