From a18b12ea7f52d5d017cb0f74723cbb50b6d04749 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 Oct 2017 14:29:41 -0300 Subject: [PATCH] Bug 19043: DBRev 17.06.00.012 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug19043.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug19043.perl diff --git a/Koha.pm b/Koha.pm index 272e194c56..6cb1d53f49 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.06.00.011"; +$VERSION = "17.06.00.012"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug19043.perl b/installer/data/mysql/atomicupdate/bug19043.perl deleted file mode 100644 index 807e2bf48f..0000000000 --- a/installer/data/mysql/atomicupdate/bug19043.perl +++ /dev/null @@ -1,13 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - my $where = q|host='clio-db.cc.columbia.edu' AND port=7090|; - my $sql = "SELECT COUNT(*) FROM z3950servers WHERE $where"; - my ( $cnt ) = $dbh->selectrow_array( $sql ); - if( $cnt ) { - $dbh->do( "DELETE FROM z3950servers WHERE $where" ); - print "Removed $cnt Z39.50 target(s) for Columbia University\n"; - } - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 19043 - Z39.50 target for Columbia University is no longer publicly available.)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 17eb074320..536f40eafb 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14708,6 +14708,20 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 13766 - Make ean mediumtext and add ean indexes)\n"; } +$DBversion = '17.06.00.012'; +if( CheckVersion( $DBversion ) ) { + my $where = q|host='clio-db.cc.columbia.edu' AND port=7090|; + my $sql = "SELECT COUNT(*) FROM z3950servers WHERE $where"; + my ( $cnt ) = $dbh->selectrow_array( $sql ); + if( $cnt ) { + $dbh->do( "DELETE FROM z3950servers WHERE $where" ); + print "Removed $cnt Z39.50 target(s) for Columbia University\n"; + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19043 - Z39.50 target for Columbia University is no longer publicly available.)\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