@ -340,7 +340,7 @@ CREATE TABLE `t_ds_command` (
` executor_id ` int ( 11 ) DEFAULT NULL COMMENT ' executor id ' ,
` update_time ` datetime DEFAULT NULL COMMENT ' update time ' ,
` process_instance_priority ` int ( 11 ) DEFAULT ' 2 ' COMMENT ' process instance priority: 0 Highest,1 High,2 Medium,3 Low,4 Lowest ' ,
` worker_group ` varchar ( 64 ) COMMENT ' worker group ' ,
` worker_group ` varchar ( 255 ) COMMENT ' worker group ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` dry_run ` tinyint ( 4 ) DEFAULT ' 0 ' COMMENT ' dry run flag:0 normal, 1 dry run ' ,
` test_flag ` tinyint ( 4 ) DEFAULT null COMMENT ' test flag:0 normal, 1 test run ' ,
@ -395,7 +395,7 @@ CREATE TABLE `t_ds_error_command` (
` start_time ` datetime DEFAULT NULL COMMENT ' start time ' ,
` update_time ` datetime DEFAULT NULL COMMENT ' update time ' ,
` process_instance_priority ` int ( 11 ) DEFAULT ' 2 ' COMMENT ' process instance priority, 0 Highest,1 High,2 Medium,3 Low,4 Lowest ' ,
` worker_group ` varchar ( 64 ) COMMENT ' worker group ' ,
` worker_group ` varchar ( 255 ) COMMENT ' worker group ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` message ` text COMMENT ' message ' ,
` dry_run ` tinyint ( 4 ) DEFAULT ' 0 ' COMMENT ' dry run flag: 0 normal, 1 dry run ' ,
@ -444,7 +444,7 @@ DROP TABLE IF EXISTS `t_ds_process_definition_log`;
CREATE TABLE ` t_ds_process_definition_log ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' self-increasing id ' ,
` code ` bigint ( 20 ) NOT NULL COMMENT ' encoding ' ,
` name ` varchar ( 200 ) DEFAULT NULL COMMENT ' process definition name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' process definition name ' ,
` version ` int ( 11 ) DEFAULT ' 0 ' COMMENT ' process definition version ' ,
` description ` text COMMENT ' description ' ,
` project_code ` bigint ( 20 ) NOT NULL COMMENT ' project code ' ,
@ -472,7 +472,7 @@ DROP TABLE IF EXISTS `t_ds_task_definition`;
CREATE TABLE ` t_ds_task_definition ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' self-increasing id ' ,
` code ` bigint ( 20 ) NOT NULL COMMENT ' encoding ' ,
` name ` varchar ( 200 ) DEFAULT NULL COMMENT ' task definition name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' task definition name ' ,
` version ` int ( 11 ) DEFAULT ' 0 ' COMMENT ' task definition version ' ,
` description ` text COMMENT ' description ' ,
` project_code ` bigint ( 20 ) NOT NULL COMMENT ' project code ' ,
@ -483,7 +483,7 @@ CREATE TABLE `t_ds_task_definition` (
` flag ` tinyint ( 2 ) DEFAULT NULL COMMENT ' 0 not available, 1 available ' ,
` is_cache ` tinyint ( 2 ) DEFAULT ' 0 ' COMMENT ' 0 not available, 1 available ' ,
` task_priority ` tinyint ( 4 ) DEFAULT ' 2 ' COMMENT ' job priority ' ,
` worker_group ` varchar ( 200 ) DEFAULT NULL COMMENT ' worker grouping ' ,
` worker_group ` varchar ( 255 ) DEFAULT NULL COMMENT ' worker grouping ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` fail_retry_times ` int ( 11 ) DEFAULT NULL COMMENT ' number of failed retries ' ,
` fail_retry_interval ` int ( 11 ) DEFAULT NULL COMMENT ' failed retry interval ' ,
@ -508,7 +508,7 @@ DROP TABLE IF EXISTS `t_ds_task_definition_log`;
CREATE TABLE ` t_ds_task_definition_log ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' self-increasing id ' ,
` code ` bigint ( 20 ) NOT NULL COMMENT ' encoding ' ,
` name ` varchar ( 200 ) DEFAULT NULL COMMENT ' task definition name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' task definition name ' ,
` version ` int ( 11 ) DEFAULT ' 0 ' COMMENT ' task definition version ' ,
` description ` text COMMENT ' description ' ,
` project_code ` bigint ( 20 ) NOT NULL COMMENT ' project code ' ,
@ -519,7 +519,7 @@ CREATE TABLE `t_ds_task_definition_log` (
` flag ` tinyint ( 2 ) DEFAULT NULL COMMENT ' 0 not available, 1 available ' ,
` is_cache ` tinyint ( 2 ) DEFAULT ' 0 ' COMMENT ' 0 not available, 1 available ' ,
` task_priority ` tinyint ( 4 ) DEFAULT ' 2 ' COMMENT ' job priority ' ,
` worker_group ` varchar ( 200 ) DEFAULT NULL COMMENT ' worker grouping ' ,
` worker_group ` varchar ( 255 ) DEFAULT NULL COMMENT ' worker grouping ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` fail_retry_times ` int ( 11 ) DEFAULT NULL COMMENT ' number of failed retries ' ,
` fail_retry_interval ` int ( 11 ) DEFAULT NULL COMMENT ' failed retry interval ' ,
@ -547,7 +547,7 @@ CREATE TABLE `t_ds_task_definition_log` (
DROP TABLE IF EXISTS ` t_ds_process_task_relation ` ;
CREATE TABLE ` t_ds_process_task_relation ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' self-increasing id ' ,
` name ` varchar ( 200 ) DEFAULT NULL COMMENT ' relation name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' relation name ' ,
` project_code ` bigint ( 20 ) NOT NULL COMMENT ' project code ' ,
` process_definition_code ` bigint ( 20 ) NOT NULL COMMENT ' process code ' ,
` process_definition_version ` int ( 11 ) NOT NULL COMMENT ' process version ' ,
@ -571,7 +571,7 @@ CREATE TABLE `t_ds_process_task_relation` (
DROP TABLE IF EXISTS ` t_ds_process_task_relation_log ` ;
CREATE TABLE ` t_ds_process_task_relation_log ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' self-increasing id ' ,
` name ` varchar ( 200 ) DEFAULT NULL COMMENT ' relation name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' relation name ' ,
` project_code ` bigint ( 20 ) NOT NULL COMMENT ' project code ' ,
` process_definition_code ` bigint ( 20 ) NOT NULL COMMENT ' process code ' ,
` process_definition_version ` int ( 11 ) NOT NULL COMMENT ' process version ' ,
@ -623,7 +623,7 @@ CREATE TABLE `t_ds_process_instance` (
` executor_name ` varchar ( 64 ) DEFAULT NULL COMMENT ' execute user name ' ,
` history_cmd ` text COMMENT ' history commands of process instance operation ' ,
` process_instance_priority ` int ( 11 ) DEFAULT ' 2 ' COMMENT ' process instance priority. 0 Highest,1 High,2 Medium,3 Low,4 Lowest ' ,
` worker_group ` varchar ( 64 ) DEFAULT NULL COMMENT ' worker group id ' ,
` worker_group ` varchar ( 255 ) DEFAULT NULL COMMENT ' worker group id ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` timeout ` int ( 11 ) DEFAULT ' 0 ' COMMENT ' time out ' ,
` tenant_id ` int ( 11 ) NOT NULL DEFAULT ' -1 ' COMMENT ' tenant id ' ,
@ -648,7 +648,7 @@ CREATE TABLE `t_ds_process_instance` (
DROP TABLE IF EXISTS ` t_ds_project ` ;
CREATE TABLE ` t_ds_project ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' key ' ,
` name ` varchar ( 100 ) DEFAULT NULL COMMENT ' project name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' project name ' ,
` code ` bigint ( 20 ) NOT NULL COMMENT ' encoding ' ,
` description ` varchar ( 255 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL COMMENT ' creator id ' ,
@ -813,7 +813,7 @@ CREATE TABLE `t_ds_schedules` (
` warning_type ` tinyint ( 4 ) NOT NULL COMMENT ' Alarm type: 0 is not sent, 1 process is sent successfully, 2 process is sent failed, 3 process is sent successfully and all failures are sent ' ,
` warning_group_id ` int ( 11 ) DEFAULT NULL COMMENT ' alert group id ' ,
` process_instance_priority ` int ( 11 ) DEFAULT ' 2 ' COMMENT ' process instance priority:0 Highest,1 High,2 Medium,3 Low,4 Lowest ' ,
` worker_group ` varchar ( 64 ) DEFAULT ' ' COMMENT ' worker group id ' ,
` worker_group ` varchar ( 255 ) DEFAULT ' ' COMMENT ' worker group id ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` create_time ` datetime NOT NULL COMMENT ' create time ' ,
` update_time ` datetime NOT NULL COMMENT ' update time ' ,
@ -872,7 +872,7 @@ CREATE TABLE `t_ds_task_instance` (
` retry_interval ` int ( 4 ) DEFAULT NULL COMMENT ' retry interval when task failed ' ,
` max_retry_times ` int ( 2 ) DEFAULT NULL COMMENT ' max retry times ' ,
` task_instance_priority ` int ( 11 ) DEFAULT NULL COMMENT ' task instance priority:0 Highest,1 High,2 Medium,3 Low,4 Lowest ' ,
` worker_group ` varchar ( 64 ) DEFAULT NULL COMMENT ' worker group id ' ,
` worker_group ` varchar ( 255 ) DEFAULT NULL COMMENT ' worker group id ' ,
` environment_code ` bigint ( 20 ) DEFAULT ' -1 ' COMMENT ' environment code ' ,
` environment_config ` text COMMENT ' this config contains many environment variables config ' ,
` executor_id ` int ( 11 ) DEFAULT NULL ,
@ -921,7 +921,7 @@ DROP TABLE IF EXISTS `t_ds_udfs`;
CREATE TABLE ` t_ds_udfs ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' key ' ,
` user_id ` int ( 11 ) NOT NULL COMMENT ' user id ' ,
` func_name ` varchar ( 100 ) NOT NULL COMMENT ' UDF function name ' ,
` func_name ` varchar ( 255 ) NOT NULL COMMENT ' UDF function name ' ,
` class_name ` varchar ( 255 ) NOT NULL COMMENT ' class of udf ' ,
` type ` tinyint ( 4 ) NOT NULL COMMENT ' Udf function type ' ,
` arg_types ` varchar ( 255 ) DEFAULT NULL COMMENT ' arguments types ' ,
@ -990,7 +990,7 @@ CREATE TABLE `t_ds_worker_group` (
DROP TABLE IF EXISTS ` t_ds_version ` ;
CREATE TABLE ` t_ds_version ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` version ` varchar ( 200 ) NOT NULL ,
` version ` varchar ( 63 ) NOT NULL ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` version_UNIQUE ` ( ` version ` )
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8 COLLATE = utf8_bin COMMENT = ' version ' ;
@ -1020,8 +1020,8 @@ SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
DROP TABLE IF EXISTS ` t_ds_plugin_define ` ;
CREATE TABLE ` t_ds_plugin_define ` (
` id ` int NOT NULL AUTO_INCREMENT ,
` plugin_name ` varchar ( 100 ) NOT NULL COMMENT ' the name of plugin eg: email ' ,
` plugin_type ` varchar ( 100 ) NOT NULL COMMENT ' plugin type . alert=alert plugin, job=job plugin ' ,
` plugin_name ` varchar ( 255 ) NOT NULL COMMENT ' the name of plugin eg: email ' ,
` plugin_type ` varchar ( 63 ) NOT NULL COMMENT ' plugin type . alert=alert plugin, job=job plugin ' ,
` plugin_params ` text COMMENT ' plugin params ' ,
` create_time ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
` update_time ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
@ -1039,7 +1039,7 @@ CREATE TABLE `t_ds_alert_plugin_instance` (
` plugin_instance_params ` text COMMENT ' plugin instance params. Also contain the params value which user input in web ui. ' ,
` create_time ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ,
` update_time ` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
` instance_name ` varchar ( 200 ) DEFAULT NULL COMMENT ' alert instance name ' ,
` instance_name ` varchar ( 255 ) DEFAULT NULL COMMENT ' alert instance name ' ,
PRIMARY KEY ( ` id ` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_bin ;
@ -1049,10 +1049,10 @@ CREATE TABLE `t_ds_alert_plugin_instance` (
DROP TABLE IF EXISTS ` t_ds_dq_comparison_type ` ;
CREATE TABLE ` t_ds_dq_comparison_type ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` type ` varchar ( 100 ) NOT NULL ,
` type ` varchar ( 255 ) NOT NULL ,
` execute_sql ` text DEFAULT NULL ,
` output_table ` varchar ( 100 ) DEFAULT NULL ,
` name ` varchar ( 100 ) DEFAULT NULL ,
` name ` varchar ( 255 ) DEFAULT NULL ,
` create_time ` datetime DEFAULT NULL ,
` update_time ` datetime DEFAULT NULL ,
` is_inner_source ` tinyint ( 1 ) DEFAULT ' 0 ' ,
@ -1116,7 +1116,7 @@ CREATE TABLE `t_ds_dq_execute_result` (
DROP TABLE IF EXISTS ` t_ds_dq_rule ` ;
CREATE TABLE ` t_ds_dq_rule ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` name ` varchar ( 100 ) DEFAULT NULL ,
` name ` varchar ( 255 ) DEFAULT NULL ,
` type ` int ( 11 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` create_time ` datetime DEFAULT NULL ,
@ -1828,7 +1828,7 @@ DROP TABLE IF EXISTS `t_ds_environment`;
CREATE TABLE ` t_ds_environment ` (
` id ` bigint ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' id ' ,
` code ` bigint ( 20 ) DEFAULT NULL COMMENT ' encoding ' ,
` name ` varchar ( 100 ) NOT NULL COMMENT ' environment name ' ,
` name ` varchar ( 255 ) NOT NULL COMMENT ' environment name ' ,
` config ` text NULL DEFAULT NULL COMMENT ' this config contains many environment variables config ' ,
` description ` text NULL DEFAULT NULL COMMENT ' the details ' ,
` operator ` int ( 11 ) DEFAULT NULL COMMENT ' operator user id ' ,
@ -1861,7 +1861,7 @@ DROP TABLE IF EXISTS `t_ds_task_group_queue`;
CREATE TABLE ` t_ds_task_group_queue ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' key ' ,
` task_id ` int ( 11 ) DEFAULT NULL COMMENT ' taskintanceid ' ,
` task_name ` varchar ( 100 ) DEFAULT NULL COMMENT ' TaskInstance name ' ,
` task_name ` varchar ( 255 ) DEFAULT NULL COMMENT ' TaskInstance name ' ,
` group_id ` int ( 11 ) DEFAULT NULL COMMENT ' taskGroup id ' ,
` process_id ` int ( 11 ) DEFAULT NULL COMMENT ' processInstace id ' ,
` priority ` int ( 8 ) DEFAULT ' 0 ' COMMENT ' priority ' ,
@ -1879,7 +1879,7 @@ CREATE TABLE `t_ds_task_group_queue` (
DROP TABLE IF EXISTS ` t_ds_task_group ` ;
CREATE TABLE ` t_ds_task_group ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' key ' ,
` name ` varchar ( 100 ) DEFAULT NULL COMMENT ' task_group name ' ,
` name ` varchar ( 255 ) DEFAULT NULL COMMENT ' task_group name ' ,
` description ` varchar ( 255 ) DEFAULT NULL ,
` group_size ` int ( 11 ) NOT NULL COMMENT ' group size ' ,
` use_size ` int ( 11 ) DEFAULT ' 0 ' COMMENT ' used size ' ,
@ -1911,7 +1911,7 @@ CREATE TABLE `t_ds_audit_log` (
DROP TABLE IF EXISTS ` t_ds_k8s ` ;
CREATE TABLE ` t_ds_k8s ` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` k8s_name ` varchar ( 100 ) DEFAULT NULL ,
` k8s_name ` varchar ( 255 ) DEFAULT NULL ,
` k8s_config ` text DEFAULT NULL ,
` create_time ` datetime DEFAULT NULL COMMENT ' create time ' ,
` update_time ` datetime DEFAULT NULL COMMENT ' update time ' ,
@ -1926,7 +1926,7 @@ CREATE TABLE `t_ds_k8s_namespace` (
` id ` int ( 11 ) NOT NULL AUTO_INCREMENT ,
` code ` bigint ( 20 ) NOT NULL DEFAULT ' 0 ' ,
` limits_memory ` int ( 11 ) DEFAULT NULL ,
` namespace ` varchar ( 100 ) DEFAULT NULL ,
` namespace ` varchar ( 255 ) DEFAULT NULL ,
` user_id ` int ( 11 ) DEFAULT NULL ,
` pod_replicas ` int ( 11 ) DEFAULT NULL ,
` pod_request_cpu ` decimal ( 14 , 3 ) DEFAULT NULL ,
@ -1977,7 +1977,7 @@ DROP TABLE IF EXISTS `t_ds_cluster`;
CREATE TABLE ` t_ds_cluster ` (
` id ` bigint ( 11 ) NOT NULL AUTO_INCREMENT COMMENT ' id ' ,
` code ` bigint ( 20 ) DEFAULT NULL COMMENT ' encoding ' ,
` name ` varchar ( 100 ) NOT NULL COMMENT ' cluster name ' ,
` name ` varchar ( 255 ) NOT NULL COMMENT ' cluster name ' ,
` config ` text NULL DEFAULT NULL COMMENT ' this config contains many cluster variables config ' ,
` description ` text NULL DEFAULT NULL COMMENT ' the details ' ,
` operator ` int ( 11 ) DEFAULT NULL COMMENT ' operator user id ' ,