it might also be worth squashing this migration with the previous one which adds the type field and defaults it to `FileAttachment` so that all three commands which set `type` can run in the same transaction.