[Koha-bugs] [Bug 34881] Database update for bug 28854 isn't fully idempotent

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 11 15:42:47 CEST 2023


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

Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emily.lamancusa at montgomeryc
                   |                            |ountymd.gov

--- Comment #5 from Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov> ---
The subquery in line 24 of the patch is missing its close parenthesis at the
end - that's probably what's causing the error.

I agree that it feels off to put the system preference revisions (and the
not-for-loan AV revision for that matter) all inside of the IF statement that
depends only on the Lost AV.

Can we safely assume that either the whole dbrev has been run, or none of it
has been run? If so, why not put everything inside the if block that's already
there:
10  if( !TableExists( 'item_bundles' ) ) {


If not, then shouldn't we check each thing separately? Uploading an alternative
patch for how this could work...

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


More information about the Koha-bugs mailing list