Fikset datatype for kolonnen PurchaseEntry.product_bar_code.
Glemte visst å endre denne da jeg endret Product.bar_code tidligere.
This commit is contained in:
parent
e073f45919
commit
109db03edb
2
db.py
2
db.py
@ -55,7 +55,7 @@ class PurchaseEntry(Base):
|
||||
__tablename__ = 'purchase_entries'
|
||||
id = Column(Integer, primary_key=True)
|
||||
purchase_id = Column(Integer,ForeignKey("purchases.id"))
|
||||
product_bar_code = Column(Integer,ForeignKey("products.bar_code"))
|
||||
product_bar_code = Column(String(13),ForeignKey("products.bar_code"))
|
||||
amount = Column(Integer)
|
||||
|
||||
product = relationship(Product,backref="purchases")
|
||||
|
Loading…
Reference in New Issue
Block a user