also record the ids of all documents changed
Merge pull request #2728 from dimagi/record-changed-id

Update to downgrade script