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