From a9d5147dfd26539dc13989d82faa54032ba26600 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 7 Oct 2019 12:45:23 +0100 Subject: [PATCH] Bug 23007: DBRev 19.06.00.034 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_23007_add_transfersblockcirc_preference.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl diff --git a/Koha.pm b/Koha.pm index 20d233d7e3..ba47782034 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 = "19.06.00.033"; +$VERSION = "19.06.00.034"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl b/installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl deleted file mode 100644 index bb24f447b6..0000000000 --- a/installer/data/mysql/atomicupdate/bug_23007_add_transfersblockcirc_preference.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo') - }); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 23007: Make transfer modals optionally block circ)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8c71f3e4c9..ca5357da7c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -19589,6 +19589,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 23686: Add OnSiteCheckoutAutoCheck system preference)\n"; } +$DBversion = '19.06.00.034'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo') + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 23007: Make transfer modals optionally block circ)\n"; +} + # 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.20.1