[Koha-bugs] [Bug 28301] Add ability to force re-run of a particular DB update

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 7 15:11:51 CEST 2021


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 120689
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120689&action=edit
Bug 28301: Add forced run of particular DB update

This patch adds a --forcedversion option to the updatedatabase script
in order to allow testing of a particular update

To test:
1 - Apply patch
2 - Pick a DB update that will fail if rerun
3 - perl /kohadevbox/koha/installer/data/mysql/updatedatabase.pl
--forcedversion="3.21.00.041"
4 - Confirm it ran, you should get an error :-)
5 - Check the version system preference, confirm it is unchanged
    SELECT value FROM systempreference WHERE variable='Version';

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


More information about the Koha-bugs mailing list