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
environments/review-front-594-ofn00k/deployments/3014
Eliot Berriot 2019-10-15 12:24:55 +02:00
commit 518fb73a07
3 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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::

Wyświetl plik

@ -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)