mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
chore: revert changes in migrations (#364)
This commit is contained in:
parent
1b26be063d
commit
01b1b75a4a
1 changed files with 2 additions and 2 deletions
|
@ -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 $$
|
||||
|
|
Loading…
Add table
Reference in a new issue