The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/startup/migrations/v021.js

25 lines
537 B

import { Migrations } from '../../../app/migrations';
import { Settings } from '../../../app/models';
Migrations.add({
version: 21,
up() {
/*
* Remove any i18nLabel from rocketchat_settings
* They will be added again where necessary on next restart
*/
Settings.update({
i18nLabel: {
$exists: true,
},
}, {
$unset: {
i18nLabel: 1,
},
}, {
multi: true,
});
return console.log('Removed i18nLabel from Settings. New labels will be added on next restart! Please restart your server.');
},
});