Expose some "new" columns for ScaleItem model
may need to revisit this again, when an "old" DB is encountered
This commit is contained in:
parent
74a28514dc
commit
963f544b02
|
@ -761,14 +761,17 @@ class ScaleItem(Base):
|
||||||
|
|
||||||
modified = sa.Column(sa.DateTime(), nullable=True)
|
modified = sa.Column(sa.DateTime(), nullable=True)
|
||||||
|
|
||||||
# TODO: this was not in some older DBs
|
# TODO: the following 3 columns are not in some older DBs; maybe need to
|
||||||
# linked_plu = sa.Column('linkedPLU', sa.String(length=13), nullable=True)
|
# figure out a "simple" way to conditionally include them?
|
||||||
|
|
||||||
# TODO: this was not in some older DBs
|
linked_plu = sa.Column('linkedPLU', sa.String(length=13), nullable=True)
|
||||||
# mosa_statement = sa.Column('mosaStatement', sa.Boolean(), nullable=True, default=False)
|
|
||||||
|
|
||||||
# TODO: this was not in some older DBs
|
mosa_statement = sa.Column('mosaStatement', sa.Boolean(), nullable=True, default=False)
|
||||||
# origin_text = sa.Column('originText', sa.String(length=100), nullable=True)
|
|
||||||
|
origin_text = sa.Column('originText', sa.String(length=100), nullable=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.product)
|
||||||
|
|
||||||
|
|
||||||
class FloorSection(Base):
|
class FloorSection(Base):
|
||||||
|
|
Loading…
Reference in a new issue