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

Database patch for nested help topics

parent 296aa59b
Branches
Tags
No related merge requests found
/**
* Add help topic nesting support.
*
* @version 1.7-rc2 - nested help topics.
*/
-- Add help topic parent id.
ALTER TABLE `%TABLE_PREFIX%help_topic`
ADD `topic_pid` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `topic_id` ,
ADD INDEX ( `topic_pid` );
-- Finished with patch
UPDATE `%TABLE_PREFIX%config`
SET `schema_signature`='d0e37dca324648f1ce2d10528a6026d4';
......@@ -63,7 +63,7 @@
#Current version && schema signature (Changes from version to version)
define('THIS_VERSION','1.7-RC1'); //Shown on admin panel
define('SCHEMA_SIGNATURE','2e7531a201b5b8650dcd43681a832ebd'); //MD5 signature of the db schema. (used to trigger upgrades)
define('SCHEMA_SIGNATURE','d0e37dca324648f1ce2d10528a6026d4'); //MD5 signature of the db schema. (used to trigger upgrades)
#load config info
$configfile='';
......
......@@ -375,6 +375,7 @@ INSERT INTO `%TABLE_PREFIX%group_dept_access` (`group_id`, `dept_id`) VALUES
DROP TABLE IF EXISTS `%TABLE_PREFIX%help_topic`;
CREATE TABLE `%TABLE_PREFIX%help_topic` (
`topic_id` int(11) unsigned NOT NULL auto_increment,
`topic_pid` int(10) unsigned NOT NULL default '0',
`isactive` tinyint(1) unsigned NOT NULL default '1',
`ispublic` tinyint(1) unsigned NOT NULL default '1',
`noautoresp` tinyint(3) unsigned NOT NULL default '0',
......@@ -389,6 +390,7 @@ CREATE TABLE `%TABLE_PREFIX%help_topic` (
`updated` datetime NOT NULL,
PRIMARY KEY (`topic_id`),
UNIQUE KEY `topic` (`topic`),
KEY `topic_pid` (`topic_pid`),
KEY `priority_id` (`priority_id`),
KEY `dept_id` (`dept_id`),
KEY `staff_id` (`staff_id`,`team_id`),
......
2e7531a201b5b8650dcd43681a832ebd
d0e37dca324648f1ce2d10528a6026d4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment