Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

migrating

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

migrating

Common Migrator for Sequelize | Knex | ...

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 30 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc