v12.0.0 - initial commit
This commit is contained in:
commit
e2c49ea43c
1145 changed files with 97211 additions and 0 deletions
16
packages/server/migrations/1620319260238-timezones.js
Normal file
16
packages/server/migrations/1620319260238-timezones.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const _ = require('lodash/fp')
|
||||
const { loadConfig, saveConfig } = require('./settings')
|
||||
|
||||
exports.up = function (next) {
|
||||
loadConfig()
|
||||
.then(config => {
|
||||
if (!_.isEmpty(config)) config.locale_timezone = '0:0'
|
||||
return saveConfig(config)
|
||||
})
|
||||
.then(() => next())
|
||||
.catch(err => next(err))
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue