From: Christopher Allan Webber Date: Thu, 10 Oct 2013 19:14:32 +0000 (-0500) Subject: Actually rename the table back, or else we just lose the old table! ;) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=454a2c16bdb8849805f338f325eb5a481f1cc826;p=mediagoblin.git Actually rename the table back, or else we just lose the old table! ;) --- diff --git a/mediagoblin/db/migration_tools.py b/mediagoblin/db/migration_tools.py index 70cd92c8..6b51025e 100644 --- a/mediagoblin/db/migration_tools.py +++ b/mediagoblin/db/migration_tools.py @@ -311,5 +311,5 @@ def replace_table(db, old_table,replacement_table): old_table.drop() db.commit() - replacement_table.name=old_table_name + replacement_table.rename(old_table_name) db.commit()