feat: initial commit
Signed-off-by: Vojtech Mares <iam@vojtechmares.com>
This commit is contained in:
commit
a4f9b46fdb
11 changed files with 640 additions and 0 deletions
4
docs/converge.sql
Normal file
4
docs/converge.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
GRANT CONNECT ON DATABASE converge TO c4core;
|
||||
GRANT ALL ON SCHEMA public TO c4core;
|
||||
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO c4core;
|
||||
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO c4core;
|
||||
14
docs/create-postgres-user.md
Normal file
14
docs/create-postgres-user.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Create Postgres user
|
||||
|
||||
```sql
|
||||
CREATE DATABASE <dbname>;
|
||||
\c <dbname>;
|
||||
|
||||
CREATE USER <username> WITH ENCRYPTED PASSWORD '<password>';
|
||||
|
||||
GRANT CONNECT ON DATABASE <dbname> TO <username>;
|
||||
GRANT ALL ON SCHEMA public TO <username>;
|
||||
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO <username>;
|
||||
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO <username>;
|
||||
ALTER USER <username> CREATEDB; # Prisma ORM needs this to run migrations
|
||||
```
|
||||
Reference in a new issue