# HG changeset patch # User Marcin Kuzminski # Date 2019-07-16 11:12:38 # Node ID 73b9614caaeaa59d2e2865d731675d546c628613 # Parent d7f1267e0b77b93f7d8dc3bc91e3259181c4d343 db-migration: we run cleanup of cache keys AFTER upgrade. - this allows actually migrating CacheKeys - this step is optional, and it it fails it's not the end of the world, we still would run migration anyway. 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 @@ -117,7 +117,7 @@ class DbManage(object): self.sa.add(ver) log.info('db version set to: %s', __dbversion__) - def run_pre_migration_tasks(self): + def run_post_migration_tasks(self): """ Run various tasks before actually doing migrations """ @@ -172,7 +172,6 @@ class DbManage(object): notify(msg) - self.run_pre_migration_tasks() if curr_version == __dbversion__: log.info('This database is already at the newest version') @@ -194,6 +193,7 @@ class DbManage(object): _step = step + self.run_post_migration_tasks() notify('upgrade to version %s successful' % _step) def fix_repo_paths(self):