Fikset datatype for kolonnen PurchaseEntry.product_bar_code.

Glemte visst å endre denne da jeg endret Product.bar_code tidligere.
This commit is contained in:
Øystein Ingmar Skartsæterhagen 2010-05-11 18:02:45 +00:00
parent e073f45919
commit 109db03edb
1 changed files with 1 additions and 1 deletions

2
db.py
View File

@ -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")