Reverting indexing of objattribute.db_value; it is a highly db-incompatible change, and also lacking the possibility to create unique indices with unclear results.
This commit is contained in:
parent
b0ac916b9a
commit
9a3562148a
4 changed files with 119 additions and 11 deletions
|
|
@ -9,12 +9,12 @@ class Migration(SchemaMigration):
|
|||
|
||||
def forwards(self, orm):
|
||||
# Adding index on 'ObjAttribute', fields ['db_value']
|
||||
db.create_index('objects_objattribute', ['db_value'])
|
||||
|
||||
# removing this migration completely.
|
||||
pass
|
||||
|
||||
def backwards(self, orm):
|
||||
# Removing index on 'ObjAttribute', fields ['db_value']
|
||||
db.delete_index('objects_objattribute', ['db_value'])
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
models = {
|
||||
|
|
@ -106,4 +106,4 @@ class Migration(SchemaMigration):
|
|||
}
|
||||
}
|
||||
|
||||
complete_apps = ['objects']
|
||||
complete_apps = ['objects']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue