Commit a270c55150d4bbec1289f62ac56274c8ad13855c
1 parent
08a8adb8
KTC-239
"CLONE -Performance has become tragically slow (SUP-443)" Updated. Added the @ sign in front of id when inserting. Committed by: Martin Kirsten Reviewed by: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7794 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
sql/mysql/upgrade/3.5.2/scheduler_tasks.sql
| ... | ... | @@ -3,9 +3,9 @@ ALTER TABLE `scheduler_tasks` ADD `status` ENUM( 'enabled', 'disabled', 'sy |
| 3 | 3 | UPDATE `scheduler_tasks` SET `status` = 'system' WHERE `task` = 'Indexing' OR `task` = 'Index Migration' OR `task` = 'Index Optimisation'; |
| 4 | 4 | |
| 5 | 5 | select @id:=ifnull(max(id),0)+1 from scheduler_tasks; |
| 6 | -INSERT INTO `scheduler_tasks` VALUES (id,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01',NULL,0,'disabled'); | |
| 6 | +INSERT INTO `scheduler_tasks` VALUES (@id,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01',NULL,0,'disabled'); | |
| 7 | 7 | |
| 8 | 8 | select @id:=max(id)+1 from scheduler_tasks; |
| 9 | -INSERT INTO `scheduler_tasks` VALUES (id,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01',NULL,0,'disabled'); | |
| 9 | +INSERT INTO `scheduler_tasks` VALUES (@id,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01',NULL,0,'disabled'); | |
| 10 | 10 | |
| 11 | 11 | UPDATE zseq_scheduler_tasks set id=@id; |
| 12 | 12 | \ No newline at end of file | ... | ... |