From 5e7a78475a7f8fdb178b8beb4c84d781b5f09a72 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Mar 2017 18:36:55 +0000 Subject: [PATCH] Bug 16530 - DBRev 16.12.00.013 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../bug_16530-add_CircSidebar_syspref.sql | 1 - installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_16530-add_CircSidebar_syspref.sql diff --git a/Koha.pm b/Koha.pm index 77f0575dee..b1d7a9b02f 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 = "16.12.00.012"; +$VERSION = "16.12.00.013"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_16530-add_CircSidebar_syspref.sql b/installer/data/mysql/atomicupdate/bug_16530-add_CircSidebar_syspref.sql deleted file mode 100644 index 09a8e4b95e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_16530-add_CircSidebar_syspref.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('CircSidebar','0','','Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 12c3b26941..7a80e41025 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13948,6 +13948,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 14764 - Add OPAC News branch selector)\n"; } +$DBversion = "16.12.00.013"; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) + VALUES ('CircSidebar','0','','Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'); + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 16530 - Add a circ sidebar navigation menu)\n"; +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5