Hi and thanks for the post.
The only thing you need to do after the upgrade is to re run discovery _and_ inventory of your devices.
In your case, OME is trying to insert records into these tables using an invalid device ID. The question is how you might have a bad device id.
We might need you to open a support ticket so we can look at the database and find the offending device entry. The number is 800-945-3355.
If you happen to have any idea on a suspect device, you might try to delete it from the device tree and re-run discovery.
Thanks,
Rob