Another MigrationManager fix.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2012 20:56:05 +0000 (14:56 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:33:45 +0000 (16:33 -0600)
self.database -> self.database.engine (thanks again Elrond for the catch)

mediagoblin/db/sql/util.py

index 604f040c8e3547142ad08bd66795edea813b0567..0911884ebb1e4e966421317a0ae97fac09787259 100644 (file)
@@ -127,7 +127,7 @@ class MigrationManager(object):
             assert not model.__table__.exists(self.database)
 
         self.migration_model.metadata.create_all(
-            self.database,
+            self.database.engine,
             tables=[model.__table__ for model in self.models])
 
     def create_new_migration_record(self):