set encryption method

This commit is contained in:
Paul Trowbridge 2018-11-08 23:49:20 -05:00
parent a1f9a45019
commit 6afcd34600

View File

@ -1,5 +1,7 @@
DROP USER IF EXISTS api;
SET password_encryption = 'md5' /* ='scram' */;
CREATE ROLE api WITH
LOGIN
NOSUPERUSER
@ -28,10 +30,10 @@ REVOKE USAGE ON SCHEMA tps FROM api;
REVOKE USAGE ON SCHEMA tps FROM api;
REVOKE SELECT /*, UPDATE, INSERT, DELETE*/ ON ALL TABLES IN SCHEMA tps FROM api;
REVOKE SELECT , UPDATE, INSERT, DELETE ON ALL TABLES IN SCHEMA tps FROM api;
REVOKE USAGE ON ALL SEQUENCES IN SCHEMA tps FROM api;
ALTER DEFAULT PRIVILEGES IN SCHEMA tps REVOKE SELECT/*, UPDATE, INSERT, DELETE*/ ON TABLES FROM api;
ALTER DEFAULT PRIVILEGES IN SCHEMA tps REVOKE SELECT, UPDATE, INSERT, DELETE ON TABLES FROM api;
ALTER DEFAULT PRIVILEGES IN SCHEMA tps REVOKE USAGE ON SEQUENCES FROM api;