dbmate

Lightweight database migration tool supporting multiple databases.

brewmacoslinux
Try with needOr install directly
Source

About

Lightweight, framework-agnostic database migration tool

Commands

dbmate

Examples

create a new database migration file$ dbmate new create_users_table
run pending database migrations$ dbmate up
rollback the last database migration$ dbmate down
check current database migration status$ dbmate status
reset database and run all migrations from scratch$ dbmate drop && dbmate up