Skip to content

Commit

Permalink
feat:流水线代码变更记录,支持 AI 生成摘要 #11228 补充SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Dec 26, 2024
1 parent 8ff9ada commit da84276
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions support-files/sql/1001_ci_repository_ddl_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,18 @@ CREATE TABLE IF NOT EXISTS `T_REPOSITORY_SCM_TOKEN` (
UNIQUE KEY `UNIQ_USER_SCM_CODE_APP_TYPE` (`USER_ID`,`SCM_CODE`,`APP_TYPE`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COMMENT='代码仓库token表';

CREATE TABLE `T_REPOSITORY_COPILOT_SUMMARY` (
`PROJECT_ID` varchar(64) NOT NULL COMMENT '蓝盾项目ID',
`BUILD_ID` varchar(64) NOT NULL COMMENT '构建ID',
`ELEMENT_ID` varchar(64) NOT NULL COMMENT '插件ID',
`SCM_CODE` varchar(32) DEFAULT NULL COMMENT '代码库类型',
`PROJECT_NAME` varchar(255) DEFAULT NULL COMMENT '仓库唯一标识',
`SOURCE_COMMIT` varchar(64) DEFAULT NULL COMMENT '源提交点',
`TARGET_COMMIT` varchar(64) DEFAULT NULL COMMENT '目标提交点',
`STATUS` int(11) DEFAULT NULL COMMENT '生成状态,1-生成中,3-生成失败, 5-生成成功',
`SUMMARY` text COMMENT 'AI 摘要',
`CREATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`PROJECT_ID`,`BUILD_ID`,`ELEMENT_ID`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COMMENT='代码库copilot摘要表';

SET FOREIGN_KEY_CHECKS = 1;

0 comments on commit da84276

Please sign in to comment.