[ticket/11716] Fix dependencies in migration files

PHPBB3-11716