diff --git a/doc/user/install.rst b/doc/user/install.rst index c1a3f4456..d2301a495 100644 --- a/doc/user/install.rst +++ b/doc/user/install.rst @@ -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 diff --git a/etc/setup-db.sql b/etc/setup-db.sql index da53b4468..e4f051b42 100644 --- a/etc/setup-db.sql +++ b/etc/setup-db.sql @@ -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;