|
|
@@ -358,17 +358,4 @@ UNLOCK TABLES;
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
|
|
--- Dump completed on 2019-04-24 21:20:52
|
|
|
-
|
|
|
--- 定时任务
|
|
|
-show variables like '%sche%';
|
|
|
-set global event_scheduler =1;
|
|
|
-CREATE PROCEDURE cancel ()
|
|
|
- update ticket SET state =2 WHERE minute(timediff(now(),time))>15 and state=0;
|
|
|
-create event if not exists e_cancel
|
|
|
- on schedule every 30 second
|
|
|
- on completion preserve
|
|
|
-do call cancel();
|
|
|
-
|
|
|
-alter event e_cancel ON
|
|
|
-COMPLETION PRESERVE ENABLE;
|
|
|
+-- Dump completed on 2019-04-24 21:20:52
|