Skip to content

Commit

Permalink
[#1428] Switch DB before granting privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Jun 26, 2024
1 parent e01d567 commit b9ad70d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/user/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ Then, prepare the database:
CREATE DATABASE
postgres=# GRANT ALL PRIVILEGES ON DATABASE stork TO stork;
GRANT
postgres=# GRANT ALL PRIVILEGES ON SCHEMA public TO stork;
GRANT
postgres=# \c stork
You are now connected to database "stork" as user "postgres".
postgres=# GRANT ALL PRIVILEGES ON SCHEMA public TO stork;
GRANT
stork=# create extension pgcrypto;
CREATE EXTENSION
Expand Down
2 changes: 1 addition & 1 deletion etc/setup-db.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE DATABASE stork;
CREATE USER stork WITH ENCRYPTED PASSWORD 'stork123';
GRANT ALL PRIVILEGES ON DATABASE stork TO stork;
GRANT ALL PRIVILEGES ON SCHEMA public TO stork;
\c stork
GRANT ALL PRIVILEGES ON SCHEMA public TO stork;
CREATE EXTENSION pgcrypto;

0 comments on commit b9ad70d

Please sign in to comment.