The schema index representation of columns being indexed changed a while ago but the foreign key add code wasn't updated to match