Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth Triggers are not included in Diff #236

Open
ham-evans opened this issue Feb 28, 2024 · 1 comment
Open

Auth Triggers are not included in Diff #236

ham-evans opened this issue Feb 28, 2024 · 1 comment

Comments

@ham-evans
Copy link

I've added the following trigger to call function handle_new_user() on creation of a new user in the auth table.
CREATE OR REPLACE TRIGGER on_auth_user_created after insert on auth.users for each row execute procedure public.handle_new_user();

However when I run a diff this trigger is not included in the diff. Triggers on public tables are however.

@sweatybridge
Copy link

This is more of an issue with Supabase CLI. You need to diff the auth schema specifically with supabase db diff --schema auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants