Show More
@@ -172,7 +172,7 b' class DbManage(object):' | |||||
172 |
|
172 | |||
173 | def step_4(self): |
|
173 | def step_4(self): | |
174 | print ('TODO:') |
|
174 | print ('TODO:') | |
175 | self.create_permissions() |
|
175 | self.klass.create_permissions() | |
176 | self.klass.fixup_groups() |
|
176 | self.klass.fixup_groups() | |
177 |
|
177 | |||
178 | upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) |
|
178 | upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) | |
@@ -181,7 +181,8 b' class DbManage(object):' | |||||
181 | for step in upgrade_steps: |
|
181 | for step in upgrade_steps: | |
182 | print ('performing upgrade step %s' % step) |
|
182 | print ('performing upgrade step %s' % step) | |
183 | getattr(UpgradeSteps(self), 'step_%s' % step)() |
|
183 | getattr(UpgradeSteps(self), 'step_%s' % step)() | |
184 |
|
184 | self.sa.commit() | ||
|
185 | ||||
185 | def fix_repo_paths(self): |
|
186 | def fix_repo_paths(self): | |
186 | """ |
|
187 | """ | |
187 | Fixes a old rhodecode version path into new one without a '*' |
|
188 | Fixes a old rhodecode version path into new one without a '*' | |
@@ -484,7 +485,7 b' class DbManage(object):' | |||||
484 | ] |
|
485 | ] | |
485 |
|
486 | |||
486 | for p in perms: |
|
487 | for p in perms: | |
487 | if not Permission.get_by_key(p): |
|
488 | if not Permission.get_by_key(p[0]): | |
488 | new_perm = Permission() |
|
489 | new_perm = Permission() | |
489 | new_perm.permission_name = p[0] |
|
490 | new_perm.permission_name = p[0] | |
490 | new_perm.permission_longname = p[1] |
|
491 | new_perm.permission_longname = p[1] |
General Comments 0
You need to be logged in to leave comments.
Login now