set encryption method
This commit is contained in:
parent
a1f9a45019
commit
6afcd34600
@ -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;
|
Loading…
Reference in New Issue
Block a user