From 46a403a356c6ec4a54cac445659e66ff332a75f3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Jan 2021 13:44:51 +0000 Subject: [PATCH] Bug 27485: DBRev 20.12.00.004 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../atomicupdate/bug_27485-rename_syspref.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 6 ++++++ 3 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_27485-rename_syspref.perl diff --git a/Koha.pm b/Koha.pm index f0a92f2051..f52c02d006 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.003"; +$VERSION = "20.12.00.004"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27485-rename_syspref.perl b/installer/data/mysql/atomicupdate/bug_27485-rename_syspref.perl deleted file mode 100644 index 2887d5d82a..0000000000 --- a/installer/data/mysql/atomicupdate/bug_27485-rename_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="TaxRates" WHERE variable="gist"}); - - # 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, XXXXX, "Description"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 217341892c..48170dab1f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23443,6 +23443,12 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 27349, "Update type for Mana system preference to Choice"); } +$DBversion = '20.12.00.004'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{UPDATE systempreferences set variable="TaxRates" WHERE variable="gist"}); + NewVersion( $DBversion, 27485, "Rename system preference 'gist' to 'TaxRates'"); +} + # 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