apskel-pos-backend/migrations/000021_add_paid_status_to_orders.down.sql

3 lines
259 B
MySQL
Raw Normal View History

2025-07-18 20:10:29 +07:00
-- Revert 'paid' status from orders table status constraint
ALTER TABLE orders DROP CONSTRAINT IF EXISTS orders_status_check;
ALTER TABLE orders ADD CONSTRAINT orders_status_check CHECK (status IN ('pending', 'preparing', 'ready', 'completed', 'cancelled'));