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']);
-- 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
DO $$ BEGIN IF NOT EXISTS (
SELECT
@ -35,4 +27,4 @@ CREATE SCHEMA IF NOT EXISTS auth AUTHORIZATION supabase_auth_admin;
GRANT CREATE ON DATABASE postgres TO supabase_auth_admin;
-- Set search_path for supabase_auth_admin
ALTER USER supabase_auth_admin
SET search_path = 'auth';
SET search_path = 'auth';