Skip to content

Commit

Permalink
Merge ded52ea into 468dba9
Browse files Browse the repository at this point in the history
  • Loading branch information
okv committed Jan 27, 2020
2 parents 468dba9 + ded52ea commit 18860b7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All executed migrations names will be stored at `_migrations` collection in the
current database. Object with following properties will be passed to `migrate`
and `rollback` functions:

* `db` - instance of [mongodb native db](http://mongodb.github.io/node-mongodb-native/3.4/api/Db.html)
* `db` - instance of [mongodb native db](http://mongodb.github.io/node-mongodb-native/3.5/api/Db.html)
* `dropIndexIfExists` function(collection, index, [callback]) - helper function
which can be used for dropping index in safe way (contrasting to
`collection.dropIndex` which throws an error if index doesn't exist). This
Expand Down Expand Up @@ -78,7 +78,7 @@ Sample `.eastrc` content:

where `url` is url of database which you want to migrate (in
[mongodb native url connection format](http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#the-url-connection-format)) and `options` is optional settings
(see [connect method specification](http://mongodb.github.io/node-mongodb-native/3.4/api/MongoClient.html#.connect)).
(see [connect method specification](http://mongodb.github.io/node-mongodb-native/3.5/api/MongoClient.html#.connect)).

Migration files created with default `template` that comes with adapter will
look like:
Expand Down
26 changes: 22 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18860b7

Please sign in to comment.