From 49da6db404bcc3cb38988dd6b64b90abeed9a0ac Mon Sep 17 00:00:00 2001 From: David Pitfield Date: Sun, 12 Feb 2023 08:25:46 -0800 Subject: [PATCH] CreateTestEnvironment.sql: update for Postgres 15 --- Tests/Scripts/CreateTestEnvironment.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/Scripts/CreateTestEnvironment.sql b/Tests/Scripts/CreateTestEnvironment.sql index 52aecb4..1147a60 100644 --- a/Tests/Scripts/CreateTestEnvironment.sql +++ b/Tests/Scripts/CreateTestEnvironment.sql @@ -33,22 +33,28 @@ DROP DATABASE IF EXISTS postgresclientkittest; CREATE DATABASE postgresclientkittest; +\connect postgresclientkittest + DROP USER IF EXISTS terry_postgresclientkittest; CREATE USER terry_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO terry_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO terry_postgresclientkittest; DROP USER IF EXISTS charlie_postgresclientkittest; CREATE USER charlie_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO charlie_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO charlie_postgresclientkittest; SET password_encryption = 'md5'; -- prevent Postgres from upgrading authn to scram-sha-256 DROP USER IF EXISTS mary_postgresclientkittest; CREATE USER mary_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO mary_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO mary_postgresclientkittest; SET password_encryption = 'scram-sha-256'; DROP USER IF EXISTS sally_postgresclientkittest; CREATE USER sally_postgresclientkittest WITH PASSWORD 'welcome1'; GRANT ALL PRIVILEGES ON DATABASE postgresclientkittest TO sally_postgresclientkittest; +GRANT ALL PRIVILEGES ON SCHEMA public TO sally_postgresclientkittest; -- EOF