Show More
@@ -117,7 +117,7 b' class DbManage(object):' | |||
|
117 | 117 | self.sa.add(ver) |
|
118 | 118 | log.info('db version set to: %s', __dbversion__) |
|
119 | 119 | |
|
120 |
def run_p |
|
|
120 | def run_post_migration_tasks(self): | |
|
121 | 121 | """ |
|
122 | 122 | Run various tasks before actually doing migrations |
|
123 | 123 | """ |
@@ -172,7 +172,6 b' class DbManage(object):' | |||
|
172 | 172 | |
|
173 | 173 | notify(msg) |
|
174 | 174 | |
|
175 | self.run_pre_migration_tasks() | |
|
176 | 175 | |
|
177 | 176 | if curr_version == __dbversion__: |
|
178 | 177 | log.info('This database is already at the newest version') |
@@ -194,6 +193,7 b' class DbManage(object):' | |||
|
194 | 193 | |
|
195 | 194 | _step = step |
|
196 | 195 | |
|
196 | self.run_post_migration_tasks() | |
|
197 | 197 | notify('upgrade to version %s successful' % _step) |
|
198 | 198 | |
|
199 | 199 | def fix_repo_paths(self): |
General Comments 0
You need to be logged in to leave comments.
Login now