Migrate yo wife, migrate yo kids
Installation
npm install @gobold/mig
Setting up your project
- Add a
config.json
file with your project specific config in it. - Create a
migrations
folder to house migration files. - Profit!
Running Migrations
Up
mig migrate --direction up --env development --run
Down
mig migrate --direction down --env development --run
To a specific migration
mig migrate --direction up --env development --to yourmom --run
Generating migration files
mig generate --name eat_some_tacos
Development
If you're developing new shiny things for mig, you'll need to run npm run watch
before running stuff like node dist/index.js migrate