mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

Issue with CLI #317

Open vikashvverma opened 6 years ago

vikashvverma commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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