diff --git a/db/update21.0.sql b/db/update21.0.sql index e49bf87888..1fbd806905 100644 --- a/db/update21.0.sql +++ b/db/update21.0.sql @@ -1,4 +1,3 @@ -ALTER TABLE zt_module MODIFY COLUMN short varchar(60); ALTER TABLE `zt_host` DROP COLUMN `serverModel`; ALTER TABLE `zt_host` DROP COLUMN `hardwareType`; ALTER TABLE `zt_host` DROP COLUMN `cpuBrand`; @@ -42,4 +41,4 @@ REPLACE INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`, ` UPDATE `zt_action` SET `action` = 'canceled' WHERE `objectType` = 'deploy' AND `action` = 'activated'; DROP TABLE IF EXISTS `zt_account`; -DELETE FROM `zt_lang` WHERE `module` = 'host' AND `section` = 'cpuBrandList'; \ No newline at end of file +DELETE FROM `zt_lang` WHERE `module` = 'host' AND `section` = 'cpuBrandList'; diff --git a/db/update21.1.sql b/db/update21.1.sql new file mode 100644 index 0000000000..e1cd662ac2 --- /dev/null +++ b/db/update21.1.sql @@ -0,0 +1,2 @@ +ALTER TABLE `zt_module` MODIFY COLUMN short varchar(60); +ALTER TABLE `zt_doc` ADD `templateDesc` text NULL AFTER `templateType`; diff --git a/db/zentao.sql b/db/zentao.sql index 1c2049c65a..a705ffb11c 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -739,6 +739,7 @@ CREATE TABLE IF NOT EXISTS `zt_doc` ( `lib` varchar(30) NOT NULL DEFAULT '', `template` varchar(30) NOT NULL DEFAULT '', `templateType` varchar(30) NOT NULL DEFAULT '', + `templateDesc` text NULL, `chapterType` varchar(30) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', @@ -1202,7 +1203,7 @@ CREATE TABLE IF NOT EXISTS `zt_module` ( `from` mediumint(8) unsigned NOT NULL default '0', `owner` varchar(30) NOT NULL DEFAULT '', `collector` text NULL, - `short` varchar(30) NOT NULL DEFAULT '', + `short` varchar(60) NOT NULL DEFAULT '', `deleted` enum('0','1') NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;