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

3 lines
262 B
MySQL
Raw Permalink Normal View History

2025-07-18 20:10:29 +07:00
-- Add 'paid' status to 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', 'paid'));