fix(models.package_relation): add RelTypeID to PKs

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-04 01:06:38 -08:00
parent 8ffff6261b
commit 0988415931
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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(