Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/1.5.0-table #104

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions mysql/update-20220407-release-1.5.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS=0;

CREATE TABLE IF NOT EXISTS `iast_third_party_service` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`project_id` int(11) DEFAULT NULL COMMENT '项目ID',
`agent_id` int(11) DEFAULT NULL COMMENT '来源agentID',
`port` varchar(255) DEFAULT NULL COMMENT '端口',
`address` varchar(255) DEFAULT NULL COMMENT '地址',
`service_type` varchar(255) DEFAULT NULL COMMENT '服务类型',
PRIMARY KEY (`id`)
)

ALTER TABLE iast_agent ADD filepathsimhash varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' NOT NULL COMMENT 'agent目录结构相似度哈希';
ALTER TABLE iast_third_party_service ADD CONSTRAINT iast_third_party_service_UN UNIQUE KEY (address,service_type,port,agent_id);
ALTER TABLE iast_agent ADD servicetype varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' NOT NULL COMMENT '部署的方式';
CREATE INDEX iast_vulnerability_level_id_IDX USING BTREE ON iast_webapi_buss_test.iast_vulnerability (level_id,agent_id);

SET FOREIGN_KEY_CHECKS=1;