-
Notifications
You must be signed in to change notification settings - Fork 535
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
The "postgres migration table existence check" feature added in v3.23.1 is a breaking change for non-default schema #882
Comments
Apologies this broke you. We typically take backwards-incompatible changes quite seriously but this was one of those changes we thought would improve the implementation and affect very few folks, because
Your feedback is valid though. Would a EDIT: I wonder if we could update the implementation to only search for the table name without specifying the schema, and optionally let users specify the schema, instead of defaulting to |
I put up a PR to address this #883. Thanks for flagging this. I believe this should resolve your issue while still maintaining the initial goal of improving table-checking logic. |
Thanks for the quick response! I think this work for me. I do believe though, that an even better approach would be to use I know that is even more of a corner case, but for example we run testcases in different schemas on the same database on some systems, to avoid some concurrency issues. |
PR: #884 |
Before this change, the goose migrations "just worked", as long as the postgres searchPath was set to the correct schema.
With the new change, the existence check looks in the "Public" schema, where it is not present, and then fails when trying to create the table in the default schema (according to searchPath).
While we might get around this, by prefixing the migration table name with the schema, it then requires the migration to be schema aware, where it didn't need to be before.
The text was updated successfully, but these errors were encountered: