diff --git a/apps/web/supabase/migrations/20221215192558_schema.sql b/apps/web/supabase/migrations/20221215192558_schema.sql index ad0e4ed17..b113068a5 100644 --- a/apps/web/supabase/migrations/20221215192558_schema.sql +++ b/apps/web/supabase/migrations/20221215192558_schema.sql @@ -532,6 +532,7 @@ $$; -- trigger the function whenever a new account is created create trigger "add_current_user_to_new_account" after insert on public.accounts for each row +when (new.is_personal_account = false) execute function kit.add_current_user_to_new_account (); -- create a trigger to update the account email when the primary owner email is updated