Mercurial > kallithea
comparison rhodecode/lib/dbmigrate/versions/003_version_1_2_0.py @ 2195:b5f03c1d2153 beta
fixed migration import error
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 16 Apr 2012 19:27:27 +0200 |
parents | 72c525a7e7ad |
children | a437a986d399 fa6ba6727475 |
comparison
equal
deleted
inserted
replaced
2194:ec6691dd9e94 | 2195:b5f03c1d2153 |
---|---|
20 """ | 20 """ |
21 | 21 |
22 #========================================================================== | 22 #========================================================================== |
23 # Add table `groups`` | 23 # Add table `groups`` |
24 #========================================================================== | 24 #========================================================================== |
25 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import RepoGroup as Group | 25 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import Group as Group |
26 Group().__table__.create() | 26 Group().__table__.create() |
27 | 27 |
28 #========================================================================== | 28 #========================================================================== |
29 # Add table `group_to_perm` | 29 # Add table `group_to_perm` |
30 #========================================================================== | 30 #========================================================================== |
69 | 69 |
70 #remove old column | 70 #remove old column |
71 is_ldap = Column("is_ldap", Boolean(), nullable=False, unique=None, default=False) | 71 is_ldap = Column("is_ldap", Boolean(), nullable=False, unique=None, default=False) |
72 is_ldap.drop(User().__table__) | 72 is_ldap.drop(User().__table__) |
73 | 73 |
74 | |
75 #========================================================================== | 74 #========================================================================== |
76 # Upgrade of `repositories` table | 75 # Upgrade of `repositories` table |
77 #========================================================================== | 76 #========================================================================== |
78 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import Repository | 77 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import Repository |
79 | 78 |
98 group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), | 97 group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), |
99 nullable=True, unique=False, default=None) | 98 nullable=True, unique=False, default=None) |
100 | 99 |
101 group_id.create(Repository().__table__) | 100 group_id.create(Repository().__table__) |
102 | 101 |
103 | |
104 #========================================================================== | 102 #========================================================================== |
105 # Upgrade of `user_followings` table | 103 # Upgrade of `user_followings` table |
106 #========================================================================== | 104 #========================================================================== |
107 | 105 |
108 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import UserFollowing | 106 from rhodecode.lib.dbmigrate.schema.db_1_2_0 import UserFollowing |