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;
|
- "sh -c 'psql -c \"CREATE EXTENSION pg_trgm;\"'" |
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;docker-odoo-project/example/odoo/migration.yml
Line 8 in 8f7a860