Mercurial > kallithea
changeset 2767:7562f46b1e90 beta
More fixes to upgrade procedure,
- fix missing section on hook
- fixed missing inherit_default_permission column
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 01 Sep 2012 20:30:19 +0200 |
parents | 66493675dd5a |
children | 850b2dfe2c7a |
files | rhodecode/lib/db_manage.py rhodecode/lib/dbmigrate/versions/006_version_1_4_0.py |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Sat Sep 01 19:44:02 2012 +0200 +++ b/rhodecode/lib/db_manage.py Sat Sep 01 20:30:19 2012 +0200 @@ -187,6 +187,7 @@ print ('installing new hooks') hooks4 = RhodeCodeUi() + hooks4.ui_section = 'hooks' hooks4.ui_key = RhodeCodeUi.HOOK_PRE_PUSH hooks4.ui_value = 'python:rhodecode.lib.hooks.pre_push' Session().add(hooks4)
--- a/rhodecode/lib/dbmigrate/versions/006_version_1_4_0.py Sat Sep 01 19:44:02 2012 +0200 +++ b/rhodecode/lib/dbmigrate/versions/006_version_1_4_0.py Sat Sep 01 20:30:19 2012 +0200 @@ -75,6 +75,17 @@ inherit_default_permissions.alter(nullable=False, default=True, table=tbl) #========================================================================== + # GROUPS TABLE + #========================================================================== + from rhodecode.lib.dbmigrate.schema.db_1_3_0 import RepoGroup + tbl = RepoGroup.__table__ + inherit_default_permissions = Column("inherit_default_permissions", + Boolean(), nullable=True, unique=None, + default=True) + inherit_default_permissions.create(table=tbl) + inherit_default_permissions.alter(nullable=False, default=True, table=tbl) + + #========================================================================== # REPOSITORIES #========================================================================== from rhodecode.lib.dbmigrate.schema.db_1_3_0 import Repository