add migrations for history tables