Bug 8779

Summary: .deb upgrade fails on incomplete instance setup
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: Installation and upgrade (command-line installer)Assignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: Patch doesn't apply --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: yarikdot
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4876
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Do not trigger update database when originalversion is not peresent.
Don't upgrade the database when original version is not present.

Description Tomás Cohen Arazi (tcohen) 2012-09-18 02:57:57 UTC
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)
Comment 1 Yarik Dot 2015-08-11 13:02:32 UTC
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.
Comment 2 Yarik Dot 2015-08-11 13:06:05 UTC
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.
Comment 3 Katrin Fischer 2019-04-28 11:54:29 UTC
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?