Create missing 'migrations' table before reverting the database.