From 9dd87e9b73e9b8999b35a3b9cb7fc0583cd79767 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Jan 2021 13:44:51 +0000 Subject: [PATCH] Bug 27491: DBRev 20.12.00.005 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- ...ce_opaclanguages_with_OPAClanguages_syspref.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 6 ++++++ 3 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_27491-replace_opaclanguages_with_OPAClanguages_syspref.perl diff --git a/Koha.pm b/Koha.pm index f52c02d006..3f97959709 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 = "20.12.00.004"; +$VERSION = "20.12.00.005"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27491-replace_opaclanguages_with_OPAClanguages_syspref.perl b/installer/data/mysql/atomicupdate/bug_27491-replace_opaclanguages_with_OPAClanguages_syspref.perl deleted file mode 100644 index 1713cab985..0000000000 --- a/installer/data/mysql/atomicupdate/bug_27491-replace_opaclanguages_with_OPAClanguages_syspref.perl +++ /dev/null @@ -1,13 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: - $dbh->do(q{UPDATE systempreferences set variable="OPACLanguages" WHERE variable="opaclanguages"}); - - # or perform some test and warn - # if( !column_exists( 'biblio', 'biblionumber' ) ) { - # warn "There is something wrong"; - # } - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 27491, "Description"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 48170dab1f..8ef697a7a4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23449,6 +23449,12 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 27485, "Rename system preference 'gist' to 'TaxRates'"); } +$DBversion = '20.12.00.005'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{UPDATE systempreferences set variable="OPACLanguages" WHERE variable="opaclanguages"}); + NewVersion( $DBversion, 27491, "Rename system preference 'opaclanguages' to 'OPACLanguages'"); +} + # 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