@gobold/migs

2.1.10 • Public • Published

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

migs migrate --direction up --env development --run

Down

migs migrate --direction down --env development --run

To a specific migration

migs migrate --direction up --env development --to yourmom --run

Generating migration files

migs 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

Gotchas

If your umzug.json file in specific migrations repo has entries in the json array ... and you've wiped your db ... clearout the array ... should be []

Readme

Keywords

none

Package Sidebar

Install

npm i @gobold/migs

Weekly Downloads

9

Version

2.1.10

License

ISC

Last publish

Collaborators

  • bhalle
  • stuartmartin
  • danieledwards
  • iainporter
  • coreyk
  • caiges
  • opsatbold