From 71687c8bf70da26253e95cca63e518ee01e5bfc8 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 5 May 2024 07:25:10 +0200 Subject: [PATCH] Uncomment orders --- app/Migrations/create-schema.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Migrations/create-schema.sql b/app/Migrations/create-schema.sql index 3517751..4ff9482 100644 --- a/app/Migrations/create-schema.sql +++ b/app/Migrations/create-schema.sql @@ -52,13 +52,14 @@ CREATE TABLE IF NOT EXISTS raw_materials_deliveries ( -------------------------------------------- -- Pallets are used to store cookies for delivery +-- Order related columns are unused for now. CREATE TABLE IF NOT EXISTS pallets ( pallet_id INT PRIMARY KEY, cookie_id INT NOT NULL, - order_id INT NOT NULL, + -- order_id INT NOT NULL, status VARCHAR(50) NOT NULL CHECK (status IN ('freezer', 'delivered', 'blocked')), production_date DATE NOT NULL, delivery_date DATE DEFAULT NULL, FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id) - FOREIGN KEY (order_id) REFERENCES orders(order_id) + -- FOREIGN KEY (order_id) REFERENCES orders(order_id) );