From e7d4c773be5cf1df275827270465f7f55b95ce02 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Feb 2018 16:16:57 -0300 Subject: [PATCH] Bug 19290: DBRev 17.12.00.018 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_19290.sql | 1 - installer/data/mysql/updatedatabase.pl | 12 +++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19290.sql diff --git a/Koha.pm b/Koha.pm index 6aeb766b70..7eb6309918 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 = "17.12.00.017"; +$VERSION = "17.12.00.018"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19290.sql b/installer/data/mysql/atomicupdate/bug_19290.sql deleted file mode 100644 index 67a64dff14..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19290.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1001302410..37573f120b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15564,7 +15564,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 17672 - Add damaged_on to items and deleteditems tables)\n"; } -# DEVELOPER PROCESS, search for anything to execute in the db_update directory +$DBversion = '17.12.00.018'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q| + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff client','YesNo') + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19290 - Add system preference BrowseResultSelection)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.20.1