xxxxxxxxxx
-- in SQL editor on Supabase Dashboard:
grant all privileges on schema public to postgres, anon, authenticated, service_role;
xxxxxxxxxx
$ sudo -u postgres psql
postgres=# GRANT ALL ON DATABASE mattermost TO mmuser;
postgres=# ALTER DATABASE mattermost OWNER TO mmuser;
postgres=# GRANT USAGE, CREATE ON SCHEMA PUBLIC TO mmuser;