universo-platform-3d
33 строки · 1.2 Кб
1// In this file you can configure migrate-mongo
2require('dotenv').config()3const config = {4mongodb: {5// TODO Change (or review) the url to your MongoDB:6url: process.env.MONGODB_URL,7
8options: {9useNewUrlParser: true, // removes a deprecation warning when connecting10useUnifiedTopology: true // removes a deprecating warning when connecting11// connectTimeoutMS: 3600000, // increase connection timeout to 1 hour12// socketTimeoutMS: 3600000, // increase socket timeout to 1 hour13}14},15
16// The migrations dir, can be an relative or absolute path. Only edit this when really necessary.17migrationsDir: 'migrations/themirror',18
19// The mongodb collection where the applied changes are stored. Only edit this when really necessary.20changelogCollectionName: 'migrations',21
22// The file extension to create migrations and search for in migration dir23migrationFileExtension: '.js',24
25// Enable the algorithm to create a checksum of the file contents and use that in the comparison to determine26// if the file should be run. Requires that scripts are coded to be run multiple times.27useFileHash: false,28
29// Don't change this, unless you know what you're doing30moduleSystem: 'commonjs'31}
32
33module.exports = config34