In includes/upgrade.php
there is a function called dbDelta
.
If you’ll pass FALSE
as second argument and ''
(empty string) as first, then you’ll get the list of all changes, that should be made to database (but none of them will be executed).
You can also find the new structure of DB in includes/schema.php
file of the new version, so you can do the comparison manually.