fix: remove default seeded categories from migrations
All checks were successful
Staging Build / build (push) Successful in 2m26s

This commit is contained in:
DanielS
2026-06-23 03:22:30 +02:00
parent 756ec5c002
commit 898a5253e5

View File

@@ -16,13 +16,4 @@ ALTER TABLE public.categories ENABLE ROW LEVEL SECURITY;
-- Policies
CREATE POLICY "Allow public read access on categories" ON public.categories FOR SELECT USING (true);
-- Seed Categories
INSERT INTO public.categories (id, name, description, icon)
VALUES
('c1a1a1a1-a1a1-a1a1-a1a1-a1a1a1a1a1a1', 'Cloud Software', 'Modulare Cloud-Lösungen für den modernen Handel.', 'Cloud'),
('c2a2a2a2-a2a2-a2a2-a2a2-a2a2a2a2a2a2', 'Gastronomie', 'Kassensysteme und Management für Restaurants und Cafés.', 'Utensils'),
('c3a3a3a3-a3a3-a3a3-a3a3-a3a3a3a3a3a3', 'Hardware', 'Kassenterminals, Drucker und Zubehör.', 'HardDrive');
-- Update existing products with categories
UPDATE public.products SET category_id = 'c1a1a1a1-a1a1-a1a1-a1a1-a1a1a1a1a1a1' WHERE name LIKE '%Cloud%';
UPDATE public.products SET category_id = 'c2a2a2a2-a2a2-a2a2-a2a2-a2a2a2a2a2a2' WHERE name LIKE '%Gastro%';