mongo-upgrader
v1.10.0
Published
This is a simple tool to manage MongoDB database upgrades.
Downloads
38
Readme
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