docker-odoo-project icon indicating copy to clipboard operation
docker-odoo-project copied to clipboard

make migration in example docker setup more robust

Open pniederlag opened this issue 6 years ago • 0 comments

In migration of the docker example there is a step included that executes a sql query (psql -c \"CREATE pg_trgm;") this step will only work on a pristine database. Any subsequent executions will result in an error.

I updated the query to be more robust so I can reexecute/force the migration "setup" by modifying the query to:

psql -c \"CREATE EXTENSION IF NOT EXISTS pg_trgm;

https://github.com/camptocamp/docker-odoo-project/blob/8f7a8608063bb5a879b8c5172ddd71fd9679094f/example/odoo/migration.yml#L8

pniederlag avatar Nov 09 '18 15:11 pniederlag