feat: remove uneeded user

This commit is contained in:
Fu Zi Xiang 2023-11-24 16:00:53 +08:00
parent be19d55371
commit 3f96c6a1f3
No known key found for this signature in database
1 changed files with 1 additions and 9 deletions

View File

@ -13,14 +13,6 @@ END;
$$; $$;
SELECT create_roles(ARRAY ['anon', 'authenticated']); SELECT create_roles(ARRAY ['anon', 'authenticated']);
-- Create supabase_admin user if it does not exist
DO $$ BEGIN IF NOT EXISTS (
SELECT
FROM pg_catalog.pg_roles
WHERE rolname = 'supabase_admin'
) THEN CREATE USER supabase_admin LOGIN CREATEROLE CREATEDB REPLICATION BYPASSRLS;
END IF;
END $$;
-- Create supabase_auth_admin user if it does not exist -- Create supabase_auth_admin user if it does not exist
DO $$ BEGIN IF NOT EXISTS ( DO $$ BEGIN IF NOT EXISTS (
SELECT SELECT