-- Adds the nullable SKU supply price without modifying historical values. -- Amounts are stored in cents; NULL means the supply price has not been maintained. ALTER TABLE product.product_items ADD COLUMN IF NOT EXISTS supply_price BIGINT; ALTER TABLE product.product_items DROP CONSTRAINT IF EXISTS chk_product_items_supply_price; ALTER TABLE product.product_items ADD CONSTRAINT chk_product_items_supply_price CHECK (supply_price IS NULL OR supply_price >= 0); COMMENT ON COLUMN product.product_items.supply_price IS 'SKU 供货价,单位:分;NULL 表示未维护';