Skip to content

Commit

Permalink
Merge pull request #129 from Bidaya0/1.8.5/structure
Browse files Browse the repository at this point in the history
1.8.5/structure
  • Loading branch information
Bidaya0 authored Sep 14, 2022
2 parents e1882fc + 8aa02e4 commit 7f9dabd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mysql/update-20220914-release-1.8.5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS=0;

CREATE TABLE `iast_header_vulnerability` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL COMMENT 'url地址',
`project_version_id` int(11) DEFAULT NULL,
`vul_id` bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `iast_header_vulnerability_UN` (`url`,`project_version_id`,`project_id`,`vul_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `iast_header_vulnerability_detail` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`agent_id` bigint(20) unsigned DEFAULT NULL,
`method_pool_id` bigint(20) unsigned DEFAULT NULL,
`header_vul_id` bigint(20) unsigned DEFAULT NULL,
`req_header` text,
`res_header` text,
PRIMARY KEY (`id`),
UNIQUE KEY `iast_header_vulnerability_detail_UN` (`header_vul_id`,`agent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


SET FOREIGN_KEY_CHECKS=1;

0 comments on commit 7f9dabd

Please sign in to comment.