Bug 8779 - .deb upgrade fails on incomplete instance setup
Summary: .deb upgrade fails on incomplete instance setup
Status: Patch doesn't apply
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Tomás Cohen Arazi
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-18 02:57 UTC by Tomás Cohen Arazi
Modified: 2019-04-28 11:54 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Do not trigger update database when originalversion is not peresent. (455 bytes, patch)
2015-08-11 13:02 UTC, Yarik Dot
Details | Diff | Splinter Review
Don't upgrade the database when original version is not present. (457 bytes, patch)
2015-08-11 13:06 UTC, Yarik Dot
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 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?