Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Chapter04/src/main/resources/db/migration/V1.0.0__Init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ create TABLE IF NOT EXISTS ecomm.orders (
FOREIGN KEY(payment_id)
REFERENCES ecomm.payment(id),
FOREIGN KEY(shipment_id)
REFERENCES ecomm.shipment(id),
PRIMARY KEY(id)
REFERENCES ecomm.shipment(id)
);

create TABLE IF NOT EXISTS ecomm.item (
Expand Down Expand Up @@ -223,4 +222,4 @@ INSERT INTO ecomm.item VALUES
('a7384042-e4aa-4c93-85ae-31a346dad705', '3395a42e-2d88-40de-b95f-e00e1502085b', 1, 20.99);
INSERT INTO ecomm.order_item VALUES
('66682caa-a6d8-46ed-a173-ff822f754e1c', '0a59ba9f-629e-4445-8129-b9bce1985d6a', 'a7384042-e4aa-4c93-85ae-31a346dad704'),
('efeefa71-2760-412a-9ec8-0a040d90f02c', '0a59ba9f-629e-4445-8129-b9bce1985d6a', 'a7384042-e4aa-4c93-85ae-31a346dad705');
('efeefa71-2760-412a-9ec8-0a040d90f02c', '0a59ba9f-629e-4445-8129-b9bce1985d6a', 'a7384042-e4aa-4c93-85ae-31a346dad705');