Skip to content

Commit

Permalink
allow ignoring order and ignoring checksum
Browse files Browse the repository at this point in the history
- ignoring order doesn't work yet as checksum will be fetched by the index, not id
  • Loading branch information
sakulstra committed May 9, 2018
1 parent 3fce616 commit 3728343
Show file tree
Hide file tree
Showing 6 changed files with 1,078 additions and 9 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ var Migration = require('mongration').Migration;
var mydbMigration = new Migration(mydbConfig);
```

Mongration accepts an additional `options` object which allows you to adjust the behavior. In essence you can opt out core security features.
```
var options = {
ignoreChecksum: true
ignoreOrder: true
};
```
:bomb: You shouldn't use these flags in production, but they may come in handy while in development.


### Creating migration steps

Expand Down
Loading

0 comments on commit 3728343

Please sign in to comment.