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

            Bug ID: 42046
           Summary: Bug 30331 database update is not idempotent
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: 25.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

The DBRev for Bug 30331 is not idempotent:

my $base_period = C4::Context->preference('RenewalPeriodBase');

$dbh->do(
    q{
        UPDATE systempreferences SET variable = 'ManualRenewalPeriodBase' WHERE
variable = 'RenewalPeriodBase'
    }
);


When ran twice:

"ERROR: {UNKNOWN}: DBI Exception: DBD:
:db do failed: Duplicate entry 'ManualRenewalPeriodBase' for key 'PRIMARY' at
/kohadevbox/koha/C4/Installer.pm line 819"

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/

Reply via email to