Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
b1c5768d
Commit
b1c5768d
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
NEW Add fields into llx_cronjobs to be able to use job table to queue
one shot jobs.
parent
6dc6bab5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/migration/3.8.0-3.9.0.sql
+6
-1
6 additions, 1 deletion
htdocs/install/mysql/migration/3.8.0-3.9.0.sql
htdocs/install/mysql/tables/llx_cronjob.sql
+17
-12
17 additions, 12 deletions
htdocs/install/mysql/tables/llx_cronjob.sql
with
23 additions
and
13 deletions
htdocs/install/mysql/migration/3.8.0-3.9.0.sql
+
6
−
1
View file @
b1c5768d
...
@@ -55,6 +55,11 @@ ALTER TABLE llx_societe_commerciaux ADD COLUMN import_key varchar(14) AFTER fk_u
...
@@ -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
,
...
@@ -439,4 +444,4 @@ INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, nc
...
@@ -439,4 +444,4 @@ INSERT INTO llx_c_departements ( code_departement, fk_region, cheflieu, tncc, nc
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'109'
,
5209
,
''
,
0
,
''
,
'Madre de Dios'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'109'
,
5209
,
''
,
0
,
''
,
'Madre de Dios'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'110'
,
5209
,
''
,
0
,
''
,
'Manuripi'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'110'
,
5209
,
''
,
0
,
''
,
'Manuripi'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'111'
,
5209
,
''
,
0
,
''
,
'Nicolás Suárez'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'111'
,
5209
,
''
,
0
,
''
,
'Nicolás Suárez'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'112'
,
5209
,
''
,
0
,
''
,
'General Federico Román'
,
1
);
INSERT
INTO
llx_c_departements
(
code_departement
,
fk_region
,
cheflieu
,
tncc
,
ncc
,
nom
,
active
)
VALUES
(
'112'
,
5209
,
''
,
0
,
''
,
'General Federico Román'
,
1
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/tables/llx_cronjob.sql
+
17
−
12
View file @
b1c5768d
...
@@ -26,27 +26,32 @@ CREATE TABLE llx_cronjob
...
@@ -26,27 +26,32 @@ CREATE TABLE llx_cronjob
jobtype
varchar
(
10
)
NOT
NULL
,
jobtype
varchar
(
10
)
NOT
NULL
,
label
text
NOT
NULL
,
label
text
NOT
NULL
,
command
varchar
(
255
),
command
varchar
(
255
),
classesname
varchar
(
255
),
classesname
varchar
(
255
),
objectname
varchar
(
255
),
objectname
varchar
(
255
),
methodename
varchar
(
255
),
methodename
varchar
(
255
),
params
text
,
params
text
,
md5params
varchar
(
32
),
md5params
varchar
(
32
),
module_name
varchar
(
255
),
module_name
varchar
(
255
),
priority
integer
DEFAULT
0
,
priority
integer
DEFAULT
0
,
datelastrun
datetime
,
-- date last run and when should be next
datelastrun
datetime
,
-- date last run and when should be next
datenextrun
datetime
,
-- job will be run if current date higher that this date
datenextrun
datetime
,
-- job will be run if current date higher that this date
datestart
datetime
,
-- before this date no jobs will be run
datestart
datetime
,
-- before this date no jobs will be run
dateend
datetime
,
-- after this date, no more jobs will be run
dateend
datetime
,
-- after this date, no more jobs will be run
datelastresult
datetime
,
datelastresult
datetime
,
lastresult
text
,
lastresult
text
,
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
,
note
text
,
fk_mailing
integer
DEFAULT
NULL
,
-- id of emailing if job was queued to send mass emailing
note
text
,
libname
varchar
(
255
),
libname
varchar
(
255
),
entity
integer
DEFAULT
0
entity
integer
DEFAULT
0
)
ENGINE
=
innodb
;
)
ENGINE
=
innodb
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment