Skip to content
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

MySQL - use the database name in the config #1238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thestephenstanton
Copy link

I noticed that if you specify the database name in the config, it actually doesn't do anything. At least not that I'm seeing here. Looks like it might only be used for locks.

I am currently running into a problem where I use 1 connection string that doesn't specify a database for all our different databases on the same cluster. Because of this, the migrations won't work.

This change technically could cause breaking changes if people have specified a different database name in the connection string than is actually in the config.

@coveralls
Copy link

Coverage Status

coverage: 56.319%. remained the same
when pulling 6ab1d6b on thestephenstanton:use-db-name
into 36d17ba on golang-migrate:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants