Skip to content

Commit

Permalink
update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexkun committed Jun 17, 2024
1 parent 1a3b8df commit 206aeed
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ streamis-appconn/target
/streamis-jobmanager/streamis-job-errorcode/target/
/streamis-jobmanager/streamis-job-audit-log/target/

**/._*
**/._*
**/.flattened-pom.xml
2 changes: 2 additions & 0 deletions db/streamis_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ CREATE TABLE `linkis_stream_project_files` (
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_by` varchar(32) DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL COMMENT '说明',
`update_time` datetime DEFAULT NULL,
`md5` varchar(100) DEFAULT NULL COMMENT '文件md5',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='项目表';

Expand Down
39 changes: 39 additions & 0 deletions db/upgrade/0.3.1/upgrade_ddl.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
DROP TABLE IF EXISTS `linkis_stream_error_code`;

CREATE TABLE `linkis_stream_error_code` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`error_code` varchar(50) COLLATE utf8_bin NOT NULL,
`error_desc` varchar(1024) COLLATE utf8_bin NOT NULL,
`error_regex` varchar(1024) COLLATE utf8_bin DEFAULT NULL,
`error_type` int(3) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=143 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

ALTER TABLE linkis_stream_project_files ADD source varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL;

CREATE TABLE `linkis_stream_audit_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`proxy_user` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`api_name` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`api_desc` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`api_type` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`operate_time` datetime DEFAULT NULL,
`input_parameters` text COLLATE utf8_bin,
`output_parameters` text COLLATE utf8_bin,
`project_name` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`client_ip` varchar(100) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1325 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE `linkis_stream_register_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`job_id` bigint(20) DEFAULT NULL,
`application_name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`password` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`register_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`heartbeat_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;


Loading

0 comments on commit 206aeed

Please sign in to comment.