Fix #934: Documented how to create DB extension by hand in case of permission error during migrations
This commit is contained in:
parent
52a704451d
commit
49f8fba232
|
@ -0,0 +1 @@
|
||||||
|
Documented how to create DB extension by hand in case of permission error during migrations (#934)
|
|
@ -192,6 +192,12 @@ match what is described in :doc:`/installation/debian`:
|
||||||
# restart the services
|
# restart the services
|
||||||
sudo systemctl start funkwhale.target
|
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::
|
.. warning::
|
||||||
|
|
||||||
You may sometimes get the following warning while applying migrations::
|
You may sometimes get the following warning while applying migrations::
|
||||||
|
|
|
@ -66,6 +66,7 @@ for Funkwhale to work properly:
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "unaccent";'
|
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "unaccent";'
|
||||||
|
sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "citext";'
|
||||||
|
|
||||||
|
|
||||||
Cache setup (Redis)
|
Cache setup (Redis)
|
||||||
|
|
Loading…
Reference in New Issue