From 33660ea283a007b668d9f230994be1869b0ac629 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jun 2019 16:07:39 +0100 Subject: [PATCH] Bug 22867: DBRev 19.06.00.003 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_22867-pipe_delimited_UniqueItemFields.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 9 ++++++++- 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22867-pipe_delimited_UniqueItemFields.perl diff --git a/Koha.pm b/Koha.pm index 5e5d01e632..be7ff89734 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.06.00.002"; +$VERSION = "19.06.00.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22867-pipe_delimited_UniqueItemFields.perl b/installer/data/mysql/atomicupdate/bug_22867-pipe_delimited_UniqueItemFields.perl deleted file mode 100644 index 5ba17794b3..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22867-pipe_delimited_UniqueItemFields.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{UPDATE systempreferences SET value = REPLACE( value, ' ', '|' ) WHERE variable = 'UniqueItemFields'; }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 22867 - UniqueItemFields preference value should be pipe-delimited)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1b2b18769b..1d68a30617 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -18712,9 +18712,16 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 10215 - Increase the size of opacnote and librariannote for table subscriptionhistory)\n"; } +$DBversion = '19.06.00.003'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{UPDATE systempreferences SET value = REPLACE( value, ' ', '|' ) WHERE variable = 'UniqueItemFields'; }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 22867 - UniqueItemFields preference value should be pipe-delimited)\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/'; opendir( my $dirh, $update_dir ); foreach my $file ( sort readdir $dirh ) { -- 2.39.5