- Feature: CLI commands to run one or more arbitrary migrations up or down (and the corresponding migrator methods)
- Refactoring: migrations runner code is separarted from the stateful migrator (intended for programmatic usage)
- Added support for setting authentication database via the
authSource
string.
- Migration files other than
.js
and.coffee
will be skipped, along with dotfiles
- The new
dedupe
command. Run it once (mm dedupe
with optional--config
parameter as usual) to remove the duplicate migration records introduced by 0.8.0. It's important to do to ensure the migrtions collection is in valid state which is required to run the migrations down.
- Added a new machine-friendly
code
to the result in case of skipped migrations - fix the regression when the migrations would be recorded multiple times
- update README
- fix regression: allow configs with
url
option - [potentially breaking change] Skipped migrations are now also recorded in the DB as being ran (and removed on rollback, see below).
- [potentially breaking change] Fix the erroneous
rollback
behaviour where it was creating another record for the migration (in the migrations collection) instead of deleting the existing one.
- Validate config object when creating the migrator instance
- [potentially breaking change] Added default value for
collection
param:_migrations
. - Added support for the arbitrary connection options (passed down to
MongoClient
). Direct usage ofpoolSize
is deprecated (to be removed in 1.0) - [potentially breaking change] Added
'use strict';
to the generated JS migration stub (@alyyousuf7).
- Added support for
timeout
options (kudos @alyyousuf7) - Code refactoring
- Fixed tests for true-ish values
- Fix regression - wrong migration files prefix
- Migrated from Q to Bluebird
- Updated dependencies
- Added support for replicasets (kudos @antony)
- Support
config.ssl
- Support DEBUG parameter for error stack reporting
- [potentially breaking change] MongoDB driver updated to 2.x. If you use the
db
object in your migrations check this article for the list of differences.
- hotfix release
- switched to native MongoClient.connect, removed dependency on mongo-pool2
- Added Migrator#dispose to close the MongoDB connections
- Updated mongo-pool2 to 0.1.0 which has MongoDB driver 1.4.x
- [breaking change] Simplify the expected config file structure — all keys are expected on the top level
- Minor README update
- Minor README update
- Technical release for fixing npm publish issue
- Full README
- More tests
Automatically pick mm-config.{js,json,coffee}
Fix for the case when migrations directory does not exist
Report exact skip reason
Binary bugfix
Binary bugfix
Binary file for creating and running migrations
Allow creating migration stubs
Allow running migrations from directory
Initial release, has tests, allows migration and rollback, only programmatic API