Skip to content

Commit

Permalink
Attempt to fix error on init
Browse files Browse the repository at this point in the history
    ERROR:  syntax error at or near "-"
  • Loading branch information
mfisher87 committed Dec 15, 2023
1 parent d7be927 commit d451447
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions scripts/init/00-usaon-vta-schema.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CREATE SCHEMA usaon-benefit-tool AUTHORIZATION usaon-benefit-tool;
ALTER ROLE usaon-benefit-tool SET search_path TO usaon-benefit-tool;
CREATE SCHEMA "usaon-benefit-tool" AUTHORIZATION "usaon-benefit-tool";
ALTER ROLE "usaon-benefit-tool" SET "search_path" TO "usaon-benefit-tool";
12 changes: 6 additions & 6 deletions scripts/init/01-support-user.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE USER support;
GRANT USAGE ON SCHEMA usaon-benefit-tool TO support;
GRANT SELECT, UPDATE ON ALL TABLES IN SCHEMA usaon-benefit-tool TO support;
ALTER ROLE support IN DATABASE usaon-benefit-tool SET search_path TO usaon-benefit-tool;
CREATE USER "support";
GRANT USAGE ON SCHEMA "usaon-benefit-tool" TO "support";
GRANT SELECT, UPDATE ON ALL TABLES IN SCHEMA "usaon-benefit-tool" TO "support";
ALTER ROLE "support" IN DATABASE "usaon-benefit-tool" SET "search_path" TO "usaon-benefit-tool";
ALTER DEFAULT PRIVILEGES
IN SCHEMA usaon-benefit-tool
GRANT SELECT, UPDATE ON TABLES TO support;
IN SCHEMA "usaon-benefit-tool"
GRANT SELECT, UPDATE ON TABLES TO "support";
2 changes: 1 addition & 1 deletion scripts/init/02-pg_stat_statements.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE EXTENSION pg_stat_statements;
CREATE EXTENSION "pg_stat_statements";

0 comments on commit d451447

Please sign in to comment.