goose

SQL migration tool for Go applications with database version control

brewmacoslinux
Try with needOr install directly
Source

About

Go Language's command-line interface for database migrations

Commands

goose

Examples

Create a new migration file$ goose create add_users_table sql
Run all pending migrations on PostgreSQL$ goose postgres "user=postgres password=secret dbname=mydb" up
Check current migration status$ goose mysql "user:password@/dbname" status