feat: rename invoice (RE-) to order confirmation (BE-) throughout the application
All checks were successful
Staging Build / build (push) Successful in 2m42s
All checks were successful
Staging Build / build (push) Successful in 2m42s
This commit is contained in:
@@ -5,7 +5,7 @@ ALTER TABLE public.orders
|
||||
|
||||
-- Update existing orders to have a unique order_number
|
||||
UPDATE public.orders
|
||||
SET order_number = 'RE-' || EXTRACT(YEAR FROM created_at)::text || '-' || floor(10000 + random() * 90000)::text
|
||||
SET order_number = 'BE-' || EXTRACT(YEAR FROM created_at)::text || '-' || floor(10000 + random() * 90000)::text
|
||||
WHERE order_number IS NULL;
|
||||
|
||||
-- Now add unique constraint and make it not null
|
||||
|
||||
Reference in New Issue
Block a user