Update diffs to same version where possible.

Upgrades schema of boxes to remove unique constraint
on wb_versions.
Commit hashes are checked in commit.save() so that it
doesn't try to save them twice and trigger a duplicate
key constraint.