Yet *another* self.database -> self.database.bind fix!
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 23:06:19 +0000 (17:06 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 23:06:19 +0000 (17:06 -0600)
mediagoblin/db/sql/util.py

index cb8fbf0df6be74696f5723ad24257977ef3852cd..52c575432ef35137f94d278383117da51fa47c2e 100644 (file)
@@ -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,