Fixed problem with step param not initializing for 0 step migration
This commit is contained in:
parent
26d18ef0fe
commit
1790b4d3d2
1 changed files with 3 additions and 3 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue