From b0bdaab6669e2f8912f83828973589aa0fd57cd5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Jan 2021 08:01:04 +0000 Subject: [PATCH] Bug 27486: DBRev 20.12.00.007 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_27486-replace-delimiter-with-CSVDelimiter.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 6 ++++++ 3 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_27486-replace-delimiter-with-CSVDelimiter.perl diff --git a/Koha.pm b/Koha.pm index d2206842d6..ae621f3d72 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.006"; +$VERSION = "20.12.00.007"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27486-replace-delimiter-with-CSVDelimiter.perl b/installer/data/mysql/atomicupdate/bug_27486-replace-delimiter-with-CSVDelimiter.perl deleted file mode 100644 index 7d40c66866..0000000000 --- a/installer/data/mysql/atomicupdate/bug_27486-replace-delimiter-with-CSVDelimiter.perl +++ /dev/null @@ -1,8 +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="CSVDelimiter" WHERE variable="delimiter"}); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 27486, "Renaming 'delimiter' syspref to 'CSVDelimiter'"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e6d2671039..fbdfef1d7f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23461,6 +23461,12 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 27487, "Rename system preference 'reviewson' to 'OPACComments"); } +$DBversion = '20.12.00.007'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{UPDATE systempreferences set variable="CSVDelimiter" WHERE variable="delimiter"}); + NewVersion( $DBversion, 27486, "Renaming system preference 'delimiter' to 'CSVDelimiter'"); +} + # 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