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

3 lines
310 B
MySQL
Raw Permalink Normal View History

2025-08-08 00:22:28 +07:00
-- Update payment status constraints to include all defined statuses
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', 'partial', 'completed', 'failed', 'refunded', 'partial-refunded'));