Skip to content

Commit fde15ac

Browse files
Merge pull request #8 from ogobrecht/master
add missing foreign key index, correct constraint name
2 parents 4147f89 + ba9d521 commit fde15ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

customer_orders/co_constraints.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ alter table inventory add constraint inventory_store_product_u unique (store_id,
6262
alter table inventory add constraint inventory_store_id_fk
6363
foreign key (store_id) references stores (store_id);
6464

65-
alter table inventory add constraint shipments_product_id_fk
65+
alter table inventory add constraint inventory_product_id_fk
6666
foreign key (product_id) references products (product_id);

customer_orders/co_tables.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ create index orders_customer_id_i on orders ( customer_id );
7474
create index orders_store_id_i on orders ( store_id );
7575
create index shipments_store_id_i on shipments ( store_id );
7676
create index shipments_customer_id_i on shipments ( customer_id );
77+
create index order_items_shipment_id_i on order_items ( shipment_id );
7778
create index inventory_product_id_i on inventory ( product_id );

0 commit comments

Comments
 (0)