Postgres dynamic schema selecter

Issue #27 new
Kevin Gorjan created an issue

We have a lot of on growing schemas in Postgres with all the same tables and I like to know if its possible to select or set a schema before the migration starts?

Now it targets the "default"-schema or we have to hard-code it in the .sql-file?

Thanks

Comments (5)

  1. Kevin Gorjan reporter

    Nevermind, I updated the code a little bit.

    Now I can set the schema-name (search-path). goose -schema=[schemaname]

    Thanks

  2. Liam Staskawicz repo owner

    cool - would it make sense to integrate that code into the main tree? if you're up for submitting a pull request, that'd be great.

  3. Log in to comment