Fixed problem with step param not initializing for 0 step migration

This commit is contained in:
Marcin Kuźmiński 2024-07-12 16:41:59 +00:00
parent 26d18ef0fe
commit 1790b4d3d2

View file

@ -201,7 +201,7 @@ class DbManage(object):
f'version {curr_version} to version {__dbversion__}')
# CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE
_step = None
final_step = 'latest'
for step in upgrade_steps:
notify(f'performing upgrade step {step}')
time.sleep(0.5)
@ -210,10 +210,10 @@ class DbManage(object):
self.sa.rollback()
notify(f'schema upgrade for step {step} completed')
_step = step
final_step = step
self.run_post_migration_tasks()
notify(f'upgrade to version {step} successful')
notify(f'upgrade to version {final_step} successful')
def fix_repo_paths(self):
"""