Browse Source

Update 'scheduler/src/main/resources/table.sql'

jxing 5 years ago
parent
commit
1c82b66a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scheduler/src/main/resources/table.sql

+ 1 - 1
scheduler/src/main/resources/table.sql

@@ -5,7 +5,7 @@ create table if not exists `task`(
     `task_name` varchar(100),
     `task_cmd` text,
     `task_param` text,
-    `task_status` int comment '0 Waiting, 1 Sending, 2 Sent, 3 FileDownloadException, 4 CommandExecuteException, 5 Finished',
+    `task_status` int DEFAULT 0 comment '0 Waiting, 1 Sending, 2 Sent, 3 FileDownloadException, 4 CommandExecuteException, 5 Finished',
     `task_result_json` text,
 	`task_sent_time` long comment '客户端成功接收任务的时间',
     `task_last_client` varchar(255),