added installing extensions if necessary
This commit is contained in:
parent
fcb2c07acd
commit
f69813f729
@ -79,6 +79,15 @@ sudo mv -R ~/.docker/compose/postgres ~/.docker/compose/postgres.old
|
|||||||
``` bash
|
``` bash
|
||||||
cat ~/tandoor.sql | sudo docker exec -i {{database_container}} psql postgres -U {{djangouser}}
|
cat ~/tandoor.sql | sudo docker exec -i {{database_container}} psql postgres -U {{djangouser}}
|
||||||
```
|
```
|
||||||
|
8. Install postgres extensions
|
||||||
|
``` bash
|
||||||
|
docker exec -it {{database_container}} psql
|
||||||
|
```
|
||||||
|
then
|
||||||
|
``` psql
|
||||||
|
CREATE EXTENSION IF NOT EXISTS unaccent;
|
||||||
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||||
|
```
|
||||||
|
|
||||||
If anything fails, go back to the old postgres version and data directory and try again.
|
If anything fails, go back to the old postgres version and data directory and try again.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user