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/v114.js

19 lines
462 B

import { Migrations } from '../../../app/migrations';
import { Settings } from '../../../app/models';
Migrations.add({
version: 114,
up() {
if (Settings) {
const setting = Settings.findOne({ _id: 'Message_GlobalSearch' });
if (setting && setting.value) {
Settings.upsert(
{ _id: 'Search.defaultProvider.GlobalSearchEnabled' },
{ $set: { value: setting.value } },
);
Settings.removeById('Message_GlobalSearch');
}
}
},
});