Bug 29386: Extend background_jobs.data to LONGTEXT
TEXT is too small, we must extend it to allow bigger jobs. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
588cb367ba
commit
866fbfdb60
2 changed files with 15 additions and 1 deletions
14
installer/data/mysql/atomicupdate/bug_29386.pl
Executable file
14
installer/data/mysql/atomicupdate/bug_29386.pl
Executable file
|
@ -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
|
||||
|);
|
||||
},
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue