[1.7.x] Fixed #23100: Individual FK creation missing dependencies