Skip to content

Commit

Permalink
indicate the overlap for the package.version relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Jan 20, 2025
1 parent 2063184 commit cfc02b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submit-api/src/submit_api/models/package_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PackageVersion(db.Model):
id = Column(db.Integer, primary_key=True, autoincrement=True)
original_package_id = Column(db.Integer, nullable=False)
version = Column(db.Integer, nullable=False)
package = db.relationship('Package', backref='versions', lazy='select', uselist=False)
package = db.relationship('Package', lazy='select', uselist=False, overlaps="version")

__table_args__ = (
db.Index('idx_package_versions_original_package_id', original_package_id),
Expand Down

0 comments on commit cfc02b1

Please sign in to comment.