Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Sun Feb 19 05:15:04 2012 +0200 +++ b/rhodecode/lib/db_manage.py Sun Feb 19 17:41:07 2012 +0200 @@ -171,10 +171,13 @@ self.klass.create_ldap_options(skip_existing=True) def step_4(self): - print ('TODO:') + print ('create permissions and fix groups') self.klass.create_permissions() self.klass.fixup_groups() + def step_5(self): + pass + upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE @@ -182,7 +185,7 @@ print ('performing upgrade step %s' % step) getattr(UpgradeSteps(self), 'step_%s' % step)() self.sa.commit() - + def fix_repo_paths(self): """ Fixes a old rhodecode version path into new one without a '*'