Fix timestamp types on history tables
Fix incorrect column types for timestamps in history tables