NEW Add fields into llx_cronjobs to be able to use job table to queue
one shot jobs.
This commit is contained in:
parent
6dc6bab556
commit
b1c5768de9
@ -55,6 +55,11 @@ ALTER TABLE llx_societe_commerciaux ADD COLUMN import_key varchar(14) AFTER fk_u
|
|||||||
|
|
||||||
ALTER TABLE llx_categorie ADD COLUMN color varchar(8);
|
ALTER TABLE llx_categorie ADD COLUMN color varchar(8);
|
||||||
|
|
||||||
|
ALTER TABLE llx_cronjob ADD COLUMN maxrun integer NOT NULL DEFAULT 0;
|
||||||
|
ALTER TABLE llx_cronjob ADD COLUMN autodelete integer DEFAULT 0;
|
||||||
|
ALTER TABLE llx_cronjob ADD COLUMN fk_mailing integer DEFAULT NULL;
|
||||||
|
|
||||||
|
|
||||||
create table llx_overwrite_trans
|
create table llx_overwrite_trans
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|||||||
@ -42,11 +42,16 @@ CREATE TABLE llx_cronjob
|
|||||||
lastoutput text,
|
lastoutput text,
|
||||||
unitfrequency integer NOT NULL DEFAULT 0,
|
unitfrequency integer NOT NULL DEFAULT 0,
|
||||||
frequency integer NOT NULL DEFAULT 0,
|
frequency integer NOT NULL DEFAULT 0,
|
||||||
nbrun integer,
|
maxrun integer NOT NULL DEFAULT 0, -- set this to 1 for a job queued for on run only
|
||||||
|
nbrun integer, -- nb of run complete (failed or not)
|
||||||
|
autodelete integer DEFAULT 0, -- Job can be delete once finished
|
||||||
status integer NOT NULL DEFAULT 1,
|
status integer NOT NULL DEFAULT 1,
|
||||||
fk_user_author integer DEFAULT NULL,
|
fk_user_author integer DEFAULT NULL,
|
||||||
fk_user_mod integer DEFAULT NULL,
|
fk_user_mod integer DEFAULT NULL,
|
||||||
|
fk_mailing integer DEFAULT NULL, -- id of emailing if job was queued to send mass emailing
|
||||||
note text,
|
note text,
|
||||||
libname varchar(255),
|
libname varchar(255),
|
||||||
entity integer DEFAULT 0
|
entity integer DEFAULT 0
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user