You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the code above, it will automatically assign the public schema for the list migrations table. How do we configure goose to read the goose version table from another schema?
There is another issue listing a potential solution: #205
However, setting the search path in the connection string does not seem to fix this issue.
The text was updated successfully, but these errors were encountered:
jamesleeht
changed the title
When using non-public schema for Postgres, migration table cannot be found
When using non-public schema for Postgres, "goose_db_version" table cannot be found
Nov 28, 2024
The first migration works fine, as the search path set on my user will cause the
goose_db_version
table to be created in my custom schema.However, when running the second migration, this will cause the
goose_db_version
to not be found.Related issues:
#800
Related code:
https://github.com/pressly/goose/blob/master/migrate.go#L216
https://github.com/pressly/goose/blob/master/internal/dialect/dialectquery/postgres.go#L60-L66
According to the code above, it will automatically assign the public schema for the list migrations table. How do we configure goose to read the goose version table from another schema?
There is another issue listing a potential solution:
#205
However, setting the search path in the connection string does not seem to fix this issue.
The text was updated successfully, but these errors were encountered: