From 07c24b63dcb13e86cd7c056a3743ea00c2cc3abd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Mar 2020 23:36:37 -0500 Subject: [PATCH] Fix how we interpret `Product.id_enforced` values will be an age, not a flag --- corepos/db/office_op/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index 99dee9f..574e42b 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -316,7 +316,7 @@ class Product(Base): quantity_enforced = sa.Column('qttyEnforced', sa.Boolean(), nullable=True) - id_enforced = sa.Column('idEnforced', sa.Boolean(), nullable=True) + id_enforced = sa.Column('idEnforced', sa.SmallInteger(), nullable=True) cost = sa.Column(sa.Float(), nullable=True, default=0)