feat(admin): move allow_update_discount option to product level
All checks were successful
Staging Build / build (push) Successful in 2m50s

This commit is contained in:
DanielS
2026-07-10 09:15:34 +02:00
parent bc6487bba4
commit 27fe6c6eef
7 changed files with 39 additions and 31 deletions

View File

@@ -0,0 +1,7 @@
-- Migration: Move allow_update_discount from categories to products
-- Purpose: Control update discount eligibility on product level rather than category level.
ALTER TABLE public.categories DROP COLUMN IF EXISTS allow_update_discount;
ALTER TABLE public.products ADD COLUMN IF NOT EXISTS allow_update_discount BOOLEAN DEFAULT true NOT NULL;
NOTIFY pgrst, 'reload schema';