Mega push vol 7 mvp lesgoooo
This commit is contained in:
11
supabase/migrations/027_remove_default_seeds.sql
Normal file
11
supabase/migrations/027_remove_default_seeds.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- 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;
|
||||
Reference in New Issue
Block a user