CORE-1347 dropAll function work incorrectly when table has 2 foreign keys