Explaining why we're committing mid-migration
This commit is contained in:
parent
e6288a68e1
commit
1de794c6f0
@ -870,6 +870,10 @@ def revert_username_index(db):
|
|||||||
if u'ix_core__users_username' in indexes:
|
if u'ix_core__users_username' in indexes:
|
||||||
index = indexes[u'ix_core__users_username']
|
index = indexes[u'ix_core__users_username']
|
||||||
index.drop()
|
index.drop()
|
||||||
|
|
||||||
|
# Given we're removing indexes then adding a unique constraint
|
||||||
|
# which *we know might fail*, thus probably rolling back the
|
||||||
|
# session, let's commit here.
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user