-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[sqlserver] Ensure version table in provided schema #840
[sqlserver] Ensure version table in provided schema #840
Conversation
c89e846
to
9da9d3c
Compare
@dhui @Fontinalis Do you agree with this solution, or would you prefer to always create the version table in schema |
Is there any news? I too need this PR to be merged |
Any news about this PR? |
515114c
to
7823a01
Compare
Rebased and fixed linter issues, so should be good to go 🤞 |
@dhui Sorry to bother you personally, but is there anything I/we can do to get this merged? Thanks! 🙏 |
8a6ff0c
to
0350a00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alex-kuck Thanks for the PR and sorry for the delayed response!
Overall, I'm onboard with having the schema migration version table stored with the custom schema since this allows multiple projects/apps to use golang-migrate with a single sqlserver.
Is this change backwards compatible? e.g. what happens with existing db instances that use a custom schema? I believe that the "old" migration version table would be stored in dbo
but after this change, golang-migrate would now expect it to be in the custom schema.
Hi @dhui, thanks for your review and no worries, I'm just happy to get this one out the door 😄
Hope this makes sense 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alex-kuck Thanks again for the PR and your patience!
Also thanks for answering my questions and enumerating the various scenarios. It looks like custom schemas weren't supported by the sqlserver db driver before this PR. It looks like this was a bug with the initial implementation where the dbo
schema was explicitly specified in the migration table existence check but not any other usage.
Closes #839