From 52a851f32d072985a0ed84a17902409e0d4f6b35 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 8 Nov 2018 15:42:53 +0000 Subject: [PATCH] Bug 20312: DBRev 18.06.00.057 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_20312.perl | 12 ------------ installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20312.perl diff --git a/Koha.pm b/Koha.pm index 8611f60582..720fb94742 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 = "18.06.00.056"; +$VERSION = "18.06.00.057"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20312.perl b/installer/data/mysql/atomicupdate/bug_20312.perl deleted file mode 100644 index 579a839483..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20312.perl +++ /dev/null @@ -1,12 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # System preferences - $dbh->do(q{ - INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) - VALUES ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'); - }); - - # Always end with this (adjust the bug info) - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 20312 - Add showLastPatron systempreference)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index eb576533bb..26b8f7e863 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17034,6 +17034,17 @@ if( CheckVersion( $DBversion ) ) { } +$DBversion = '18.06.00.057'; +if( CheckVersion( $DBversion ) ) { + # System preferences + $dbh->do(q{ + INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) + VALUES ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'); + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20312 - Add showLastPatron systempreference)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5