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/apps/meteor/server/startup/migrations/v274.ts

18 lines
495 B

import { MongoInternals } from 'meteor/mongo';
import { addMigration } from '../../lib/migrations';
// Remove Deprecated Omnichannel Queue Collection
addMigration({
version: 274,
async up() {
// Remove collection
try {
const { mongo } = MongoInternals.defaultRemoteCollectionDriver();
await mongo.db.dropCollection('rocketchat_omnichannel_queue');
} catch (e: any) {
// ignore
console.warn('Error deleting collection. Perhaps collection was already deleted?');
}
},
});