*[misc] zt_doc add templateDesc field.

This commit is contained in:
songchenxuan
2024-11-13 16:02:07 +08:00
committed by 綦新志
parent 9df0841415
commit b2f9604d05
3 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -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';
DELETE FROM `zt_lang` WHERE `module` = 'host' AND `section` = 'cpuBrandList';
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE `zt_module` MODIFY COLUMN short varchar(60);
ALTER TABLE `zt_doc` ADD `templateDesc` text NULL AFTER `templateType`;
+2 -1
View File
@@ -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;