Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to change the migrations dir
Fixes: #5
- Loading branch information
Showing
5 changed files
with
81 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
'use strict'; | ||
|
||
// This is where you can configure migrate-mongo | ||
module.exports = { | ||
// In this file you can configure migrate-mongo | ||
|
||
// The mongodb collection where the applied changes are stored: | ||
changelogCollectionName: 'changelog', | ||
module.exports = { | ||
|
||
mongodb: { | ||
// TODO edit this connection url to your MongoDB database: | ||
// TODO You MUST edit this connection url to your MongoDB database: | ||
url: 'mongodb://localhost:27017/YOURDATABASENAME', | ||
|
||
// uncomment and edit to specify Mongo client connect options | ||
// uncomment and edit to specify Mongo client connect options (eg. increase the timeouts) | ||
// see https://mongodb.github.io/node-mongodb-native/2.2/api/MongoClient.html | ||
// | ||
// options: { | ||
// connectTimeoutMS: 3600000, // 1 hour | ||
// socketTimeoutMS: 3600000, // 1 hour | ||
// } | ||
} | ||
}, | ||
|
||
// The migrations dir, can be an relative or absolute path. Only edit this when really necessary. | ||
migrationsDir: 'migrations', | ||
|
||
// The mongodb collection where the applied changes are stored. Only edit this when really necessary. | ||
changelogCollectionName: 'changelog', | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters