Update FOREIGN KEY constraints to new format.