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

11 lines
340 B

RocketChat.Migrations.add({
version: 56,
up() {
RocketChat.models.Messages.find({ _id: /\./ }).forEach(function(message) {
const oldId = message._id;
message._id = message._id.replace(/(.*)\.S?(.*)/, 'slack-$1-$2');
RocketChat.models.Messages.insert(message);
RocketChat.models.Messages.remove({ _id: oldId });
});
}
});