From 79a8b3602f9f9e6bca0a1c5bce0bd66c1fc36cfc Mon Sep 17 00:00:00 2001 From: wyd621 Date: Fri, 9 Aug 2013 14:10:17 +0800 Subject: [PATCH] * upgrade sql. --- db/update4.3.sql | 1 - db/zentao.sql | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/db/update4.3.sql b/db/update4.3.sql index 743ee51395..5ac5c8d34b 100644 --- a/db/update4.3.sql +++ b/db/update4.3.sql @@ -9,4 +9,3 @@ CREATE TABLE IF NOT EXISTS `zt_custom` ( PRIMARY KEY (`id`), UNIQUE KEY `lang` (`lang`,`module`,`section`,`key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; - diff --git a/db/zentao.sql b/db/zentao.sql index 2f2e7af25f..dda981f0ea 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -157,6 +157,18 @@ CREATE TABLE IF NOT EXISTS `zt_config` ( PRIMARY KEY (`id`), UNIQUE KEY `unique` (`owner`,`module`,`section`,`key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +-- DROP TABLE IF EXISTS `zt_custom`; +CREATE TABLE IF NOT EXISTS `zt_custom` ( + `id` mediumint(8) unsigned NOT NULL auto_increment, + `lang` varchar(30) NOT NULL, + `module` varchar(30) NOT NULL, + `section` varchar(30) NOT NULL, + `key` varchar(60) NOT NULL, + `value` text NOT NULL, + `system` enum('0','1') NOT NULL default '1', + PRIMARY KEY (`id`), + UNIQUE KEY `lang` (`lang`,`module`,`section`,`key`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- DROP TABLE IF EXISTS `zt_dept`; CREATE TABLE IF NOT EXISTS `zt_dept` ( `id` mediumint(8) unsigned NOT NULL auto_increment,