mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-03-04 01:38:41 +08:00
migration.md - adjust db-creation docs for psql 15
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
43ef6cb056
commit
e9497634b6
1 changed files with 3 additions and 1 deletions
|
@ -36,8 +36,10 @@ The procedure for migrating the files and the database works like this:
|
|||
export PG_PASSWORD="my-temporary-password"
|
||||
export PG_DATABASE="nextcloud_db"
|
||||
sudo -u postgres psql <<END
|
||||
CREATE USER $PG_USER WITH PASSWORD '$PG_PASSWORD';
|
||||
CREATE USER $PG_USER WITH PASSWORD '$PG_PASSWORD' CREATEDB;
|
||||
CREATE DATABASE $PG_DATABASE WITH OWNER $PG_USER TEMPLATE template0 ENCODING 'UTF8';
|
||||
GRANT ALL PRIVILEGES ON DATABASE $PG_DATABASE TO $PG_USER;
|
||||
GRANT ALL PRIVILEGES ON SCHEMA public TO $PG_USER;
|
||||
END
|
||||
```
|
||||
1. Run the following command to start the conversion:
|
||||
|
|
Loading…
Reference in a new issue