added installing extensions if necessary

This commit is contained in:
smilerz 2023-11-28 16:22:17 -06:00
parent fcb2c07acd
commit f69813f729
No known key found for this signature in database
GPG Key ID: 39444C7606D47126

View File

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