Yet *another* self.database -> self.database.bind fix!
This commit is contained in:
parent
396f39c3e9
commit
ef8591fdd0
@ -134,7 +134,7 @@ class MigrationManager(object):
|
|||||||
# sanity check before we proceed, none of these should be created
|
# sanity check before we proceed, none of these should be created
|
||||||
for model in self.models:
|
for model in self.models:
|
||||||
# Maybe in the future just print out a "Yikes!" or something?
|
# 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.migration_model.metadata.create_all(
|
||||||
self.database.bind,
|
self.database.bind,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user