diff --git a/shop/supabase/migrations/20260710002000_add_allow_update_discount_to_categories.sql b/shop/supabase/migrations/20260710002000_add_allow_update_discount_to_categories.sql new file mode 100644 index 0000000..e2e9555 --- /dev/null +++ b/shop/supabase/migrations/20260710002000_add_allow_update_discount_to_categories.sql @@ -0,0 +1,6 @@ +-- Migration: Add allow_update_discount to categories +-- Purpose: Add a boolean flag to categories to control if their products are eligible for the update discount. + +ALTER TABLE public.categories ADD COLUMN IF NOT EXISTS allow_update_discount BOOLEAN DEFAULT true NOT NULL; + +NOTIFY pgrst, 'reload schema';