[feature/migrations] Make depends_on static to call it without dependencies

PHPBB3-11318