migrate
migrate copied to clipboard
Issue with CLI
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
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
This requirement should be documented. Cli's readme has examples without the "source" option.