diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-08-08 09:50:16 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-08-08 09:50:16 -0500 |
commit | ed0b981edc868046575d9e451077e79c7b0e4016 (patch) | |
tree | f98987ad0d0e794f25b61ae920a95a23562b375d | |
parent | 1de794c6f0e8909d18e9e4478820d81184b9bc29 (diff) | |
download | mediagoblin-ed0b981edc868046575d9e451077e79c7b0e4016.tar.lz mediagoblin-ed0b981edc868046575d9e451077e79c7b0e4016.tar.xz mediagoblin-ed0b981edc868046575d9e451077e79c7b0e4016.zip |
If the constraint already exists, roll back to a sane state.
-rw-r--r-- | mediagoblin/db/migrations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index a7e026c6..fca7819b 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -883,6 +883,6 @@ def revert_username_index(db): constraint.create() except ProgrammingError: # constraint already exists, no need to add - pass + db.rollback() db.commit() |