Another MigrationManager fix.
self.database -> self.database.engine (thanks again Elrond for the catch)
This commit is contained in:
parent
bf81382896
commit
dc5da0f891
@ -127,7 +127,7 @@ class MigrationManager(object):
|
|||||||
assert not model.__table__.exists(self.database)
|
assert not model.__table__.exists(self.database)
|
||||||
|
|
||||||
self.migration_model.metadata.create_all(
|
self.migration_model.metadata.create_all(
|
||||||
self.database,
|
self.database.engine,
|
||||||
tables=[model.__table__ for model in self.models])
|
tables=[model.__table__ for model in self.models])
|
||||||
|
|
||||||
def create_new_migration_record(self):
|
def create_new_migration_record(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user