Update FOREIGN KEY to work without index name.