Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 7e58f4b

Browse files
committed
new table in orm
1 parent 50905cf commit 7e58f4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/allocation/adapters/orm.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
Column("batch_id", ForeignKey("batches.id")),
5050
)
5151

52+
allocations_view = Table(
53+
"allocations_view",
54+
metadata,
55+
Column("orderid", String(255)),
56+
Column("sku", String(255)),
57+
Column("batchref", String(255)),
58+
)
59+
5260

5361
def start_mappers():
5462
lines_mapper = mapper(model.OrderLine, order_lines)

0 commit comments

Comments
 (0)