diff --git a/config/zentaopms.php b/config/zentaopms.php index 542ef0c769..eac1d713d1 100644 --- a/config/zentaopms.php +++ b/config/zentaopms.php @@ -377,7 +377,6 @@ define('TABLE_COMPANY', '`' . $config->db->prefix . 'company`'); define('TABLE_DEPT', '`' . $config->db->prefix . 'dept`'); define('TABLE_CONFIG', '`' . $config->db->prefix . 'config`'); define('TABLE_USER', '`' . $config->db->prefix . 'user`'); -define('TABLE_SESSION', '`' . $config->db->prefix . 'session`'); define('TABLE_TODO', '`' . $config->db->prefix . 'todo`'); define('TABLE_GROUP', '`' . $config->db->prefix . 'group`'); define('TABLE_GROUPPRIV', '`' . $config->db->prefix . 'grouppriv`'); @@ -516,11 +515,6 @@ define('TABLE_DIMENSION', '`' . $config->db->prefix . 'dimension`'); define('TABLE_SCENE', '`' . $config->db->prefix . 'scene`'); define('VIEW_SCENECASE', '`ztv_scenecase`'); -define('TABLE_PRIV', '`' . $config->db->prefix . 'priv`'); -define('TABLE_PRIVLANG', '`' . $config->db->prefix . 'privlang`'); -define('TABLE_PRIVMANAGER', '`' . $config->db->prefix . 'privmanager`'); -define('TABLE_PRIVRELATION', '`' . $config->db->prefix . 'privrelation`'); - define('TABLE_ACTIVITY', '`' . $config->db->prefix . 'activity`'); define('TABLE_APPROVAL', '`' . $config->db->prefix . 'approval`'); define('TABLE_APPROVALFLOW', '`' . $config->db->prefix . 'approvalflow`'); @@ -799,4 +793,4 @@ $config->excludeDropmenuModules = array('reporttemplate'); $config->hasSwitcherModules = array('design'); $config->hasSwitcherMethods = array('project-bug', 'project-testcase', 'execution-bug', 'execution-testcase', 'testtask-cases', 'testtask-view', 'testtask-report', 'testtask-groupcase', 'testtask-linkcase'); $config->excludeSwitcherList = array(); -$config->hasMainNavBar = array(); \ No newline at end of file +$config->hasMainNavBar = array(); diff --git a/db/zentao.sql b/db/zentao.sql index e543802e11..604e7bb046 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -1445,55 +1445,6 @@ CREATE TABLE IF NOT EXISTS `zt_planstory` ( ) ENGINE=InnoDB; CREATE UNIQUE INDEX `plan_story` ON `zt_planstory`(`plan`,`story`); --- DROP TABLE IF EXISTS `zt_priv`; -CREATE TABLE IF NOT EXISTS `zt_priv` ( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `module` varchar(30) NOT NULL DEFAULT '', - `method` varchar(30) NOT NULL DEFAULT '', - `parent` int unsigned NOT NULL DEFAULT 0, - `edition` varchar(30) NOT NULL DEFAULT ',open,biz,max,', - `system` tinyint unsigned NOT NULL DEFAULT 0, - `order` int unsigned NOT NULL DEFAULT 0, - `vision` varchar(10) NOT NULL DEFAULT 'rnd', - PRIMARY KEY (`id`) -) ENGINE=InnoDB; -CREATE UNIQUE INDEX `priv` ON `zt_priv` (`module`,`method`); - --- DROP TABLE IF EXISTS `zt_privmanager`; -CREATE TABLE IF NOT EXISTS `zt_privmanager` ( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `parent` int unsigned NOT NULL DEFAULT 0, - `code` varchar(100) NOT NULL DEFAULT '', - `type` varchar(10) NOT NULL DEFAULT 'package', - `edition` varchar(30) NOT NULL DEFAULT ',open,biz,max,', - `order` int unsigned NOT NULL DEFAULT 0, - `vision` varchar(10) NOT NULL DEFAULT 'rnd', - PRIMARY KEY (`id`) -) ENGINE=InnoDB; - --- DROP TABLE IF EXISTS `zt_privlang`; -CREATE TABLE IF NOT EXISTS `zt_privlang` ( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `objectID` int unsigned NOT NULL DEFAULT 0, - `objectType` varchar(10) NOT NULL DEFAULT 'priv', - `lang` varchar(30) NOT NULL DEFAULT '', - `key` varchar(100) NOT NULL DEFAULT '', - `value` varchar(255) NOT NULL DEFAULT '', - `desc` text DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB; -CREATE UNIQUE INDEX `objectlang` ON `zt_privlang` (`objectID`,`objectType`,`lang`); - --- DROP TABLE IF EXISTS `zt_privrelation`; -CREATE TABLE IF NOT EXISTS `zt_privrelation` ( - `id` int unsigned NOT NULL AUTO_INCREMENT, - `priv` varchar(100) NOT NULL DEFAULT '', - `type` varchar(30) NOT NULL DEFAULT '', - `relationPriv` varchar(100) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB; -CREATE UNIQUE INDEX `privrelation` ON `zt_privrelation` (`priv`, `type`, `relationPriv`); - -- DROP TABLE IF EXISTS `zt_product`; CREATE TABLE IF NOT EXISTS `zt_product` ( `id` int unsigned NOT NULL AUTO_INCREMENT,