merge migrations

This commit is contained in:
2023-08-29 21:33:59 +02:00
parent 201fb88aef
commit 040504da65
2 changed files with 28 additions and 29 deletions

View File

@@ -51,6 +51,7 @@ CREATE TABLE trips_items (
trip_id VARCHAR(36) NOT NULL, trip_id VARCHAR(36) NOT NULL,
pick BOOLEAN NOT NULL, pick BOOLEAN NOT NULL,
pack BOOLEAN NOT NULL, pack BOOLEAN NOT NULL,
new BOOLEAN NOT NULL,
PRIMARY KEY (item_id, trip_id), PRIMARY KEY (item_id, trip_id),
FOREIGN KEY(item_id) REFERENCES "inventory_items" (id), FOREIGN KEY(item_id) REFERENCES "inventory_items" (id),
FOREIGN KEY(trip_id) REFERENCES "trips" (id) FOREIGN KEY(trip_id) REFERENCES "trips" (id)

View File

@@ -1,2 +0,0 @@
-- Add migration script here
ALTER TABLE "trips_items" ADD COLUMN new BOOLEAN NOT NULL;