* Add upgrade sql, fix bug.

This commit is contained in:
sunguangming
2024-04-11 09:33:35 +08:00
parent 4bc5e7bb36
commit 67feeaba0b
3 changed files with 7 additions and 2 deletions
+6
View File
@@ -23,6 +23,12 @@ CREATE TABLE `zt_storygrade` (
`status` char(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `zt_storygrade` (`type`, `grade`, `name`, `status`) VALUES
('requirement', 1, '用需', 'enable'),
('epic', 1, '业需', 'enable'),
('story', 1, '父', 'enable'),
('story', 2, '子', 'enable');
ALTER TABLE `zt_story` ADD `isParent` enum('0','1') NOT NULL DEFAULT '0' AFTER `parent`;
ALTER TABLE `zt_story` ADD `root` mediumint NOT NULL DEFAULT '0' AFTER `isParent`;
ALTER TABLE `zt_story` ADD `path` text NULL AFTER `root`;
-1
View File
@@ -4281,7 +4281,6 @@ class storyModel extends model
$storyLang->zeroCase = str_replace($SRCommon, $replacement, $storyLang->zeroCase);
$storyLang->zeroTask = str_replace($SRCommon, $replacement, $storyLang->zeroTask);
$storyLang->copyTitle = str_replace($SRCommon, $replacement, $storyLang->copyTitle);
$storyLang->common = str_replace($SRCommon, $replacement, $storyLang->common);
$storyLang->title = str_replace($SRCommon, $replacement, $storyLang->title);
$storyLang->spec = str_replace($SRCommon, $replacement, $storyLang->spec);
$storyLang->children = str_replace($SRCommon, $replacement, $storyLang->children);
+1 -1
View File
@@ -1913,7 +1913,7 @@ class storyTao extends storyModel
}
elseif($story->type == 'requirement' && common::hasPriv('story', 'batchCreate'))
{
$title = $this->lang->story->split . $lang->URCommon;
$title = $this->lang->story->split . $lang->SRCommon;
if(!empty($story->cannotSplit)) $title = $this->lang->story->errorCannotSplit;
$actions[] = array('name' => 'batchCreate', 'url' => helper::createLink('story', 'batchCreate', "productID=$story->product&branch=$story->branch&module=$story->module&$params&executionID=$executionID&plan=0"), 'hint' => $title, 'disabled' => $story->status != 'active', 'icon' => 'tree');
}