percolatestudio / meteor-migrations

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

Feature idea: keep track of modified records? #9

Closed SachaG closed 10 years ago

SachaG commented 10 years ago

Would it be a good idea to add a new document for each migration that includes a list of the IDs of all the documents modified by the migration? This way each migration would be more easily reversable?

zol commented 10 years ago

@SachaG - Since you're free to run whatever arbitrary code you want in your migration I think it would be too onerous to force migration authors to stick to some sort of rigid scheme (i.e passing back an array of id's from their up migration). In any case, the functionality you're looking for is probably best implemented in your own migrations rather than in the core package.

SachaG commented 10 years ago

Good point :)