Cronjobs ready for future.

This commit is contained in:
Laurent Destailleur 2022-06-03 01:42:10 +02:00
parent 69a7b01f20
commit 91a1f97029
2 changed files with 7 additions and 4 deletions

View File

@ -403,3 +403,5 @@ ALTER TABLE llx_extrafields ADD COLUMN css varchar(128);
ALTER TABLE llx_extrafields ADD COLUMN cssview varchar(128);
ALTER TABLE llx_extrafields ADD COLUMN csslist varchar(128);
ALTER TABLE llx_cronjob ADD COLUMN email_alert varchar(128);

View File

@ -23,12 +23,12 @@ CREATE TABLE llx_cronjob
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
datec datetime,
jobtype varchar(10) NOT NULL,
jobtype varchar(10) NOT NULL, -- 'method', 'function' or 'command'
label text NOT NULL,
command varchar(255),
classesname varchar(255),
classesname varchar(255), -- when jobtype is 'method', name of the class file containing the method.
objectname varchar(255),
methodename varchar(255),
methodename varchar(255), -- name of method or function
params text,
md5params varchar(32),
module_name varchar(255),
@ -52,7 +52,8 @@ CREATE TABLE llx_cronjob
fk_user_mod integer DEFAULT NULL,
fk_mailing integer DEFAULT NULL, -- id of emailing if job was queued to send mass emailing
note text,
libname varchar(255),
libname varchar(255), -- when jobtype is 'function', name of the library file containing the function.
email_alert varchar(128), -- email for alert
entity integer DEFAULT 0
)ENGINE=innodb;