[feature/migrations] Function to populate the migrations table (for install)

PHPBB3-9737