RTIX / migrations /0032_add_platform_fee_utr.sql
github-actions
deploy: clean backend production release
7856e60
Raw
History Blame Contribute Delete
266 Bytes
-- 0032_add_platform_fee_utr.sql
ALTER TABLE orders ADD COLUMN IF NOT EXISTS platform_fee_utr VARCHAR;
CREATE UNIQUE INDEX IF NOT EXISTS idx_orders_platform_fee_utr_unique ON orders (platform_fee_utr)
WHERE platform_fee_utr IS NOT NULL AND platform_fee_utr <> '';