Merge branch '934-extension' into 'master'

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

See merge request funkwhale/funkwhale!926
This commit is contained in:
Eliot Berriot 2019-10-15 12:24:55 +02:00
commit 518fb73a07
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)