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

Issue with CLI #317

Open
vikashvverma opened this issue Dec 11, 2017 · 2 comments · Fixed by golang-migrate/migrate#89
Open

Issue with CLI #317

vikashvverma opened this issue Dec 11, 2017 · 2 comments · Fixed by golang-migrate/migrate#89

Comments

@vikashvverma
Copy link

I have been trying to run migrate CLI to run migrations but unfortunately it throws error: no scheme error:
migrate -database "$(cat db/config.json | jq '.database')" -source db/migrations -verbose up

@stephenhu
Copy link

stephenhu commented Dec 15, 2017

this means that the -source flag did not include a scheme like "file". please try:

migrate -database "$(cat db/config.json | jq '.database')" -source file://db/migrations up

@borgotta
Copy link

This requirement should be documented. Cli's readme has examples without the "source" option.

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

Successfully merging a pull request may close this issue.

3 participants