From 9f961c963d2a3131b3377bb444d4060ca3b74e8e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Feb 2018 15:40:42 -0300 Subject: [PATCH] Bug 20133: DBRev 17.12.00.010 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_20133.perl | 10 ---------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20133.perl diff --git a/Koha.pm b/Koha.pm index 0f0c91b600..1042792cda 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.009"; +$VERSION = "17.12.00.010"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20133.perl b/installer/data/mysql/atomicupdate/bug_20133.perl deleted file mode 100644 index 596fb630ca..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20133.perl +++ /dev/null @@ -1,10 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - if( !column_exists( 'library_groups', 'ft_hide_patron_info' ) ) { - $dbh->do( "ALTER TABLE library_groups ADD COLUMN ft_hide_patron_info tinyint(1) NOT NULL DEFAULT 0 AFTER description" ); - } - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug XXXXX - Add library_groups.ft_hide_patron_info)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d1cf34c480..484d4ff593 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15309,6 +15309,17 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 18403 - Add the view_borrower_infos_from_any_libraries permission )\n"; } +$DBversion = '17.12.00.010'; +if( CheckVersion( $DBversion ) ) { + + if( !column_exists( 'library_groups', 'ft_hide_patron_info' ) ) { + $dbh->do( "ALTER TABLE library_groups ADD COLUMN ft_hide_patron_info tinyint(1) NOT NULL DEFAULT 0 AFTER description" ); + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20133 - Add library_groups.ft_hide_patron_info)\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.2