From e1ebe15bba2e5ef5fbabda0c7dfe4b037ead5b88 Mon Sep 17 00:00:00 2001 From: robinj0726 <88188467+robinj0726@users.noreply.github.com> Date: Mon, 13 Jul 2026 17:23:36 +0800 Subject: [PATCH] chore(product): drop dev schema compatibility columns --- internal/repository/product_repository.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/repository/product_repository.go b/internal/repository/product_repository.go index fa60389..0b06cf4 100644 --- a/internal/repository/product_repository.go +++ b/internal/repository/product_repository.go @@ -169,10 +169,6 @@ ALTER TABLE product.product_items ALTER COLUMN id DROP DEFAULT; ALTER TABLE product.product_items ADD COLUMN IF NOT EXISTS image_ids VARCHAR[] NOT NULL DEFAULT '{}'::VARCHAR[]; -ALTER TABLE product.product_item_inventory - ADD COLUMN IF NOT EXISTS spu_no VARCHAR(100); -ALTER TABLE product.product_item_inventory - ADD COLUMN IF NOT EXISTS sku_no VARCHAR(100); CREATE INDEX IF NOT EXISTS idx_product_items_product_id ON product.product_items(product_id) WHERE deleted_at IS NULL; CREATE INDEX IF NOT EXISTS idx_product_items_price ON product.product_items(price) WHERE deleted_at IS NULL; CREATE UNIQUE INDEX IF NOT EXISTS uq_product_items_sku_no ON product.product_items(sku_no) WHERE sku_no IS NOT NULL AND deleted_at IS NULL;