-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Hello there! Thanks for making this package. When trying to run your script, I get the following output. Note that some things fail, like
psql:sql/01_database_schema.sql:159: ERROR: must be member of role "supabase_admin"
Wondering if you could take a look? This happened when trying to run from both the SQL Editor on Supabase, and from psql
~/Developer/flutter_supabase_chat_core/example/utils (main*) » ./prepare.sh -h XXXXXXXXXXX.pooler.supabase.com -p 5432 -d postgres -U postgres.XXXXXXXXXXXXx
Password for user postgres.XXXXXXXXXXXXXX:
SET
SET
SET
SET
SET
set_config
------------
(1 row)
SET
SET
SET
SET
CREATE SCHEMA
ALTER SCHEMA
SET
SET
CREATE TABLE
ALTER TABLE
ALTER TABLE
CREATE TABLE
ALTER TABLE
ALTER TABLE
CREATE TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
REVOKE
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
psql:sql/01_database_schema.sql:148: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:149: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:150: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:151: ERROR: must be member of role "supabase_admin"
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
psql:sql/01_database_schema.sql:158: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:159: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:160: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:161: ERROR: must be member of role "supabase_admin"
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
psql:sql/01_database_schema.sql:168: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:169: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:170: ERROR: must be member of role "supabase_admin"
psql:sql/01_database_schema.sql:171: ERROR: must be member of role "supabase_admin"
ALTER PUBLICATION
ALTER PUBLICATION
ALTER PUBLICATION
Password for user postgres.XXXXXXXXXXXXXXXXXXX:
psql:sql/02_database_trigger.sql:1: NOTICE: trigger "on_auth_user_created" for relation "auth.users" does not exist, skipping
DROP TRIGGER
psql:sql/02_database_trigger.sql:2: NOTICE: function chats.handle_new_user() does not exist, skipping
DROP FUNCTION
CREATE FUNCTION
CREATE TRIGGER
CREATE FUNCTION
CREATE TRIGGER
CREATE FUNCTION
CREATE TRIGGER
Password for user postgres.XXXXXXXXXXXXXXXXXXX:
psql:sql/03_database_policy.sql:1: NOTICE: policy "chats.users_grant_create" for relation "chats.users" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:2: NOTICE: policy "chats.users_grant_read" for relation "chats.users" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:3: NOTICE: policy "chats.users_grant_update" for relation "chats.users" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:4: NOTICE: policy "chats.users_grant_delete" for relation "chats.users" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:6: NOTICE: policy "chats.rooms_grant_create" for relation "chats.rooms" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:7: NOTICE: policy "chats.rooms_grant_read" for relation "chats.rooms" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:8: NOTICE: policy "chats.rooms_grant_update" for relation "chats.rooms" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:9: NOTICE: policy "chats.rooms_grant_delete" for relation "chats.rooms" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:11: NOTICE: policy "chats.messages_grant_create" for relation "chats.messages" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:12: NOTICE: policy "chats.messages_grant_read" for relation "chats.messages" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:13: NOTICE: policy "chats.messages_grant_update" for relation "chats.messages" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:14: NOTICE: policy "chats.messages_grant_delete" for relation "chats.messages" does not exist, skipping
DROP POLICY
psql:sql/03_database_policy.sql:16: NOTICE: function chats.is_auth() does not exist, skipping
DROP FUNCTION
CREATE FUNCTION
psql:sql/03_database_policy.sql:28: NOTICE: function chats.is_owner() does not exist, skipping
DROP FUNCTION
CREATE FUNCTION
psql:sql/03_database_policy.sql:40: NOTICE: function chats.is_member() does not exist, skipping
DROP FUNCTION
CREATE FUNCTION
psql:sql/03_database_policy.sql:52: NOTICE: function chats.is_chat_member() does not exist, skipping
DROP FUNCTION
CREATE FUNCTION
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
CREATE POLICY
Password for user postgres.XXXXXXXXXXXXXXXXXXX:
INSERT 0 2
psql:sql/04_storage.sql:8: NOTICE: policy "storage.object_grant_create_auth_chats_assets" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:17: NOTICE: policy "storage.object_grant_read_auth_chats_assets" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:26: NOTICE: policy "storage.object_grant_update_auth_chats_assets" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:39: NOTICE: policy "storage.object_grant_delete_auth_chats_assets" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:48: NOTICE: policy "storage.object_grant_create_auth_chats_user_avatar" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:57: NOTICE: policy "storage.object_grant_read_auth_chats_user_avatar" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:66: NOTICE: policy "storage.object_grant_update_auth_chats_user_avatar" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
psql:sql/04_storage.sql:79: NOTICE: policy "storage.object_grant_delete_auth_chats_user_avatar" for relation "storage.objects" does not exist, skipping
DROP POLICY
CREATE POLICY
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested