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/v254.ts

13 lines
335 B

import { addMigration } from '../../lib/migrations';
import { Users, Rooms } from '../../../app/models/server';
addMigration({
version: 254,
up() {
Users.tryDropIndex({ bio: 1 });
Users.tryEnsureIndex({ bio: 1 }, { unique: 1 });
Rooms.tryDropIndex({ prid: 1 });
Rooms.tryEnsureIndex({ prid: 1 }, { sparse: true });
},
});