Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make migration in example docker setup more robust #88

Open
pniederlag opened this issue Nov 9, 2018 · 0 comments
Open

make migration in example docker setup more robust #88

pniederlag opened this issue Nov 9, 2018 · 0 comments

Comments

@pniederlag
Copy link

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;\"'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant