|
@@ -2,7 +2,7 @@
|
|
|
库名: scheduler
|
|
|
create table if not exists `task`(
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
- `task_name` varchar(100),
|
|
|
+ `task_name` varchar(255),
|
|
|
`task_cmd` text,
|
|
|
`task_param` text,
|
|
|
`task_status` int DEFAULT 0 comment '0 Waiting, 1 Sending, 2 Sent, 3 FileDownloadException, 4 CommandExecuteException, 5 Finished',
|
|
@@ -30,7 +30,7 @@ create table if not exists `download`(
|
|
|
create table if not exists `task`(
|
|
|
`tid` int NOT NULL AUTO_INCREMENT,
|
|
|
`id` int NOT NULL,
|
|
|
- `task_name` varchar(100),
|
|
|
+ `task_name` varchar(255),
|
|
|
`task_cmd` text,
|
|
|
`task_param` text,
|
|
|
`task_status` int comment '0 Waiting, 1 Success, -1 downloadError, -2 execute error',
|
|
@@ -46,7 +46,7 @@ create table if not exists `download`(
|
|
|
`tid` int NOT NULL AUTO_INCREMENT,
|
|
|
`id` int NOT NULL comment '服务器端下载任务id',
|
|
|
`task_id` int,
|
|
|
- `task_url` varchar(255),
|
|
|
+ `task_url` text,
|
|
|
`local_dir` text,
|
|
|
`downloaded_bytes` long,
|
|
|
`file_bytes` long,
|