Update all the resources ids to the newly changed.