Update upgrade.php

fix version comparison for new savepoint