* Fix bug#34233.

This commit is contained in:
朱金勇
2023-04-18 04:31:10 +00:00
parent c9637a0418
commit d96a77e314
2 changed files with 10 additions and 4 deletions
+6
View File
@@ -738,6 +738,12 @@ CHANGE `team` `team` varchar(90) NOT NULL DEFAULT '',
CHANGE `whitelist` `whitelist` text NULL,
CHANGE `order` `order` mediumint unsigned NOT NULL DEFAULT '0';
ALTER TABLE `zt_relation`
CHANGE `project` `project` mediumint NOT NULL DEFAULT '0',
CHANGE `product` `product` mediumint NOT NULL DEFAULT '0',
CHANGE `execution` `execution` mediumint NOT NULL DEFAULT '0',
CHANGE `extra` `extra` char(30) NOT NULL DEFAULT '';
ALTER TABLE `zt_release`
CHANGE `project` `project` varchar(255) NOT NULL DEFAULT '0',
CHANGE `leftBugs` `leftBugs` text NULL;
+4 -4
View File
@@ -1379,9 +1379,9 @@ CREATE UNIQUE INDEX `project` ON `zt_projectstory`(`project`,`story`);
-- DROP TABLE IF EXISTS `zt_relation`;
CREATE TABLE IF NOT EXISTS `zt_relation` (
`id` int(8) NOT NULL AUTO_INCREMENT,
`project` mediumint(8) NOT NULL,
`product` mediumint(8) NOT NULL,
`execution` mediumint(8) NOT NULL,
`project` mediumint(8) NOT NULL DEFAULT '0',
`product` mediumint(8) NOT NULL DEFAULT '0',
`execution` mediumint(8) NOT NULL DEFAULT '0',
`AType` char(30) NOT NULL,
`AID` mediumint(8) NOT NULL,
`AVersion` char(30) NOT NULL,
@@ -1389,7 +1389,7 @@ CREATE TABLE IF NOT EXISTS `zt_relation` (
`BType` char(30) NOT NULL,
`BID` mediumint(8) NOT NULL,
`BVersion` char(30) NOT NULL,
`extra` char(30) NOT NULL,
`extra` char(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE='InnoDB' DEFAULT CHARSET=utf8;
CREATE UNIQUE INDEX `relation` ON `zt_relation`(`product`,`relation`,`AType`,`BType`, `AID`, `BID`);