From what version are you trying to upgrade?
From what i see the script tries to perform the update step for 0.2 -> 0.3 , which means either
- your old version was 0.2 ( but you performed the change of the owner update manually at sometime to make use of the multiple sites in account feature ). In that case it should be enough if yo set your version_number to 0.3 manually in phpmyadmin -> VL_etc
- Or, your version numbers was never updaated for some reason