include indexes in history table creation