history: added utility fuction to update enum values (#918075)

Bug-Url: https://bugzilla.redhat.com/918075

Change-Id: I5921a20165466cba5f5ab7870dafb3d53cda8b8d
Signed-off-by: Yaniv Dary <ydary@redhat.com>