Expose some "new" columns for ScaleItem model

may need to revisit this again, when an "old" DB is encountered
This commit is contained in:
Lance Edgar 2020-09-02 11:25:10 -05:00
parent 74a28514dc
commit 963f544b02

View file

@ -761,14 +761,17 @@ class ScaleItem(Base):
modified = sa.Column(sa.DateTime(), nullable=True)
# TODO: this was not in some older DBs
# linked_plu = sa.Column('linkedPLU', sa.String(length=13), nullable=True)
# TODO: the following 3 columns are not in some older DBs; maybe need to
# figure out a "simple" way to conditionally include them?
# TODO: this was not in some older DBs
# mosa_statement = sa.Column('mosaStatement', sa.Boolean(), nullable=True, default=False)
linked_plu = sa.Column('linkedPLU', sa.String(length=13), nullable=True)
# TODO: this was not in some older DBs
# origin_text = sa.Column('originText', sa.String(length=100), nullable=True)
mosa_statement = sa.Column('mosaStatement', sa.Boolean(), nullable=True, default=False)
origin_text = sa.Column('originText', sa.String(length=100), nullable=True)
def __str__(self):
return str(self.product)
class FloorSection(Base):