Amend migration such that theses on production are linked to their
issues in the new schema.