apskel-pos-backend/migrations/000035_update_payment_status_constraints.down.sql

3 lines
287 B
MySQL
Raw Permalink Normal View History

2025-08-08 00:22:28 +07:00
-- 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'));