From 72346502d9c7c61267cdd2ef2b2cedd3df980a00 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Jan 2021 08:01:04 +0000 Subject: [PATCH] Bug 27487: DBRev 20.12.00.006 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../data/mysql/atomicupdate/bug_27487-add_syspref.perl | 5 ----- installer/data/mysql/updatedatabase.pl | 6 ++++++ 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_27487-add_syspref.perl diff --git a/Koha.pm b/Koha.pm index 3f97959709..d2206842d6 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.005"; +$VERSION = "20.12.00.006"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27487-add_syspref.perl b/installer/data/mysql/atomicupdate/bug_27487-add_syspref.perl deleted file mode 100644 index 76cacb4485..0000000000 --- a/installer/data/mysql/atomicupdate/bug_27487-add_syspref.perl +++ /dev/null @@ -1,5 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{UPDATE systempreferences SET variable="OPACComments" WHERE variable="reviewson" }); - NewVersion( $DBversion, 27847, "Rename 'reviewson' to 'OPACComments"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8ef697a7a4..e6d2671039 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23455,6 +23455,12 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 27491, "Rename system preference 'opaclanguages' to 'OPACLanguages'"); } +$DBversion = '20.12.00.006'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{UPDATE systempreferences SET variable="OPACComments" WHERE variable="reviewson" }); + NewVersion( $DBversion, 27487, "Rename system preference 'reviewson' to 'OPACComments"); +} + # 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