From 6112732e9cf58af10bee844601d57b6d067ae432 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 29 Dec 2025 08:12:17 -0300 Subject: [PATCH] Add DROP TABLE before user_organizations CREATE to fix partial migration --- migrations/6.1.0_enterprise_suite/up.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations/6.1.0_enterprise_suite/up.sql b/migrations/6.1.0_enterprise_suite/up.sql index 89971ac40..6ee2f0506 100644 --- a/migrations/6.1.0_enterprise_suite/up.sql +++ b/migrations/6.1.0_enterprise_suite/up.sql @@ -2049,6 +2049,7 @@ CREATE INDEX IF NOT EXISTS idx_email_events_received ON public.email_received_ev COMMENT ON TABLE public.system_automations IS 'System automations with TriggerKind: 0=Scheduled, 1=TableUpdate, 2=TableInsert, 3=TableDelete, 4=Webhook, 5=EmailReceived, 6=FolderChange'; -- User organization memberships (users can belong to multiple orgs) +DROP TABLE IF EXISTS public.user_organizations CASCADE; CREATE TABLE IF NOT EXISTS public.user_organizations ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), user_id UUID NOT NULL REFERENCES public.users(id) ON DELETE CASCADE,