universo-platform-3d

Форк
0
/
migrate-mongo-config.js 
33 строки · 1.2 Кб
1
// In this file you can configure migrate-mongo
2
require('dotenv').config()
3
const config = {
4
  mongodb: {
5
    // TODO Change (or review) the url to your MongoDB:
6
    url: process.env.MONGODB_URL,
7

8
    options: {
9
      useNewUrlParser: true, // removes a deprecation warning when connecting
10
      useUnifiedTopology: true // removes a deprecating warning when connecting
11
      //   connectTimeoutMS: 3600000, // increase connection timeout to 1 hour
12
      //   socketTimeoutMS: 3600000, // increase socket timeout to 1 hour
13
    }
14
  },
15

16
  // The migrations dir, can be an relative or absolute path. Only edit this when really necessary.
17
  migrationsDir: 'migrations/themirror',
18

19
  // The mongodb collection where the applied changes are stored. Only edit this when really necessary.
20
  changelogCollectionName: 'migrations',
21

22
  // The file extension to create migrations and search for in migration dir
23
  migrationFileExtension: '.js',
24

25
  // Enable the algorithm to create a checksum of the file contents and use that in the comparison to determine
26
  // if the file should be run.  Requires that scripts are coded to be run multiple times.
27
  useFileHash: false,
28

29
  // Don't change this, unless you know what you're doing
30
  moduleSystem: 'commonjs'
31
}
32

33
module.exports = config
34

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.