percolatestudio / meteor-migrations

Simple migration system for Meteor
https://atmospherejs.com/percolate/migrations
MIT License
245 stars 58 forks source link

collection update not working #11

Closed zenmatt closed 10 years ago

zenmatt commented 10 years ago

Baffled by this code not working. I've tested it from the mongo console which works, I've console logged to ensure I am in the up/down functions, but the update has no effect.

  version: 2,
  name: 'Add blah to Collection',
  up: function () {
    Collection.update({}, {$set:{blah:""}}, {multi:true});
  },
  down: function () {
    Collection.update({}, {$unset: {blah:1}}, {multi:true});
  }
});```
zol commented 10 years ago

@zenmatt - hey Matt, I'm guessing you managed to resolve this issue. Let me know if now.

zenmatt commented 10 years ago

Apologies for not updating. I believe I resolved it, but cannot remember what the issue/fix was.

MattG561 commented 2 years ago

I am also facing this issue. Would be nice if the fix was posted within the thread.