# HG changeset patch # User Marcin Kuźmiński # Date 2024-07-12 16:41:59 # Node ID 02aaf60afa120b19b53535656fc1e9a778266f58 # Parent 7f730862b87bf0d13aa6f9292bbd210610156f7c Fixed problem with step param not initializing for 0 step migration diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py +++ b/rhodecode/lib/db_manage.py @@ -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): """