migrate
Slug Migrate — database schema migration tool
Applies, rolls back, and reports on versioned SQL migration scripts.
Usage:
slug migrate [options] [up|down|status]
Commands:
upapply all pending migrations (default)downroll back the most recent migration(s)statusshow applied / pending / ineligible migrations
Options:
-h, --helpshow this screen-v, --versionshow version--dbdatabase connection string (required)-
--driverdatabase driver: sqlite3mysql postgres (default: sqlite3) --envenvironment tag(s) to include; may be passed multiple times--basemigrations directory (default: db/migrations)--stepnumber of migrations to roll back withdown(default: 1)