Skip to content

Commit

Permalink
issue #1093 - postgres15+ requires explicit permission for public sch…
Browse files Browse the repository at this point in the history
…ema - this needs to be on the database not global
  • Loading branch information
davmlaw committed Jul 12, 2024
1 parent 625282f commit 7ae5327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dbscripts/pgsql_database_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
CREATE EXTENSION IF NOT EXISTS citext;
CREATE DATABASE snpdb;
CREATE USER snpdb WITH PASSWORD 'snpdb';
GRANT ALL ON SCHEMA public TO snpdb; # Needed for Postgres 15+
GRANT ALL PRIVILEGES ON DATABASE snpdb to snpdb;
ALTER USER snpdb CREATEDB;

-- Install extension install on snpdb database
\connect snpdb;
CREATE EXTENSION IF NOT EXISTS citext;
GRANT ALL ON SCHEMA public TO snpdb; # Needed for Postgres 15+

0 comments on commit 7ae5327

Please sign in to comment.