Fix #934: Documented how to create DB extension by hand in case of permission error during migrations

This commit is contained in:
Eliot Berriot 2019-10-15 11:52:15 +02:00
parent 52a704451d
commit 49f8fba232
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
Documented how to create DB extension by hand in case of permission error during migrations (#934)

View File

@ -192,6 +192,12 @@ match what is described in :doc:`/installation/debian`:
# restart the services
sudo systemctl start funkwhale.target
.. note::
If you see a PermissionError when running the ``migrate`` command, try running the following commands by hand, and relaunch the migrations::
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION IF NOT EXISTS "citext";'
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION IF NOT EXISTS "unaccent";'
.. warning::
You may sometimes get the following warning while applying migrations::

View File

@ -66,6 +66,7 @@ for Funkwhale to work properly:
.. code-block:: shell
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "unaccent";'
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "citext";'
Cache setup (Redis)