blob: 06e07245beb4ecf17244969f9131c50a8d0c7773 [file] [log] [blame]
Abdelmuhaimen Seaudi988aeed2021-09-23 21:11:44 +00001--- User Setup
2CREATE USER "${PG_USER}" LOGIN;
3ALTER USER "${PG_USER}" PASSWORD '${PG_PASSWORD}';
4
5CREATE DATABASE ${PG_DATABASE};
6GRANT ALL PRIVILEGES ON DATABASE ${PG_DATABASE} TO "${PG_USER}";
7
8--- PG_DATABASE Setup
9
10\c ${PG_DATABASE}
11
12CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
13CREATE EXTENSION IF NOT EXISTS pgaudit;
14
15--- Create schema for PG_USER
16
17\c ${PG_DATABASE}
18
19CREATE SCHEMA IF NOT EXISTS "${PG_USER}" AUTHORIZATION "${PG_USER}";