Yet *another* self.database -> self.database.bind fix!

This commit is contained in:
Christopher Allan Webber 2012-01-29 17:06:19 -06:00
parent 396f39c3e9
commit ef8591fdd0

View 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,