apskel-pos-backend/migrations/000035_update_payment_status_constraints.down.sql
2025-08-08 00:22:28 +07:00

3 lines
287 B
SQL

-- Revert payment status constraints to previous state
ALTER TABLE orders DROP CONSTRAINT IF EXISTS orders_payment_status_check;
ALTER TABLE orders ADD CONSTRAINT orders_payment_status_check CHECK (payment_status IN ('pending', 'completed', 'failed', 'refunded', 'partially_refunded'));