[Koha-bugs] [Bug 25078] Gracefully stop updatedatabase/installer when a database change cannot be applied

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 5 15:42:58 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25078

--- Comment #44 from Julian Maurice <julian.maurice at biblibre.com> ---
So, the goal of this bug report is to go from attachment 102521 to
https://snipboard.io/lpETMg.jpg ?

I suggest to change the bug title then, because it was not clear to me. From my
point of view the updatedatabase is already stopped gracefully (with an ugly
error message, yes, but the error is handled and shown to the user).

I agree that bug 27880 is out of scope here, but it can answer problem number 2
quite easily.

Maybe we can find an intermediate step before going to bug 27880, but without
having to rewrite everything twice.
For instance, keep the file naming conventions of 27880, but with the version
added. Something like:
20210305153137-201200013-create-table-foo.pl (I prefer .pl over .pm because
there is no need to duplicate the name inside the file)
The database version can still be extracted from the file name, like in your
3rd patch. And the upgrade path to 27880 should be straightforward

Is that what you had in mind when you said "- move forward with my patches with
Julian's idea in mind (adjustments are needed)" ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list