Feature idea: keep track of modified records?
SachaG opened this issue · 2 comments
SachaG commented
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
@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
Good point :)