sequelize-mcl
v1.0.2
Published
The Sequelize MCL
Downloads
1
Readme
sequelize/mcl
Run your Migrations step by step and with specified migration up & down
The Sequelize Command Line Interface (CLI)
Derived from sequelize-cli package
Based on umzug latest version 3
Installation
Make sure you have Sequelize installed. Then install the Sequelize CLI to be used in your project with
npm install --save-dev sequelize-mcl
And then you should be able to run the CLI with
npx sequelize-mcl --help
Usage
Sequelize-mcl CLI [Node: 10.21.0, CLI: 6.0.0, ORM: 6.1.0]
sequelize <command>
Commands:
sequelize db:migrate Run pending migrations
sequelize db:migrate --step=N Run N number of pending migrations
sequelize db:migrate --name=migration.js Run specific migration file .js
sequelize db:migrate --migrations["migration1.js","migration2"] Run array of migration files
sequelize db:migrate:undo Reverts a migration
sequelize db:migrate:undo --step=N Reverts N number of migrations
sequelize db:migrate:undo --name=migration.js Reverts specific migration file .js
sequelize db:migrate:undo --migrations["migration1.js","migration2"] Reverts array of migration file .js
sequelize db:migrate:undo:all Revert all migrations ran
sequelize db:migrate:status List the status of all migrations
Please specify a command