mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(models.package_relation): add RelTypeID to PKs
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
8ffff6261b
commit
0988415931
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ class PackageRelation(Base):
|
|||
__table__ = schema.PackageRelations
|
||||
__tablename__ = __table__.name
|
||||
__mapper_args__ = {
|
||||
"primary_key": [__table__.c.PackageID, __table__.c.RelName]
|
||||
"primary_key": [
|
||||
__table__.c.PackageID,
|
||||
__table__.c.RelTypeID,
|
||||
__table__.c.RelName,
|
||||
]
|
||||
}
|
||||
|
||||
Package = relationship(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue