From 9e6a7bbb8063ff5c7c666e080ced71fcd641f282 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 26 Mar 2010 06:35:13 +0000 Subject: [PATCH] + add the table of userQuery. --- trunk/config/config.php | 3 ++- trunk/db/update0.6.sql | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/trunk/config/config.php b/trunk/config/config.php index e0d96b31bb..5e2e30e486 100644 --- a/trunk/config/config.php +++ b/trunk/config/config.php @@ -38,7 +38,7 @@ $config->methodVar = 'f'; // requestType=GET: $config->viewVar = 't'; // requestType=GET: Ä£°å±äÁ¿Ãû¡£ /* ÊÓͼºÍÖ÷Ìâ¡£*/ -$config->views = ',html,json,'; // Ö§³ÖµÄÊÓͼÁÐ±í¡£ +$config->views = ',html,json,csv,'; // Ö§³ÖµÄÊÓͼÁÐ±í¡£ $config->themes = 'default'; // Ö§³ÖµÄÖ÷ÌâÁÐ±í¡£ /* Ö§³ÖµÄÓïÑÔÁÐ±í¡£*/ @@ -79,6 +79,7 @@ define('TABLE_TODO', $config->db->prefix . 'todo'); define('TABLE_GROUP', $config->db->prefix . 'group'); define('TABLE_GROUPPRIV', $config->db->prefix . 'groupPriv'); define('TABLE_USERGROUP', $config->db->prefix . 'userGroup'); +define('TABLE_USERQUERY', $config->db->prefix . 'userQuery'); define('TABLE_BUG', $config->db->prefix . 'bug'); define('TABLE_CASE', $config->db->prefix . 'case'); diff --git a/trunk/db/update0.6.sql b/trunk/db/update0.6.sql index a3e6e22319..2143bfef54 100644 --- a/trunk/db/update0.6.sql +++ b/trunk/db/update0.6.sql @@ -9,3 +9,12 @@ ADD `scriptStatus` VARCHAR( 30 ) NOT NULL AFTER `scriptedDate` , ADD `scriptLocation` VARCHAR( 255 ) NOT NULL AFTER `scriptStatus` , ADD `linkCase` MEDIUMINT UNSIGNED NOT NULL AFTER `scriptLocation` ; ALTER TABLE `zt_case` ADD `scope` VARCHAR( 30 ) NOT NULL ; + +-- 2010-03-23 userQuery表。 +CREATE TABLE `zentao`.`zt_userQuery` ( + `id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT , + `account` VARCHAR( 30 ) NOT NULL , + `sql` TEXT NOT NULL , + `session` TEXT NOT NULL , + PRIMARY KEY ( `id` ) +) ENGINE = MYISAM;