* [bug#64427] Compatible with dameng.

This commit is contained in:
liugang
2025-07-31 10:19:46 +08:00
parent cf34e0974e
commit 9a391ebc9d
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -2,8 +2,10 @@ ALTER TABLE `zt_bug`
CHANGE `injection` `injection` varchar(30) NOT NULL DEFAULT '',
CHANGE `identify` `identify` varchar(30) NOT NULL DEFAULT '';
ALTER TABLE `zt_task` MODIFY `path` varchar(255) NOT NULL DEFAULT '';
CREATE INDEX `parent` ON `zt_story` (`parent`);
CREATE INDEX `path` ON `zt_task` (`path`(100));
CREATE INDEX `path` ON `zt_task` (`path`);
UPDATE `zt_project` SET `workflowGroup` = (SELECT `id` FROM `zt_workflowgroup` WHERE `code` = 'kanbanproduct' AND `main` = '1' LIMIT 1) WHERE `type` = 'project' AND `model` = 'kanban' AND `hasProduct` = '1';
UPDATE `zt_project` SET `workflowGroup` = (SELECT `id` FROM `zt_workflowgroup` WHERE `code` = 'kanbanproject' AND `main` = '1' LIMIT 1) WHERE `type` = 'project' AND `model` = 'kanban' AND `hasProduct` = '0';
+2 -2
View File
@@ -2079,7 +2079,7 @@ CREATE TABLE IF NOT EXISTS `zt_task` (
`parent` mediumint(8) NOT NULL DEFAULT '0',
`isParent` tinyint(1) NOT NULL DEFAULT '0',
`isTpl` tinyint(1) unsigned NOT NULL DEFAULT '0',
`path` text NULL,
`path` varchar(255) NOT NULL DEFAULT '',
`execution` mediumint(8) unsigned NOT NULL DEFAULT '0',
`module` mediumint(8) unsigned NOT NULL DEFAULT '0',
`design` mediumint(8) unsigned NOT NULL DEFAULT '0',
@@ -2139,7 +2139,7 @@ CREATE TABLE IF NOT EXISTS `zt_task` (
CREATE INDEX `execution` ON `zt_task` (`execution`);
CREATE INDEX `story` ON `zt_task` (`story`);
CREATE INDEX `parent` ON `zt_task` (`parent`);
CREATE INDEX `path` ON `zt_task` (`path`(100));
CREATE INDEX `path` ON `zt_task` (`path`);
CREATE INDEX `assignedTo` ON `zt_task` (`assignedTo`);
CREATE INDEX `order` ON `zt_task` (`order`);