##// END OF EJS Templates
fixes issues #202, bad db constraint made impossible to attach same group more than one time....
marcink -
r1376:3fbc09ad beta
parent child Browse files
Show More
@@ -571,7 +571,7 b' class UserToPerm(Base):'
571
571
572 class UsersGroupRepoToPerm(Base):
572 class UsersGroupRepoToPerm(Base):
573 __tablename__ = 'users_group_repo_to_perm'
573 __tablename__ = 'users_group_repo_to_perm'
574 __table_args__ = (UniqueConstraint('users_group_id', 'permission_id'), {'extend_existing':True})
574 __table_args__ = (UniqueConstraint('repository_id', 'users_group_id', 'permission_id'), {'extend_existing':True})
575 users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
575 users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
576 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
576 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
577 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
577 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
General Comments 0
You need to be logged in to leave comments. Login now