chore: revert changes in migrations (#364)

This commit is contained in:
Nathan.fooo 2024-03-04 14:58:50 +08:00 committed by GitHub
parent 1b26be063d
commit 01b1b75a4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
GRANT SELECT, INSERT, UPDATE, DELETE ON public.af_user TO supabase_auth_admin;
-- Trigger Function to delete a user from the public.af_user table
-- Trigger Function to delete a user from the pulic.af_user table
-- when a user is deleted from auth.users table (with matching uuid) field
CREATE OR REPLACE FUNCTION public.delete_user()
RETURNS TRIGGER AS $$
@ -14,7 +14,7 @@ CREATE TRIGGER delete_user_trigger
AFTER DELETE ON auth.users
FOR EACH ROW EXECUTE FUNCTION public.delete_user();
-- Trigger Function to update the 'deleted_at' field in the public.af_user table
-- Trigger Function to update the 'deleted_at' field in the pulic.af_user table
-- (Soft Delete)
CREATE OR REPLACE FUNCTION public.update_af_user_deleted_at()
RETURNS TRIGGER AS $$