mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
There was a postgres permission issue in the docs. The hasura user needed to be owner of the system schemas (hdb_catalog), otherwise it won't be able to table schema changes during version upgrades.
This commit is contained in:
parent
8615c306ec
commit
6e464a1342
@ -38,9 +38,9 @@ Here's a sample SQL block that you can run on your database to create the right
|
||||
CREATE SCHEMA IF NOT EXISTS hdb_catalog;
|
||||
CREATE SCHEMA IF NOT EXISTS hdb_views;
|
||||
|
||||
-- grant all privileges on system schemas
|
||||
GRANT ALL PRIVILEGES ON SCHEMA hdb_catalog TO hasurauser;
|
||||
GRANT ALL PRIVILEGES ON SCHEMA hdb_views TO hasurauser;
|
||||
-- make the user an owner of system schemas
|
||||
ALTER SCHEMA hdb_catalog OWNER TO hasurauser;
|
||||
ALTER SCHEMA hdb_views OWNER TO hasurauser;
|
||||
|
||||
-- grant select permissions on information_schema and pg_catalog. This is
|
||||
-- required for hasura to query list of available tables
|
||||
|
Loading…
Reference in New Issue
Block a user