mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00: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_PASSWORD="my-temporary-password"
|
||||||
export PG_DATABASE="nextcloud_db"
|
export PG_DATABASE="nextcloud_db"
|
||||||
sudo -u postgres psql <<END
|
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';
|
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
|
END
|
||||||
```
|
```
|
||||||
1. Run the following command to start the conversion:
|
1. Run the following command to start the conversion:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue