Skip to content

make migration in example docker setup more robust #88

@pniederlag

Description

@pniederlag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions