mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(models.package_dependency): add DepTypeID to PKs
This was stopping us from using numerous records for each dep type. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
2cb9de0800
commit
8ffff6261b
2 changed files with 6 additions and 12 deletions
|
@ -16,7 +16,11 @@ class PackageDependency(Base):
|
|||
__table__ = schema.PackageDepends
|
||||
__tablename__ = __table__.name
|
||||
__mapper_args__ = {
|
||||
"primary_key": [__table__.c.PackageID, __table__.c.DepName]
|
||||
"primary_key": [
|
||||
__table__.c.PackageID,
|
||||
__table__.c.DepTypeID,
|
||||
__table__.c.DepName,
|
||||
]
|
||||
}
|
||||
|
||||
Package = relationship(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue