From: Tim Düsterhus Date: Fri, 17 Jun 2016 17:22:07 +0000 (+0200) Subject: Change type of wcf1_background_job.job to MEDIUMBLOB X-Git-Tag: 3.0.0_Beta_1~1402 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d78617821a61d01d6e2bdebd71a2b099ee153221;p=GitHub%2FWoltLab%2FWCF.git Change type of wcf1_background_job.job to MEDIUMBLOB When developing naturally some jobs tend to fail due to a bug, usually one wants to reset the time to allow an immediate execution once the bug is fixed. With a MEDIUMTEXT column however it is too easy to accidentally destroy the whole job, as the serialized data structure contains null bytes that will get mangled when not paying attention. --- diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 8c39f85dd1..7927e2168e 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -206,7 +206,7 @@ CREATE TABLE wcf1_attachment ( DROP TABLE IF EXISTS wcf1_background_job; CREATE TABLE wcf1_background_job ( jobID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - job MEDIUMTEXT NOT NULL, + job MEDIUMBLOB NOT NULL, status ENUM('ready', 'processing') NOT NULL DEFAULT 'ready', time INT(10) NOT NULL, KEY (status, time)