Show More
@@ -90,7 +90,7 b' class RepoToPerm(Base):' | |||
|
90 | 90 | |
|
91 | 91 | class UserToPerm(Base): |
|
92 | 92 | __tablename__ = 'user_to_perm' |
|
93 | __table_args__ = {'useexisting':True} | |
|
93 | __table_args__ = (UniqueConstraint('user_id', 'permission_id'), {'useexisting':True}) | |
|
94 | 94 | user_to_perm_id = Column("user_to_perm_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) |
|
95 | 95 | user_id = Column("user_id", INTEGER(), ForeignKey(u'users.user_id'), nullable=False, unique=None, default=None) |
|
96 | 96 | permission_id = Column("permission_id", INTEGER(), ForeignKey(u'permissions.permission_id'), nullable=False, unique=None, default=None) |
General Comments 0
You need to be logged in to leave comments.
Login now