[ticket/12870] Create the migrations table with a method in the migrator

PHPBB3-12870