Mercurial > kallithea
comparison rhodecode/lib/db_manage.py @ 2000:72c525a7e7ad beta
added migrations from 1.2.X to 1.3
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 19 Feb 2012 17:41:07 +0200 |
parents | 77b5c24f1887 |
children | 34d009e5147a |
comparison
equal
deleted
inserted
replaced
1999:6b474c01ba98 | 2000:72c525a7e7ad |
---|---|
169 self.klass.fix_settings() | 169 self.klass.fix_settings() |
170 print ('Adding ldap defaults') | 170 print ('Adding ldap defaults') |
171 self.klass.create_ldap_options(skip_existing=True) | 171 self.klass.create_ldap_options(skip_existing=True) |
172 | 172 |
173 def step_4(self): | 173 def step_4(self): |
174 print ('TODO:') | 174 print ('create permissions and fix groups') |
175 self.klass.create_permissions() | 175 self.klass.create_permissions() |
176 self.klass.fixup_groups() | 176 self.klass.fixup_groups() |
177 | 177 |
178 def step_5(self): | |
179 pass | |
180 | |
178 upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) | 181 upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) |
179 | 182 |
180 # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE | 183 # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE |
181 for step in upgrade_steps: | 184 for step in upgrade_steps: |
182 print ('performing upgrade step %s' % step) | 185 print ('performing upgrade step %s' % step) |
183 getattr(UpgradeSteps(self), 'step_%s' % step)() | 186 getattr(UpgradeSteps(self), 'step_%s' % step)() |
184 self.sa.commit() | 187 self.sa.commit() |
185 | 188 |
186 def fix_repo_paths(self): | 189 def fix_repo_paths(self): |
187 """ | 190 """ |
188 Fixes a old rhodecode version path into new one without a '*' | 191 Fixes a old rhodecode version path into new one without a '*' |
189 """ | 192 """ |
190 | 193 |