diff options
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 76ebb8681..10ae48e95 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -54,6 +54,18 @@ const FRIEND_SCORE = { | |||
54 | MAX: 1000 | 54 | MAX: 1000 |
55 | } | 55 | } |
56 | 56 | ||
57 | const MONGO_MIGRATION_SCRIPTS = [ | ||
58 | { | ||
59 | script: '0005-create-application', | ||
60 | version: 5 | ||
61 | }, | ||
62 | { | ||
63 | script: '0010-users-password', | ||
64 | version: 10 | ||
65 | } | ||
66 | ] | ||
67 | const LAST_MONGO_SCHEMA_VERSION = 10 | ||
68 | |||
57 | // Time to wait between requests to the friends (10 min) | 69 | // Time to wait between requests to the friends (10 min) |
58 | let REQUESTS_INTERVAL = 600000 | 70 | let REQUESTS_INTERVAL = 600000 |
59 | 71 | ||
@@ -121,11 +133,13 @@ module.exports = { | |||
121 | CONFIG: CONFIG, | 133 | CONFIG: CONFIG, |
122 | CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS, | 134 | CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS, |
123 | FRIEND_SCORE: FRIEND_SCORE, | 135 | FRIEND_SCORE: FRIEND_SCORE, |
124 | REQUESTS_INTERVAL: REQUESTS_INTERVAL, | 136 | LAST_MONGO_SCHEMA_VERSION: LAST_MONGO_SCHEMA_VERSION, |
137 | MONGO_MIGRATION_SCRIPTS: MONGO_MIGRATION_SCRIPTS, | ||
125 | OAUTH_LIFETIME: OAUTH_LIFETIME, | 138 | OAUTH_LIFETIME: OAUTH_LIFETIME, |
126 | PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, | 139 | PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, |
127 | PODS_SCORE: PODS_SCORE, | 140 | PODS_SCORE: PODS_SCORE, |
128 | REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL, | 141 | REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL, |
142 | REQUESTS_INTERVAL: REQUESTS_INTERVAL, | ||
129 | REQUESTS_LIMIT: REQUESTS_LIMIT, | 143 | REQUESTS_LIMIT: REQUESTS_LIMIT, |
130 | RETRY_REQUESTS: RETRY_REQUESTS, | 144 | RETRY_REQUESTS: RETRY_REQUESTS, |
131 | SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, | 145 | SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, |