summaryrefslogtreecommitdiff
path: root/maintenance/sqlite/archives/patch-job_token.sql
blob: 4e4d28fde8f2fd8a497fe324b4ca07f99bfb4fc4 (plain)
1
2
3
4
5
6
7
8
ALTER TABLE /*_*/job ADD COLUMN job_random integer unsigned NOT NULL default 0;
ALTER TABLE /*_*/job ADD COLUMN job_token varbinary(32) NOT NULL default '';
ALTER TABLE /*_*/job ADD COLUMN job_sha1 varbinary(32) NOT NULL default '';
ALTER TABLE /*_*/job ADD COLUMN job_token_timestamp varbinary(14) NULL default NULL;

CREATE INDEX /*i*/job_sha1 ON /*_*/job (job_sha1);
CREATE INDEX /*i*/job_cmd_token ON /*_*/job (job_cmd,job_token,job_random);