From 9c5e3ef1c95148b650f75bb2617cc4a11589f867 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 11 Nov 2021 07:16:34 -0500 Subject: [PATCH] Bug 29386: DBRev 20.11.11.001 Signed-off-by: Kyle M Hall (cherry picked from commit 78e28dc804d379f7409b553afe5851a8a4a7442b) Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_29386.pl | 14 -------------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 15 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_29386.pl diff --git a/Koha.pm b/Koha.pm index adbf81a861..b411223523 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.11.11.000"; +$VERSION = "20.11.11.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_29386.pl b/installer/data/mysql/atomicupdate/bug_29386.pl deleted file mode 100755 index ba57d823a1..0000000000 --- a/installer/data/mysql/atomicupdate/bug_29386.pl +++ /dev/null @@ -1,14 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "29386", - description => "Extend background_jobs.data to LONGTEXT", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - $dbh->do(q| - ALTER TABLE background_jobs - CHANGE COLUMN `data` `data` LONGTEXT DEFAULT NULL - |); - }, -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c2520546b6..287739c8c0 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23716,6 +23716,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "", "Koha 20.11.11 release" ); } +$DBversion = '20.11.11.001'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + ALTER TABLE background_jobs + CHANGE COLUMN `data` `data` LONGTEXT DEFAULT NULL + |); + NewVersion( $DBversion, "29386", "Extend background_jobs.data to LONGTEXT" ); +} + # 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