diff --git a/db/ferry-user.sql b/db/ferry-user.sql new file mode 100644 index 0000000..71b2a64 --- /dev/null +++ b/db/ferry-user.sql @@ -0,0 +1,8 @@ +-- This only has to be done once to initialize the new user. +-- Run this in the ferry DB. + +GRANT ALL ON SCHEMA public TO hasura; +GRANT ALL ON ALL TABLES IN SCHEMA public TO ferry; +GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO ferry; +ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO ferry; +ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO ferry; \ No newline at end of file