Need another driver? Just implement the Driver interface and open a PR.
Usage from Terminal
# install
go get github.com/db-journey/journey
# create new migration file in path
journey --url driver://url --path ./migrations migrate create migration_file_xyz
# apply all available migrations
journey --url driver://url --path ./migrations migrate up
# roll back all migrations
journey --url driver://url --path ./migrations migrate down
# roll back the most recently applied migration, then run it again.
journey --url driver://url --path ./migrations migrate redo
# run down and then up command
journey --url driver://url --path ./migrations migrate reset
# show the current migration version
journey --url driver://url --path ./migrations migrate version
# apply the next n migrations
journey --url driver://url --path ./migrations migrate migrate +1
journey --url driver://url --path ./migrations migrate migrate +2
journey --url driver://url --path ./migrations migrate migrate +n
# roll back the previous n migrations
journey --url driver://url --path ./migrations migrate migrate -1
journey --url driver://url --path ./migrations migrate migrate -2
journey --url driver://url --path ./migrations migrate migrate -n
# go to specific migration
journey --url driver://url --path ./migrations migrate goto 1
journey --url driver://url --path ./migrations migrate goto 10
journey --url driver://url --path ./migrations migrate goto v
CronJobs
Journey also provides a command to run scheduled jobs on databases: