Merge main into montador-v2
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> # Conflicts: # web/kanban.js
This commit is contained in:
17
app/migrations/202611111200_premium-product.sql
Normal file
17
app/migrations/202611111200_premium-product.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- Front 3: the Premium product (Marcus, 2026-11-10), built and switched OFF
|
||||
-- until Dropstar prints the three test sheets and says "testado". The products
|
||||
-- CHECK is the inline constraint of dtf_local.products.id, which Postgres
|
||||
-- named products_id_check; widening a list is a new migration that drops and
|
||||
-- adds that one constraint (never schema.sql).
|
||||
ALTER TABLE dtf_local.products DROP CONSTRAINT IF EXISTS products_id_check;
|
||||
ALTER TABLE dtf_local.products ADD CONSTRAINT products_id_check
|
||||
CHECK (id IN ('file','avulsa','uvfile','uv','premium','tratamento'));
|
||||
|
||||
INSERT INTO dtf_local.products(id, enabled) VALUES ('premium', false)
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
-- A coupon may also target the new product (the Site tab lists every mode).
|
||||
ALTER TABLE dtf_local.coupons DROP CONSTRAINT IF EXISTS coupons_product_check;
|
||||
ALTER TABLE dtf_local.coupons ADD CONSTRAINT coupons_product_check
|
||||
CHECK (product IN ('file','avulsa','uvfile','uv','premium'));
|
||||
|
||||
Reference in New Issue
Block a user