Skip to content
Snippets Groups Projects
Commit 8351e89a authored by Peter Rotich's avatar Peter Rotich
Browse files

Add INDEX to dept access table (New Hash)

parent f5f33675
Branches
Tags
No related merge requests found
......@@ -8,7 +8,8 @@
CREATE TABLE `%TABLE_PREFIX%group_dept_access` (
`group_id` int(10) unsigned NOT NULL default '0',
`dept_id` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`group_id`,`dept_id`)
UNIQUE KEY `group_dept` (`group_id`,`dept_id`),
KEY `dept_id` (`dept_id`)
) ENGINE=MyISAM;
-- Extend membership to groups
......
......@@ -63,7 +63,7 @@
#Current version && schema signature (Changes from version to version)
define('THIS_VERSION','1.7-DPR4'); //Shown on admin panel
define('SCHEMA_SIGNATURE','6007d45b580c6ac0206514dbed0f28a6'); //MD5 signature of the db schema. (used to trigger upgrades)
define('SCHEMA_SIGNATURE','2e7531a201b5b8650dcd43681a832ebd'); //MD5 signature of the db schema. (used to trigger upgrades)
#load config info
$configfile='';
......
......@@ -365,7 +365,8 @@ DROP TABLE IF EXISTS `%TABLE_PREFIX%group_dept_access`;
CREATE TABLE `%TABLE_PREFIX%group_dept_access` (
`group_id` int(10) unsigned NOT NULL default '0',
`dept_id` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`group_id`,`dept_id`)
UNIQUE KEY `group_dept` (`group_id`,`dept_id`),
KEY `dept_id` (`dept_id`)
) ENGINE=MyISAM;
INSERT INTO `%TABLE_PREFIX%group_dept_access` (`group_id`, `dept_id`) VALUES
......
6007d45b580c6ac0206514dbed0f28a6
2e7531a201b5b8650dcd43681a832ebd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment