Fix foreign keys that support multiple columns