From aad473ff26ffb3e5bef6f3330c828a29690d8a2b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 10 Mar 2020 15:19:34 +0000 Subject: [PATCH] Bug 17374: DBRev 19.12.040 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- ...7374_update_DefaultPatronSearchFields_description.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug17374_update_DefaultPatronSearchFields_description.perl diff --git a/Koha.pm b/Koha.pm index 18d8543d89..7569ed1ff3 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 = "19.12.00.039"; +$VERSION = "19.12.00.040"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug17374_update_DefaultPatronSearchFields_description.perl b/installer/data/mysql/atomicupdate/bug17374_update_DefaultPatronSearchFields_description.perl deleted file mode 100644 index 2a8122a824..0000000000 --- a/installer/data/mysql/atomicupdate/bug17374_update_DefaultPatronSearchFields_description.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "UPDATE systempreferences SET explanation = 'Comma separated list defining the default fields to be used during a patron search using the \"standard\" option. If empty Koha will default to \"surname,firstname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page.' WHERE variable='DefaultPatronSearchFields' " ); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 17374 - update description of DefaultPatronSearchFields)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e5534c4f89..26c254206d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21092,6 +21092,14 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 17845 - Drop unused table printers and branchprinter column)\n"; } +$DBversion = '19.12.00.040'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "UPDATE systempreferences SET explanation = 'Comma separated list defining the default fields to be used during a patron search using the \"standard\" option. If empty Koha will default to \"surname,firstname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page.' WHERE variable='DefaultPatronSearchFields' " ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 17374 - update description of DefaultPatronSearchFields)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5