aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/sql/util.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-01-29 17:06:19 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-01-29 17:06:19 -0600
commitef8591fdd09a4910a590b145d781cdd1e1eff0f4 (patch)
treea3d098746649d8615d5c55436cae4fdb0f877c44 /mediagoblin/db/sql/util.py
parent396f39c3e9e5346b4b2e86f6bcce9cdb0c6ee683 (diff)
downloadmediagoblin-ef8591fdd09a4910a590b145d781cdd1e1eff0f4.tar.lz
mediagoblin-ef8591fdd09a4910a590b145d781cdd1e1eff0f4.tar.xz
mediagoblin-ef8591fdd09a4910a590b145d781cdd1e1eff0f4.zip
Yet *another* self.database -> self.database.bind fix!
Diffstat (limited to 'mediagoblin/db/sql/util.py')
-rw-r--r--mediagoblin/db/sql/util.py2
1 files changed, 1 insertions, 1 deletions
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,