1.0.8 • Published 4 years ago

migrating v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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
1.0.8

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago