Skip to content

Commit

Permalink
Merge pull request #7863 from RocketChat/ggazzo-fix-m-100
Browse files Browse the repository at this point in the history
[FIX] Fix migration 100
  • Loading branch information
rodrigok authored Aug 24, 2017
2 parents 4953bb6 + 0354f58 commit 474197e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/startup/migrations/v100.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RocketChat.Migrations.add({
version: 100,
up() {
RocketChat.models.Subscriptions.update({$exists:{audioNotification:1}}, { $rename: { 'audioNotification': 'audioNotifications' } });
RocketChat.models.Subscriptions.update({audioNotification:{$exists:1}}, { $rename: { 'audioNotification': 'audioNotifications' } });
}
});

0 comments on commit 474197e

Please sign in to comment.