Fix issue with upgrade task executing on oracle (or any db not returning an Integer for the ID field).