Bugzilla – Attachment 127349 Details for
Bug 29386
background jobs table data field is a TEXT which is too small
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29386: Extend background_jobs.data to LONGTEXT
Bug-29386-Extend-backgroundjobsdata-to-LONGTEXT.patch (text/plain), 1.86 KB, created by
Marcel de Rooy
on 2021-11-05 09:32:54 UTC
(
hide
)
Description:
Bug 29386: Extend background_jobs.data to LONGTEXT
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-11-05 09:32:54 UTC
Size:
1.86 KB
patch
obsolete
>From 982d1f757f08114f8ba48fb48de316fb75dad5ca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 4 Nov 2021 10:44:28 +0100 >Subject: [PATCH] Bug 29386: Extend background_jobs.data to LONGTEXT >Content-Type: text/plain; charset=utf-8 > >TEXT is too small, we must extend it to allow bigger jobs. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_29386.pl | 14 ++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 15 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_29386.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_29386.pl b/installer/data/mysql/atomicupdate/bug_29386.pl >new file mode 100755 >index 0000000000..ba57d823a1 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_29386.pl >@@ -0,0 +1,14 @@ >+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/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 64a06a084b..ccf99df9e0 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -944,7 +944,7 @@ CREATE TABLE `background_jobs` ( > `size` int(11) DEFAULT NULL, > `borrowernumber` int(11) DEFAULT NULL, > `type` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, >- `data` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, >+ `data` LONGTEXT COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `enqueued_on` datetime DEFAULT NULL, > `started_on` datetime DEFAULT NULL, > `ended_on` datetime DEFAULT NULL, >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29386
:
127288
| 127349