Commit fa27de6ba42f99adaeba422364219f8718e0eb8a
1 parent
81b78788
KTS-2687
"update the db install/upgrade scripts so that the php scripts that must be scheduled are referenced correctly" Updated. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7669 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
16 additions
and
1 deletions
sql/mysql/install/data.sql
No preview for this file type
sql/mysql/upgrade/3.5.1/indexing_tasks_registration.sql
0 → 100644
| 1 | +DELETE FROM scheduler_tasks where task in ('Indexing','Index Migration','Index Optimisation'); | |
| 2 | + | |
| 3 | +select @id:=ifnull(max(id),0)+1 from scheduler_tasks; | |
| 4 | +INSERT INTO `scheduler_tasks` (id,task,script_url,script_params,is_complete,frequency,run_time,previous_run_time,run_duration) VALUES (@id,'Indexing','search2/indexing/bin/cronIndexer.php','',0,'1min','2007-10-01',NULL,0); | |
| 5 | + | |
| 6 | +select @id:=max(id)+1 from scheduler_tasks; | |
| 7 | +INSERT INTO `scheduler_tasks` (id,task,script_url,script_params,is_complete,frequency,run_time,previous_run_time,run_duration) VALUES (@id,'Index Migration','search2/indexing/bin/cronMigration.php','',0,'5mins','2007-10-01',NULL,0); | |
| 8 | + | |
| 9 | +select @id:=max(id)+1 from scheduler_tasks; | |
| 10 | +INSERT INTO `scheduler_tasks` (id,task,script_url,script_params,is_complete,frequency,run_time,previous_run_time,run_duration) VALUES (@id,'Index Optimisation','search2/indexing/bin/optimise.php','',0,'weekly','2007-10-01',NULL,0); | |
| 11 | + | |
| 12 | +UPDATE zseq_scheduler_tasks set id=@id; | |
| 0 | 13 | \ No newline at end of file | ... | ... |