Files
root-org/supabase/migrations/027_remove_default_seeds.sql
2026-02-07 21:47:47 +02:00

12 lines
498 B
SQL

-- Remove auto-seeding of departments and roles on event creation.
-- These will now be offered as suggestions in the UI instead.
-- Drop the existing trigger and function
DROP TRIGGER IF EXISTS on_event_created_seed_defaults ON events;
DROP FUNCTION IF EXISTS public.seed_event_defaults();
-- Delete all existing seeded departments and roles
-- (cascades will clean up member-department assignments, dashboards, panels, checklists, notes)
DELETE FROM event_departments;
DELETE FROM event_roles;