From 47106651e8293718842d9800cc302fe635683e7d Mon Sep 17 00:00:00 2001 From: Spitfireap <45575529+Spitfireap@users.noreply.github.com> Date: Sun, 12 Nov 2023 17:04:37 +0000 Subject: [PATCH] With Postgres15, you need to set vaultwarden as an admin of the database for the migration to proceed --- Using-the-PostgreSQL-Backend.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Using-the-PostgreSQL-Backend.md b/Using-the-PostgreSQL-Backend.md index 0ef68af..8509748 100644 --- a/Using-the-PostgreSQL-Backend.md +++ b/Using-the-PostgreSQL-Backend.md @@ -35,6 +35,7 @@ CREATE DATABASE vaultwarden; 2. Create a new database user and grant rights to database: ```sql CREATE USER vaultwarden WITH ENCRYPTED PASSWORD 'yourpassword'; +GRANT ALL ON DATABASE vaultwarden TO vaultwarden; GRANT all privileges ON database vaultwarden TO vaultwarden; ``` 3. Configure vaultwarden and start it, so diesel can run migrations and set up the schema properly. Do not do anything else. @@ -67,6 +68,7 @@ CREATE DATABASE vaultwarden; 2. Create a new database user and grant rights to database: ```sql CREATE USER vaultwarden WITH ENCRYPTED PASSWORD 'yourpassword'; +GRANT ALL ON DATABASE vaultwarden TO vaultwarden; GRANT all privileges ON database vaultwarden TO vaultwarden; ``` 3. Configure vaultwarden and start it, so diesel can run migrations and set up the schema properly. Do not do anything else.