Add FK constraint for ProductLikeCode.upc

not sure why that wasn't already present?
This commit is contained in:
Lance Edgar 2021-05-04 20:10:14 -05:00
parent b40fbf7cab
commit d94189c404

View file

@ -633,6 +633,7 @@ class ProductLikeCode(Base):
"""
__tablename__ = 'upcLike'
__table_args__ = (
sa.ForeignKeyConstraint(['upc'], ['products.upc']),
sa.ForeignKeyConstraint(['likeCode'], ['likeCodes.likeCode']),
)