orm.py - added init call after dropping table by migration

This commit is contained in:
Oscar Krause 2022-12-29 12:34:25 +01:00
parent 0983426f30
commit 13ec45e762
1 changed files with 1 additions and 0 deletions

View File

@ -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()