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.
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)