From: Christopher Allan Webber Date: Sun, 29 Jan 2012 23:06:19 +0000 (-0600) Subject: Yet *another* self.database -> self.database.bind fix! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ef8591fdd09a4910a590b145d781cdd1e1eff0f4;p=mediagoblin.git Yet *another* self.database -> self.database.bind fix! --- diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py index cb8fbf0d..52c57543 100644 --- a/mediagoblin/db/sql/util.py +++ b/mediagoblin/db/sql/util.py @@ -134,7 +134,7 @@ class MigrationManager(object): # sanity check before we proceed, none of these should be created for model in self.models: # Maybe in the future just print out a "Yikes!" or something? - assert not model.__table__.exists(self.database) + assert not model.__table__.exists(self.database.bind) self.migration_model.metadata.create_all( self.database.bind,