migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Issue with CLI

Open vikashvverma opened this issue 7 years ago • 2 comments

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

vikashvverma avatar Dec 11 '17 05:12 vikashvverma

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

stephenhu avatar Dec 15 '17 15:12 stephenhu

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

borgotta avatar Dec 20 '17 11:12 borgotta