|
@@
-50,7
+50,7
b' class RepositoryMapper(MapperExtension):'
|
|
50
|
|
|
50
|
|
|
51
|
class RhodeCodeSettings(Base):
|
|
51
|
class RhodeCodeSettings(Base):
|
|
52
|
__tablename__ = 'rhodecode_settings'
|
|
52
|
__tablename__ = 'rhodecode_settings'
|
|
53
|
__table_args__ = (UniqueConstraint('app_settings_name'), {'useexisting':True})
|
|
53
|
__table_args__ = (UniqueConstraint('app_settings_name'), {'extend_existing':True})
|
|
54
|
app_settings_id = Column("app_settings_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
54
|
app_settings_id = Column("app_settings_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
55
|
app_settings_name = Column("app_settings_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
55
|
app_settings_name = Column("app_settings_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
56
|
app_settings_value = Column("app_settings_value", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
56
|
app_settings_value = Column("app_settings_value", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-99,7
+99,7
b' class RhodeCodeSettings(Base):'
|
|
99
|
|
|
99
|
|
|
100
|
class RhodeCodeUi(Base):
|
|
100
|
class RhodeCodeUi(Base):
|
|
101
|
__tablename__ = 'rhodecode_ui'
|
|
101
|
__tablename__ = 'rhodecode_ui'
|
|
102
|
__table_args__ = {'useexisting':True}
|
|
102
|
__table_args__ = {'extend_existing':True}
|
|
103
|
ui_id = Column("ui_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
103
|
ui_id = Column("ui_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
104
|
ui_section = Column("ui_section", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
104
|
ui_section = Column("ui_section", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
105
|
ui_key = Column("ui_key", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
105
|
ui_key = Column("ui_key", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-114,7
+114,7
b' class RhodeCodeUi(Base):'
|
|
114
|
|
|
114
|
|
|
115
|
class User(Base):
|
|
115
|
class User(Base):
|
|
116
|
__tablename__ = 'users'
|
|
116
|
__tablename__ = 'users'
|
|
117
|
__table_args__ = (UniqueConstraint('username'), UniqueConstraint('email'), {'useexisting':True})
|
|
117
|
__table_args__ = (UniqueConstraint('username'), UniqueConstraint('email'), {'extend_existing':True})
|
|
118
|
user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
118
|
user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
119
|
username = Column("username", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
119
|
username = Column("username", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
120
|
password = Column("password", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
120
|
password = Column("password", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-173,10
+173,10
b' class User(Base):'
|
|
173
|
|
|
173
|
|
|
174
|
class UserLog(Base):
|
|
174
|
class UserLog(Base):
|
|
175
|
__tablename__ = 'user_logs'
|
|
175
|
__tablename__ = 'user_logs'
|
|
176
|
__table_args__ = {'useexisting':True}
|
|
176
|
__table_args__ = {'extend_existing':True}
|
|
177
|
user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
177
|
user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
178
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
178
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
179
|
repository_id = Column("repository_id", Integer(length=None, convert_unicode=False, assert_unicode=None), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
|
|
179
|
repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
|
|
180
|
repository_name = Column("repository_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
180
|
repository_name = Column("repository_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
181
|
user_ip = Column("user_ip", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
181
|
user_ip = Column("user_ip", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
182
|
action = Column("action", UnicodeText(length=1200000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
182
|
action = Column("action", UnicodeText(length=1200000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-192,7
+192,7
b' class UserLog(Base):'
|
|
192
|
|
|
192
|
|
|
193
|
class UsersGroup(Base):
|
|
193
|
class UsersGroup(Base):
|
|
194
|
__tablename__ = 'users_groups'
|
|
194
|
__tablename__ = 'users_groups'
|
|
195
|
__table_args__ = {'useexisting':True}
|
|
195
|
__table_args__ = {'extend_existing':True}
|
|
196
|
|
|
196
|
|
|
197
|
users_group_id = Column("users_group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
197
|
users_group_id = Column("users_group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
198
|
users_group_name = Column("users_group_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
|
|
198
|
users_group_name = Column("users_group_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
|
|
@@
-216,7
+216,7
b' class UsersGroup(Base):'
|
|
216
|
|
|
216
|
|
|
217
|
class UsersGroupMember(Base):
|
|
217
|
class UsersGroupMember(Base):
|
|
218
|
__tablename__ = 'users_groups_members'
|
|
218
|
__tablename__ = 'users_groups_members'
|
|
219
|
__table_args__ = {'useexisting':True}
|
|
219
|
__table_args__ = {'extend_existing':True}
|
|
220
|
|
|
220
|
|
|
221
|
users_group_member_id = Column("users_group_member_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
221
|
users_group_member_id = Column("users_group_member_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
222
|
users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
|
|
222
|
users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
|
|
@@
-231,7
+231,7
b' class UsersGroupMember(Base):'
|
|
231
|
|
|
231
|
|
|
232
|
class Repository(Base):
|
|
232
|
class Repository(Base):
|
|
233
|
__tablename__ = 'repositories'
|
|
233
|
__tablename__ = 'repositories'
|
|
234
|
__table_args__ = (UniqueConstraint('repo_name'), {'useexisting':True},)
|
|
234
|
__table_args__ = (UniqueConstraint('repo_name'), {'extend_existing':True},)
|
|
235
|
__mapper_args__ = {'extension':RepositoryMapper()}
|
|
235
|
__mapper_args__ = {'extension':RepositoryMapper()}
|
|
236
|
|
|
236
|
|
|
237
|
repo_id = Column("repo_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
237
|
repo_id = Column("repo_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
@@
-302,7
+302,7
b' class Repository(Base):'
|
|
302
|
class Group(Base):
|
|
302
|
class Group(Base):
|
|
303
|
__tablename__ = 'groups'
|
|
303
|
__tablename__ = 'groups'
|
|
304
|
__table_args__ = (UniqueConstraint('group_name', 'group_parent_id'),
|
|
304
|
__table_args__ = (UniqueConstraint('group_name', 'group_parent_id'),
|
|
305
|
CheckConstraint('group_id != group_parent_id'), {'useexisting':True},)
|
|
305
|
CheckConstraint('group_id != group_parent_id'), {'extend_existing':True},)
|
|
306
|
__mapper_args__ = {'order_by':'group_name'}
|
|
306
|
__mapper_args__ = {'order_by':'group_name'}
|
|
307
|
|
|
307
|
|
|
308
|
group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
308
|
group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
@@
-361,7
+361,7
b' class Group(Base):'
|
|
361
|
|
|
361
|
|
|
362
|
class Permission(Base):
|
|
362
|
class Permission(Base):
|
|
363
|
__tablename__ = 'permissions'
|
|
363
|
__tablename__ = 'permissions'
|
|
364
|
__table_args__ = {'useexisting':True}
|
|
364
|
__table_args__ = {'extend_existing':True}
|
|
365
|
permission_id = Column("permission_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
365
|
permission_id = Column("permission_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
366
|
permission_name = Column("permission_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
366
|
permission_name = Column("permission_name", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
367
|
permission_longname = Column("permission_longname", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
367
|
permission_longname = Column("permission_longname", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-376,7
+376,7
b' class Permission(Base):'
|
|
376
|
|
|
376
|
|
|
377
|
class RepoToPerm(Base):
|
|
377
|
class RepoToPerm(Base):
|
|
378
|
__tablename__ = 'repo_to_perm'
|
|
378
|
__tablename__ = 'repo_to_perm'
|
|
379
|
__table_args__ = (UniqueConstraint('user_id', 'repository_id'), {'useexisting':True})
|
|
379
|
__table_args__ = (UniqueConstraint('user_id', 'repository_id'), {'extend_existing':True})
|
|
380
|
repo_to_perm_id = Column("repo_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
380
|
repo_to_perm_id = Column("repo_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
381
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
381
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
382
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
382
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
@@
-388,7
+388,7
b' class RepoToPerm(Base):'
|
|
388
|
|
|
388
|
|
|
389
|
class UserToPerm(Base):
|
|
389
|
class UserToPerm(Base):
|
|
390
|
__tablename__ = 'user_to_perm'
|
|
390
|
__tablename__ = 'user_to_perm'
|
|
391
|
__table_args__ = (UniqueConstraint('user_id', 'permission_id'), {'useexisting':True})
|
|
391
|
__table_args__ = (UniqueConstraint('user_id', 'permission_id'), {'extend_existing':True})
|
|
392
|
user_to_perm_id = Column("user_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
392
|
user_to_perm_id = Column("user_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
393
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
393
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
394
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
394
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
@@
-433,7
+433,7
b' class UserToPerm(Base):'
|
|
433
|
|
|
433
|
|
|
434
|
class UsersGroupRepoToPerm(Base):
|
|
434
|
class UsersGroupRepoToPerm(Base):
|
|
435
|
__tablename__ = 'users_group_repo_to_perm'
|
|
435
|
__tablename__ = 'users_group_repo_to_perm'
|
|
436
|
__table_args__ = (UniqueConstraint('users_group_id', 'permission_id'), {'useexisting':True})
|
|
436
|
__table_args__ = (UniqueConstraint('users_group_id', 'permission_id'), {'extend_existing':True})
|
|
437
|
users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
437
|
users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
438
|
users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
|
|
438
|
users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
|
|
439
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
439
|
permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
|
|
@@
-494,7
+494,7
b' class UsersGroupToPerm(Base):'
|
|
494
|
|
|
494
|
|
|
495
|
class GroupToPerm(Base):
|
|
495
|
class GroupToPerm(Base):
|
|
496
|
__tablename__ = 'group_to_perm'
|
|
496
|
__tablename__ = 'group_to_perm'
|
|
497
|
__table_args__ = (UniqueConstraint('group_id', 'permission_id'), {'useexisting':True})
|
|
497
|
__table_args__ = (UniqueConstraint('group_id', 'permission_id'), {'extend_existing':True})
|
|
498
|
|
|
498
|
|
|
499
|
group_to_perm_id = Column("group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
499
|
group_to_perm_id = Column("group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
500
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
500
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
@@
-507,7
+507,7
b' class GroupToPerm(Base):'
|
|
507
|
|
|
507
|
|
|
508
|
class Statistics(Base):
|
|
508
|
class Statistics(Base):
|
|
509
|
__tablename__ = 'statistics'
|
|
509
|
__tablename__ = 'statistics'
|
|
510
|
__table_args__ = (UniqueConstraint('repository_id'), {'useexisting':True})
|
|
510
|
__table_args__ = (UniqueConstraint('repository_id'), {'extend_existing':True})
|
|
511
|
stat_id = Column("stat_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
511
|
stat_id = Column("stat_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
512
|
repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=True, default=None)
|
|
512
|
repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=True, default=None)
|
|
513
|
stat_on_revision = Column("stat_on_revision", Integer(), nullable=False)
|
|
513
|
stat_on_revision = Column("stat_on_revision", Integer(), nullable=False)
|
|
@@
-521,7
+521,7
b' class UserFollowing(Base):'
|
|
521
|
__tablename__ = 'user_followings'
|
|
521
|
__tablename__ = 'user_followings'
|
|
522
|
__table_args__ = (UniqueConstraint('user_id', 'follows_repository_id'),
|
|
522
|
__table_args__ = (UniqueConstraint('user_id', 'follows_repository_id'),
|
|
523
|
UniqueConstraint('user_id', 'follows_user_id')
|
|
523
|
UniqueConstraint('user_id', 'follows_user_id')
|
|
524
|
, {'useexisting':True})
|
|
524
|
, {'extend_existing':True})
|
|
525
|
|
|
525
|
|
|
526
|
user_following_id = Column("user_following_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
526
|
user_following_id = Column("user_following_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
527
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
527
|
user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
|
|
@@
-542,7
+542,7
b' class UserFollowing(Base):'
|
|
542
|
|
|
542
|
|
|
543
|
class CacheInvalidation(Base):
|
|
543
|
class CacheInvalidation(Base):
|
|
544
|
__tablename__ = 'cache_invalidation'
|
|
544
|
__tablename__ = 'cache_invalidation'
|
|
545
|
__table_args__ = (UniqueConstraint('cache_key'), {'useexisting':True})
|
|
545
|
__table_args__ = (UniqueConstraint('cache_key'), {'extend_existing':True})
|
|
546
|
cache_id = Column("cache_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
546
|
cache_id = Column("cache_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
|
|
547
|
cache_key = Column("cache_key", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
547
|
cache_key = Column("cache_key", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
548
|
cache_args = Column("cache_args", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
548
|
cache_args = Column("cache_args", String(length=255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
|
|
@@
-560,7
+560,7
b' class CacheInvalidation(Base):'
|
|
560
|
|
|
560
|
|
|
561
|
class DbMigrateVersion(Base):
|
|
561
|
class DbMigrateVersion(Base):
|
|
562
|
__tablename__ = 'db_migrate_version'
|
|
562
|
__tablename__ = 'db_migrate_version'
|
|
563
|
__table_args__ = {'useexisting':True}
|
|
563
|
__table_args__ = {'extend_existing':True}
|
|
564
|
repository_id = Column('repository_id', String(250), primary_key=True)
|
|
564
|
repository_id = Column('repository_id', String(250), primary_key=True)
|
|
565
|
repository_path = Column('repository_path', Text)
|
|
565
|
repository_path = Column('repository_path', Text)
|
|
566
|
version = Column('version', Integer)
|
|
566
|
version = Column('version', Integer)
|