From e4fa2eafda0575c39ca6deb7e00dc887921f77b3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Sep 2020 14:16:53 +0000 Subject: [PATCH] Bug 25261: DBRev 20.06.00.043 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_25261.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25261.perl diff --git a/Koha.pm b/Koha.pm index 26a5ac404e..b6bb0b0e0d 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "20.06.00.042"; +$VERSION = "20.06.00.043"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25261.perl b/installer/data/mysql/atomicupdate/bug_25261.perl deleted file mode 100644 index e6f48dacaf..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25261.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'YesNo') }); - - NewVersion( $DBversion, 25261, "Add CircConfirmItemParts syspref"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1b6da8e8b0..63a54c2114 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22867,6 +22867,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 25776, "Add letter.updated_on"); } +$DBversion = '20.06.00.043'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'YesNo') + }); + + NewVersion( $DBversion, 25261, "Add CircConfirmItemParts syspref"); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.11.4.GIT