https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34088
David Cook <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152543|0 |1 is obsolete| | --- Comment #4 from David Cook <[email protected]> --- Created attachment 152995 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152995&action=edit Bug 34088: Short circuit database upgrade check If the database version and the code version are the same, we should short circuit and exit immediately. This patch adds the Koha::Installer module which can very quickly check if an update is needed (based off database version and code version). It also moves the logic for C4::Installer::TransformToNum to Koha::Installer::TransformToNum for performance reasons. Test plan: 1. Apply patch 2. Run `time koha-upgrade-schema kohadev` 3. Note that it completes in less than .1 seconds 4. To test C4::Installer, change the database Version to a number slightly behind the code version, and run `time koha-upgrade-schema kohadev` 5. Note that the correct version update is processed -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
