Mercurial > kallithea
comparison rhodecode/lib/db_manage.py @ 3179:cd50d1b5f35b
merged with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 21 Jan 2013 00:03:44 +0100 |
parents | 3259dc7caea4 b31984972e95 |
children | 3563bb7b4b82 |
comparison
equal
deleted
inserted
replaced
3113:a0737406ce26 | 3179:cd50d1b5f35b |
---|---|
162 def __init__(self, klass): | 162 def __init__(self, klass): |
163 self.klass = klass | 163 self.klass = klass |
164 | 164 |
165 def step_0(self): | 165 def step_0(self): |
166 # step 0 is the schema upgrade, and than follow proper upgrades | 166 # step 0 is the schema upgrade, and than follow proper upgrades |
167 notify('attempting to do database upgrade to version %s' \ | 167 notify('attempting to do database upgrade from ' |
168 % __dbversion__) | 168 'version %s to version %s' %(curr_version, __dbversion__)) |
169 api.upgrade(db_uri, repository_path, __dbversion__) | 169 api.upgrade(db_uri, repository_path, __dbversion__) |
170 notify('Schema upgrade completed') | 170 notify('Schema upgrade completed') |
171 | 171 |
172 def step_1(self): | 172 def step_1(self): |
173 pass | 173 pass |
283 notify('There was an inconsistent state of permissions ' | 283 notify('There was an inconsistent state of permissions ' |
284 'detected for default user. Permissions are now ' | 284 'detected for default user. Permissions are now ' |
285 'reset to the default value for default user. ' | 285 'reset to the default value for default user. ' |
286 'Please validate and check default permissions ' | 286 'Please validate and check default permissions ' |
287 'in admin panel') | 287 'in admin panel') |
288 | |
289 def step_10(self): | |
290 pass | |
288 | 291 |
289 upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) | 292 upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) |
290 | 293 |
291 # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE | 294 # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE |
292 _step = None | 295 _step = None |