mongo-upgrader

1.10.0 • Public • Published

mongo-upgrader

This is a simple npm package to manage MongoDB database upgrades. It will connect to a server, select a given database, check the upgraded version if it has it, and run the upgrade scripts in numerical order. The upgrade scripts are in alt[0-9].js format.

Available options: -h HOST address of MongoDB server including the database, i.e. mongoserver.com/mydb -f FOLDER which has the alt scripts

Each alt script is ran in context of Mongo shell, and includes the underscore library.

mongo-upgrader -u HOST -f FOLDER

Readme

Keywords

none

Package Sidebar

Install

npm i mongo-upgrader

Weekly Downloads

0

Version

1.10.0

License

MIT

Unpacked Size

75.5 kB

Total Files

10

Last publish

Collaborators

  • luman75