From: Christopher Allan Webber Date: Mon, 2 Jan 2012 20:56:05 +0000 (-0600) Subject: Another MigrationManager fix. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dc5da0f891895c79f29be05df1e14035b080dcdc;p=mediagoblin.git Another MigrationManager fix. self.database -> self.database.engine (thanks again Elrond for the catch) --- diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py index 604f040c..0911884e 100644 --- a/mediagoblin/db/sql/util.py +++ b/mediagoblin/db/sql/util.py @@ -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):