mongo-migrant
perform mongoDb migrations easily
Last updated 2 months ago by jesseokeya .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongo-migrant 
SYNC missed versions from official npm registry.

Mongo Migrant

Perform mongoDb migrations easily

Getting Started

Installing

Install node dependecies required

npm install mongo-migrant --save

Inorder to use the command line tools you have to install mongo-migrant globally

npm install mongo-migrant -g

Usage

const Migrant = require('mongo-migrant')

const context = new Migrant({
    /** Database uri your migrating from  **/
    up: process.env.UP,
    /** Database uri our migrating to **/
    down: process.env.DOWN
})

/** performs database migration **/
context.migrate()

CLI Usage

Displays current version of mongo-migrant

mongo-migrant --version

Displays command line usage / docs

mongo-migrant --help

Performs mongo database migration

mongo-migrant --up='database_uri_your_migrating_from' --down='database_uri_your_migrating_to'

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • oclif
  • mongoClient

Current Tags

  • 0.1.3                                ...           latest (2 months ago)

12 Versions

  • 0.1.3                                ...           2 months ago
  • 0.1.2                                ...           2 months ago
  • 0.1.1                                ...           2 months ago
  • 0.1.0                                ...           2 months ago
  • 0.0.7                                ...           2 months ago
  • 0.0.6                                ...           2 months ago
  • 0.0.5                                ...           2 months ago
  • 0.0.4                                ...           2 months ago
  • 0.0.3                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 171
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |