From df22b0a09f9cc1dd875a5f7389274cc2339e6d33 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 12 May 2021 16:25:45 +0800 Subject: [PATCH] * Add sql. --- db/update15.0.sql | 3 ++- db/zentao.sql | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/update15.0.sql b/db/update15.0.sql index c8bcf14de2..0454c02f16 100644 --- a/db/update15.0.sql +++ b/db/update15.0.sql @@ -1,2 +1,3 @@ ALTER TABLE `zt_project` CHANGE `lifetime` `lifetime` char(30) NOT NULL DEFAULT ''; -ALTER TABLE `zt_story` ADD `category` varchar(30) NOT NULL DEFAULT 'feature' AFTER 'type'; +ALTER TABLE `zt_story` ADD `category` varchar(30) NOT NULL DEFAULT 'feature' AFTER `type`; +ALTER TABLE `zt_testtask` ADD `type` varchar(255) NOT NULL DEFAULT '' AFTER `build`; diff --git a/db/zentao.sql b/db/zentao.sql index 526a878625..19468f47c2 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -822,6 +822,7 @@ CREATE TABLE IF NOT EXISTS `zt_story` ( `title` varchar(255) NOT NULL, `keywords` varchar(255) NOT NULL, `type` varchar(30) NOT NULL default 'story', + `category` varchar(30) NOT NULL default 'feature', `pri` tinyint(3) unsigned NOT NULL default '3', `estimate` float unsigned NOT NULL, `status` enum('','changed','active','draft','closed') NOT NULL default '',