mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 23:41:06 +03:00
orm.py - added init call after dropping table by migration
This commit is contained in:
parent
0983426f30
commit
13ec45e762
@ -169,5 +169,6 @@ def migrate(engine: Engine):
|
|||||||
print(' Your leases are recreated on next renewal!')
|
print(' Your leases are recreated on next renewal!')
|
||||||
print(' If an error message appears on the client, you can ignore it.')
|
print(' If an error message appears on the client, you can ignore it.')
|
||||||
Lease.__table__.drop(bind=engine)
|
Lease.__table__.drop(bind=engine)
|
||||||
|
init(engine)
|
||||||
|
|
||||||
upgrade_1_0_to_1_1()
|
upgrade_1_0_to_1_1()
|
||||||
|
Loading…
Reference in New Issue
Block a user