Add secondary indices to operationshistory table