From 5f931048fb84c7aa529d8027d7f6dbc1bef90d3a Mon Sep 17 00:00:00 2001 From: pongsakon promma Date: Sat, 23 Mar 2024 15:44:56 +0700 Subject: [PATCH] fix : edit sql --- kbazaar/src/main/resources/sql/schema/cart.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kbazaar/src/main/resources/sql/schema/cart.sql b/kbazaar/src/main/resources/sql/schema/cart.sql index 20c5c86..4a12923 100644 --- a/kbazaar/src/main/resources/sql/schema/cart.sql +++ b/kbazaar/src/main/resources/sql/schema/cart.sql @@ -5,4 +5,4 @@ CREATE TABLE IF NOT EXISTS cart ( product_sku varchar(255) NOT NULL, CONSTRAINT cart_pk PRIMARY KEY (product_id, shopper_id) ); -CREATE INDEX cart_shopper_id_idx ON public.cart USING btree (shopper_id); +CREATE INDEX IF NOT EXISTS cart_shopper_id_idx ON cart USING btree (shopper_id);