Actually rename the table back, or else we just lose the old table! ;)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 10 Oct 2013 19:14:32 +0000 (14:14 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 10 Oct 2013 19:14:32 +0000 (14:14 -0500)
mediagoblin/db/migration_tools.py

index 70cd92c8ad19523d158ad8cce635699e6262d3bb..6b51025eeebb941529794b524f28bea130bd56b3 100644 (file)
@@ -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()