diff options
-rw-r--r-- | mediagoblin/db/migrations.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 6ca10b57..a7e026c6 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -870,6 +870,10 @@ def revert_username_index(db): if u'ix_core__users_username' in indexes: index = indexes[u'ix_core__users_username'] 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() try: |