* Add testjoint sql.

This commit is contained in:
wangyuting
2025-12-02 16:44:21 +08:00
committed by sunhao
parent 40b8a19582
commit f5963f1d8b
2 changed files with 13 additions and 12 deletions
-12
View File
@@ -1,12 +0,0 @@
CREATE TABLE `zt_testtaskproduct` (
`id` int NOT NULL AUTO_INCREMENT,
`product` int NOT NULL,
`build` int NOT NULL,
`task` int NOT NULL,
`execution` int NOT NULL default '0',
`project` int NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `product_build` (`product`,`build`,`task`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `zt_testtask` ADD `joint` enum('0','1') NOT NULL DEFAULT '0' AFTER `build`;
+13
View File
@@ -12,3 +12,16 @@ ALTER TABLE `zt_doc` ADD `reportModule` varchar(20) NOT NULL DEFAULT '0' AFTER `
UPDATE `zt_doc` SET `reportModule` = `module` WHERE `templateType` = 'projectReport';
UPDATE `zt_doc` SET `module` = 0 WHERE `templateType` = 'projectReport' OR `module` = '';
ALTER TABLE `zt_doc` MODIFY `module` int unsigned NOT NULL DEFAULT 0;
CREATE TABLE `zt_testtaskproduct` (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`product` int unsigned NOT NULL default 0 COMMENT '所属产品',
`build` int unsigned NOT NULL default 0 COMMENT '所属构建',
`task` int unsigned NOT NULL default 0 COMMENT '所属测试单',
`execution` int unsigned NOT NULL default 0 COMMENT '所属执行',
`project` int unsigned NOT NULL default 0 COMMENT '所属项目',
PRIMARY KEY (`id`),
UNIQUE KEY `product_build` (`product`,`build`,`task`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `zt_testtask` ADD `joint` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否为联调测试单' AFTER `build`;