Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

build with 'mysql' tags, but it is still postgres #315

Open
LiehuoChen opened this issue Nov 28, 2017 · 2 comments
Open

build with 'mysql' tags, but it is still postgres #315

LiehuoChen opened this issue Nov 28, 2017 · 2 comments

Comments

@LiehuoChen
Copy link

I did go build -tags 'postgres' -o /usr/local/bin/migrate github.com/mattes/migrate/cli, but it seems it still in postgres
So when I did 'migrate -verbose -source ./migrations -database mysql://root@127.0.0.1:3306/name_db?query up
2017/11/27 16:49:54 error: no scheme
`
The complaints 'no scheme' errors is coming form postgress cli.
Is there any steps I need to do beside the cli install docs: https://github.com/mattes/migrate/tree/master/cli

Thanks.

@kron4eg
Copy link

kron4eg commented Dec 28, 2017

@LiehuoChen but your -tags... it's actually 'postgres' :)

@chichivica
Copy link

chichivica commented May 8, 2018

But in some cases one can meet the same error even with correct -tags

That is because missunderstanding -source tag.

For local folder you should use either file://./migrations or -path ./migrations

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

No branches or pull requests

3 participants