On a fresh install, doing an upgrade triggers updatedatabase, which fails if the instance was created but the database structure hasn't been initialized (by webinstaller)
Created attachment 41445 [details] [review] Do not trigger update database when originalversion is not peresent. We are currently dealing with the same problem. Please find attached the patch. There is a check of $original_version before the migration is being executed.
Created attachment 41447 [details] [review] Don't upgrade the database when original version is not present. Sorry! The patch is incorrect! There is a problem in the condition. Please find a new one.
The attachement is not a well formatted patch, so does not apply. Tomas, as you reported the initial bug, could you take a look if the patch could be saved/useful?