Move the migration to a newer version.

pull/5625/head
Bradley Hilton 9 years ago
parent b54c0d4491
commit ee18ec2aae
No known key found for this signature in database
GPG Key ID: 0666B2C24C43C358
  1. 2
      server/startup/migrations/v082.js

@ -1,5 +1,5 @@
RocketChat.Migrations.add({
version: 81,
version: 82,
up: function() {
RocketChat.models.Rooms.find().forEach((room) => {
RocketChat.models.Rooms.incMsgCountById(room._id, RocketChat.models.Messages.find({ rid: room._id, t: { $exists: true }}).count());
Loading…
Cancel
Save