Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
chore(config): match local supabase seedfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdcruz committed Nov 20, 2024
1 parent 30be119 commit c2bcf22
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions supabase/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -300,22 +300,6 @@ from
activity_feedback.activity_id,
activity_feedback.type;

-- Create the function to delete the user from auth.users
CREATE
OR REPLACE FUNCTION remove_user_from_auth () RETURNS TRIGGER AS $$
BEGIN
-- Delete the user from auth.users based on the id
DELETE FROM auth.users WHERE id = OLD.id;
RETURN OLD;
END;
$$ LANGUAGE plpgsql;

-- Create the trigger that calls the function on delete
CREATE TRIGGER delete_user_from_auth
AFTER DELETE ON public.users FOR EACH ROW
EXECUTE FUNCTION remove_user_from_auth ();


CREATE FUNCTION public.delete_linked_activity_data () RETURNS TRIGGER AS $$
BEGIN
-- Delete from activity_subscriptions
Expand Down

0 comments on commit c2bcf22

Please sign in to comment.