* Add default value to grade.

This commit is contained in:
sunguangming
2024-04-18 10:39:30 +08:00
parent 5a54c90e9f
commit 3fc75be228
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ INSERT INTO `zt_storygrade` (`type`, `grade`, `name`, `status`) VALUES
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`;
ALTER TABLE `zt_story` ADD `grade` smallint(6) NOT NULL AFTER `path`;
ALTER TABLE `zt_story` ADD `grade` smallint(6) NOT NULL DEFAULT '0' AFTER `path`;
ALTER TABLE `zt_story` ADD `parentVersion` smallint NOT NULL DEFAULT '0' AFTER `version`;
ALTER TABLE `zt_story` CHANGE `stage` `stage` enum('','wait','defining','planning','planned','projected','designing','designed','developing','developed','testing','tested','verified','rejected','delivering','pending','released','closed') NOT NULL DEFAULT 'wait';
ALTER TABLE `zt_story` DROP `childStories`;
+1 -1
View File
@@ -1781,7 +1781,7 @@ CREATE TABLE IF NOT EXISTS `zt_story` (
`isParent` enum('0', '1') NOT NULL DEFAULT '0',
`root` mediumint(9) NOT NULL DEFAULT '0',
`path` text NULL,
`grade` smallint(6) NOT NULL,
`grade` smallint(6) NOT NULL DEFAULT '0',
`product` mediumint(8) unsigned NOT NULL DEFAULT '0',
`branch` mediumint(8) unsigned NOT NULL DEFAULT '0',
`module` mediumint(8) unsigned NOT NULL DEFAULT '0',