migrating

1.0.8 • Public • Published

NPM Version NPM Downloads

NPM

Migrating

Common migrator for Sequelize | Knex ... more coming.

It will run latest migration OR will rollback last migration.

Note!

This library has no custom logic. It's just a wrapper around official Sequelize and Knex libs. Run at your own risk.

Install:

npm i -g migrating

Usage:

migrating <direction> <orm> <database> <connectoin_url>

params:
- direction: up | down
- orm: knex | sequelize
- database: pg | mysql (optional, default postgres)
- connectoin_url: postgres://user:password@host/database_name

Example:

- migrating up knex postgres://postgres:12345@localhost/postgres
- migrating down knex postgres://postgres:12345@localhost/postgres
- migrating up sequelize postgres://postgres:12345@localhost/postgres

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.8
    0
    • latest

Version History

Package Sidebar

Install

npm i migrating

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

3.23 kB

Total Files

4

Last publish

Collaborators

  • waleedashraf