From c0ef49273f08e08330a6f897fad364d4493c2a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=BE=B0=E8=BD=A9?= Date: Tue, 1 Nov 2022 13:30:03 +0800 Subject: [PATCH 1/3] * Add db and define to 17-7 --- config/zentaopms.php | 1 + db/update17.7.sql | 13 +++++++++++++ module/index/a.html.php | 0 3 files changed, 14 insertions(+) create mode 100644 db/update17.7.sql create mode 100644 module/index/a.html.php diff --git a/config/zentaopms.php b/config/zentaopms.php index f19d560b09..248cb89191 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -340,6 +340,7 @@ if(!defined('TABLE_SEARCHDICT')) define('TABLE_SEARCHDICT', $config->db->prefi define('TABLE_CHART', '`' . $config->db->prefix . 'chart`'); define('TABLE_DASHBOARD', '`' . $config->db->prefix . 'dashboard`'); define('TABLE_DATASET', '`' . $config->db->prefix . 'dataset`'); +define('TABLE_DIMENSION', '`' . $config->db->prefix . 'dimension`'); $config->objectTables['product'] = TABLE_PRODUCT; $config->objectTables['productplan'] = TABLE_PRODUCTPLAN; diff --git a/db/update17.7.sql b/db/update17.7.sql new file mode 100644 index 0000000000..6c365140fa --- /dev/null +++ b/db/update17.7.sql @@ -0,0 +1,13 @@ +CREATE TABLE IF NOT EXISTS `zt_dimension` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(90) NOT NULL, + `code` varchar(45) NOT NULL, + `desc` text NOT NULL, + `createdBy` varchar(30) NOT NULL, + `createdDate` datetime NOT NULL, + `editedBy` varchar(30) NOT NULL, + `editedDate` datetime NOT NULL, + `deleted` enum('0','1') NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `code` (`code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/module/index/a.html.php b/module/index/a.html.php new file mode 100644 index 0000000000..e69de29bb2 From c599d7fc1876442dea0a6c51af36151f4a076ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=BE=B0=E8=BD=A9?= Date: Tue, 1 Nov 2022 13:30:51 +0800 Subject: [PATCH 2/3] * Delete unused file. --- module/index/a.html.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 module/index/a.html.php diff --git a/module/index/a.html.php b/module/index/a.html.php deleted file mode 100644 index e69de29bb2..0000000000 From d93ac61f69a065af8a4abc90f71516cd3250e613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=BE=B0=E8=BD=A9?= Date: Tue, 1 Nov 2022 13:34:29 +0800 Subject: [PATCH 3/3] * Add sql to zentao. --- db/zentao.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/db/zentao.sql b/db/zentao.sql index 5e2f79f431..8c11328b20 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -7545,6 +7545,20 @@ CREATE TABLE IF NOT EXISTS `zt_deployscope` ( `remove` text NOT NULL, `add` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +-- DROP TABLE IF EXISTS `zt_dimension`; +CREATE TABLE IF NOT EXISTS `zt_dimension` ( + `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(90) NOT NULL, + `code` varchar(45) NOT NULL, + `desc` text NOT NULL, + `createdBy` varchar(30) NOT NULL, + `createdDate` datetime NOT NULL, + `editedBy` varchar(30) NOT NULL, + `editedDate` datetime NOT NULL, + `deleted` enum('0','1') NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `code` (`code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- DROP TABLE IF EXISTS `zt_vm`; CREATE TABLE IF NOT EXISTS `zt_vm` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT,