diff --git a/setup/wizard/config/config.xml b/setup/wizard/config/config.xml new file mode 100755 index 0000000..e034667 --- /dev/null +++ b/setup/wizard/config/config.xml @@ -0,0 +1,21 @@ + + + + + + + welcome + license + dependency_check + configuration + database + install + complete + + diff --git a/setup/wizard/config/databases.xml b/setup/wizard/config/databases.xml new file mode 100755 index 0000000..c4998d1 --- /dev/null +++ b/setup/wizard/config/databases.xml @@ -0,0 +1,19 @@ + + + + + + + mysql + + localhost + 3306 + dms + root + diff --git a/setup/wizard/config/mysql.xml b/setup/wizard/config/mysql.xml new file mode 100755 index 0000000..ff07b48 --- /dev/null +++ b/setup/wizard/config/mysql.xml @@ -0,0 +1,19 @@ + + + + + + localhost + dms + root + + 3306 + dmsadmin + + diff --git a/setup/wizard/config/oracle.xml b/setup/wizard/config/oracle.xml new file mode 100755 index 0000000..969d587 --- /dev/null +++ b/setup/wizard/config/oracle.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + diff --git a/setup/wizard/config/postgres.xml b/setup/wizard/config/postgres.xml new file mode 100755 index 0000000..a849320 --- /dev/null +++ b/setup/wizard/config/postgres.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + diff --git a/setup/wizard/index.php b/setup/wizard/index.php new file mode 100755 index 0000000..cfcb62a --- /dev/null +++ b/setup/wizard/index.php @@ -0,0 +1,43 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + require("installer.php"); +?> \ No newline at end of file diff --git a/setup/wizard/installer.php b/setup/wizard/installer.php new file mode 100755 index 0000000..67323f5 --- /dev/null +++ b/setup/wizard/installer.php @@ -0,0 +1,437 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + +include("path.php"); +include("session.php"); +require_once("template.inc"); +require_once("step_action.php"); + +class Installer { + /** + * Reference to simple xml object + * + * @author KnowledgeTree Team + * @access protected + * @var object SimpleXMLElement + */ + protected $simpleXmlObj = null; + + /** + * Reference to step action object + * + * @author KnowledgeTree Team + * @access protected + * @var object StepAction + */ + protected $stepAction = null; + + /** + * List of installation steps as strings + * + * @author KnowledgeTree Team + * @access protected + * @var array string + */ + protected $stepClassNames = array(); + + /** + * List of installation steps as human readable strings + * + * @author KnowledgeTree Team + * @access protected + * @var array string + */ + protected $stepNames = array(); + + /** + * Flag if a step object needs confirmation + * + * @author KnowledgeTree Team + * @access protected + * @var array boolean + */ + protected $stepConfirmation = false; + + /** + * List of installation steps as human readable strings + * + * @author KnowledgeTree Team + * @access protected + * @var array string + */ + protected $stepObjects = array(); + + /** + * Reference to session object + * + * @author KnowledgeTree Team + * @access protected + * @var object Session + */ + protected $session = null; + + /** + * Constructs installation object + * + * @author KnowledgeTree Team + * @access public + * @param object Session $session Instance of the Session object + */ + public function __construct($session) { + $this->session = $session; + } + + /** + * Main control to handle the flow of install + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function step() { + $this->setXmlSteps(); // Xml steps + $this->setSteps(); // String steps + $response = $this->landing(); + switch($response) { + case 'next': + $this->proceed(); // Load next window + break; + + case 'previous': + $this->backward(); // Load previous window + break; + + case 'confirm': + $this->stepConfirmation = true; + $this->landing(); + break; + + case 'error': + $this->landing(); // Load landing with errors + break; + + case 'landing': + $this->landing(); // Load landing + break; + + case 'install': + $this->runStepsInstallers(); // Load landing + break; + + default: + die("That was unexpected!"); // No class response + break; + } + $this->stepAction->paintAction(); // Display step + } + + /** + * Install steps + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + function runStepsInstallers() { + foreach ($this->getSteps() as $className) { + $stepAction = new stepAction($className); // Instantiate a step action + $class = $stepAction->createStep(); // Get step class + if($class->runInstall()) { // Check if step needs to be installed + $class->setDataFromSession($className); // Set Session Information + $class->setDBConfig(); // Set any posted variables + $class->installStep(); // Run install step + } + } + } + + /** + * Read xml configuration file + * + * @author KnowledgeTree Team + * @param string $name of config file + * @access public + * @return simple xml object $simplexml + */ + public function readXml($name = "config.xml") { + try { + $simplexml = @simplexml_load_file(CONF_DIR.$name); + + return $simplexml; + } catch (Exception $e) { + return "Error loading file : $e"; + } + } + + /** + * Checks if first step of installer + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + public function _firstStep() { + if(isset($_GET['step_name'])) { + return false; + } + return true; + } + + /** + * Returns next step + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function getNextStep() { + return $this->getStepName(1); + } + + /** + * Returns previous step + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function getPreviousStep() { + return $this->getStepName(-1); + } + + /** + * Returns the step name, given a position + * + * @author KnowledgeTree Team + * @param integer $pos current position + * @access public + * @return string $name + */ + public function getStepName($pos = 0) { + if($this->_firstStep()) { + $step = (string) $this->simpleXmlObj->steps->step[0]; + } else { + $pos += $this->getStepPosition(); + $step = (string) $this->simpleXmlObj->steps->step[$pos]; + } + + return $step; + } + + /** + * Returns the step number + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return integer $pos + */ + public function getStepPosition() { + $pos = 0; + foreach($this->simpleXmlObj->steps->step as $d_step) { + $step = (string) $d_step; + if ($step == $_GET['step_name']) { + break; + } + $pos++; + } + if(isset($_GET['step'])) { + if($_GET['step'] == "next") + $pos = $pos+1; + else + $pos = $pos-1; + } + + return $pos; + } + + /** + * Returns the step names for classes + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function getSteps() { + return $this->stepClassNames; + } + + /** + * Returns the steps as human readable string + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function getStepNames() { + return $this->stepNames; + } + + /** + * Dump of SESSION + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function showSession() { + echo '
';
+        print_r($_SESSION);
+        echo '
'; + } + + /** + * Executes next step + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return string + */ + private function proceed() { + $step_name = $this->getNextStep(); + + return $this->runStepAction($step_name); + } + + /** + * Executes previous step + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return string + */ + private function backward() { + $step_name = $this->getPreviousStep(); + + return $this->runStepAction($step_name); + } + + /** + * Executes step landing + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return string + */ + private function landing() { + $step_name = $this->getStepName(); + + return $this->runStepAction($step_name); + } + + /** + * Executes step based on step class name + * + * @author KnowledgeTree Team + * @param string $step_name + * @access private + * @return string + */ + private function runStepAction($stepName) { + $this->stepAction = new stepAction($stepName); + $this->stepAction->setSteps($this->getSteps()); + $this->stepAction->setStepNames($this->getStepNames()); + $this->stepAction->setDisplayConfirm($this->stepConfirmation); + $this->stepAction->loadSession($this->session); + + return $this->stepAction->doAction(); + } + + /** + * Set steps in xml format + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return void + */ + private function setXmlSteps() { + $this->simpleXmlObj = $this->readXml(); + } + + /** + * Set steps class names in string format + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return void + */ + private function setSteps() { + $this->stepClassNames = $this->xmlStepsToArray(); + } + + + /** + * Set steps as names + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return array $steps + */ + private function xmlStepsToArray() { + $steps = array(); + foreach($this->simpleXmlObj->steps->step as $d_step) { + $step_name = (string) $d_step[0]; + $steps[] = $step_name; + $this->stepNames[$step_name] = (string) $d_step['name']; + } + + return $steps; + } + +} +$ins = new installer(new Session()); // Instantiate the installer +$ins->step(); // Run step +//$ins->showSession(); +?> \ No newline at end of file diff --git a/setup/wizard/path.php b/setup/wizard/path.php new file mode 100755 index 0000000..6f9d2bf --- /dev/null +++ b/setup/wizard/path.php @@ -0,0 +1,49 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + define('DS', '/'); + define('WIZARD_DIR', dirname(__FILE__).DS); + define('SQL_DIR', WIZARD_DIR.DS."sql".DS); + define('CONF_DIR', WIZARD_DIR.DS."config".DS); + define('RES_DIR', WIZARD_DIR.DS."resources".DS); + define('STEP_DIR', WIZARD_DIR.DS."steps".DS); + define('TEMP_DIR', WIZARD_DIR.DS."templates".DS); +?> diff --git a/setup/wizard/resources/graphics/active.png b/setup/wizard/resources/graphics/active.png new file mode 100755 index 0000000..62b232c --- /dev/null +++ b/setup/wizard/resources/graphics/active.png diff --git a/setup/wizard/resources/graphics/cross.png b/setup/wizard/resources/graphics/cross.png new file mode 100755 index 0000000..3ba9615 --- /dev/null +++ b/setup/wizard/resources/graphics/cross.png diff --git a/setup/wizard/resources/graphics/footer.png b/setup/wizard/resources/graphics/footer.png new file mode 100755 index 0000000..6486da9 --- /dev/null +++ b/setup/wizard/resources/graphics/footer.png diff --git a/setup/wizard/resources/graphics/gradient.png b/setup/wizard/resources/graphics/gradient.png new file mode 100755 index 0000000..6074bca --- /dev/null +++ b/setup/wizard/resources/graphics/gradient.png diff --git a/setup/wizard/resources/graphics/inactive.png b/setup/wizard/resources/graphics/inactive.png new file mode 100755 index 0000000..dfe29a2 --- /dev/null +++ b/setup/wizard/resources/graphics/inactive.png diff --git a/setup/wizard/resources/graphics/indicator.png b/setup/wizard/resources/graphics/indicator.png new file mode 100755 index 0000000..89dbff0 --- /dev/null +++ b/setup/wizard/resources/graphics/indicator.png diff --git a/setup/wizard/resources/graphics/indicator.pxm b/setup/wizard/resources/graphics/indicator.pxm new file mode 100755 index 0000000..c8b9f87 --- /dev/null +++ b/setup/wizard/resources/graphics/indicator.pxm diff --git a/setup/wizard/resources/graphics/left.png b/setup/wizard/resources/graphics/left.png new file mode 100755 index 0000000..b74fcf7 --- /dev/null +++ b/setup/wizard/resources/graphics/left.png diff --git a/setup/wizard/resources/graphics/logo.png b/setup/wizard/resources/graphics/logo.png new file mode 100755 index 0000000..bfeefd8 --- /dev/null +++ b/setup/wizard/resources/graphics/logo.png diff --git a/setup/wizard/resources/graphics/powered-by-kt.png b/setup/wizard/resources/graphics/powered-by-kt.png new file mode 100755 index 0000000..2bc078b --- /dev/null +++ b/setup/wizard/resources/graphics/powered-by-kt.png diff --git a/setup/wizard/resources/graphics/tick.png b/setup/wizard/resources/graphics/tick.png new file mode 100755 index 0000000..a24d605 --- /dev/null +++ b/setup/wizard/resources/graphics/tick.png diff --git a/setup/wizard/resources/graphics/tree.jpg b/setup/wizard/resources/graphics/tree.jpg new file mode 100755 index 0000000..d9e11f6 --- /dev/null +++ b/setup/wizard/resources/graphics/tree.jpg diff --git a/setup/wizard/resources/wizard.css b/setup/wizard/resources/wizard.css new file mode 100755 index 0000000..751d712 --- /dev/null +++ b/setup/wizard/resources/wizard.css @@ -0,0 +1,184 @@ +* { margin:0; padding:0; } + +body { + background: white; + text-align: center; + font-family: Arial, sans-serif; + line-height: 1.5; + font-size: 80%; + color: #000; +} + +h1 { + font-size: 3em; + font-weight: normal; + padding: 10px 0; + color: #555; +} + +h2 { + font-size: 2em; + font-weight: normal; + padding: 10px 0; + color: #555; +} + +h3 { + font-size: 1.5em; + font-weight: normal; + padding: 10px 0; + color: #555; +} + +a { + color: #EC7725; +} + +th { + font-weight: bold; + font-size: 1.1em; + padding: 5px 5px; +} + +td { + padding: 2px 5px; +} + +.container { + border: solid 1px #A1A1A1; + margin: 50px; + margin-top: 20px; + text-align: left; +} + +.header { + background: url("graphics/gradient.png") repeat-y; + background-position: top right; + height: 60px; +} + +.logo { + background: url("graphics/logo.png") no-repeat; + background-position: top left; + height: inherit; + width: 200px; + margin-left: 10px; +} + +.content { +} + +.left { + float: left; + width: 200px; + text-align: center; + /*background: url("graphics/left.png") repeat-y;*/ + background-position: top left; + height: inherit; + padding-bottom: 20px; + padding-top: 40px; +} + +.right { + float: left; + padding: 20px; +} + +.menu { + color: #616161; + text-align: left; + line-height: 3; + padding-left: 20px; +} + +.indicator { + background: url("graphics/indicator.png") no-repeat; + height: 15px; + width: 15px; + padding-left: 20px; +} + +.indicator a { + text-decoration: none; +} + +.active { + background: url("graphics/active.png") no-repeat; + height: 15px; + width: 15px; + padding-left: 20px; +} + +.inactive { + background: url("graphics/inactive.png") no-repeat; + height: 15px; + width: 15px; + padding-left: 20px; +} + +.tick { + background: url("graphics/tick.png") no-repeat; + height: 15px; + width: 15px; +} + +.cross { + background: url("graphics/cross.png") no-repeat; + height: 15px; + width: 15px; +} + +.green { + color: green; + align: center; +} + +.orange { + color: orange; + align: center; +} + +.buttons { + margin-top: 20px; + position: relative; +} + +.buttons input { + background: #DDDDDD; + border: solid 1px #888; + padding: 2px 8px 2px 5px; + text-decoration: none; + color: #EC7725; +} + +.footer { + background: url("graphics/footer.png") repeat-x; + height: 50px; + clear: both; +} + +.powered-by { + background: url("graphics/powered-by-kt.png") no-repeat; + background-position: center left; + height: inherit; + width: 140px; + margin-left: 10px; +} + +.adv_options { + +} + +.description { + color:#898989; + line-height:150%; + margin-bottom:0.75em; +} + +.top { + color:#EC7725; +} + +.right_top { + height:45px; +} \ No newline at end of file diff --git a/setup/wizard/session.php b/setup/wizard/session.php new file mode 100755 index 0000000..6b3b336 --- /dev/null +++ b/setup/wizard/session.php @@ -0,0 +1,224 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +class Session +{ + /** + * Constructs session object + * + * @author KnowledgeTree Team + * @access public + * @param none + */ + public function __construct() { + $this->startSession(); + } + + /** + * Starts a session if one does not exist + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function startSession() { + if(!isset($_SESSION['ready'])) { + session_start(); + $_SESSION ['ready'] = TRUE; + } + } + + /** + * Sets a value key pair in session + * + * @author KnowledgeTree Team + * @param string $fld + * @param string $val + * @access public + * @return void + */ + public function set($fld, $val) { + $this->startSession(); + $_SESSION [$fld] = $val; + } + + /** + * Sets a value key pair in a class in session + * + * @author KnowledgeTree Team + * @param string $class + * @param string $fld + * @param string $val + * @access public + * @return void + */ + public function setClass($class , $k, $v) { + $this->startSession(); + $classArray = $this->get($class); + if(isset($classArray[$k])) { + if($classArray[$k] != $v) { + $classArray[$k] = $v; + } + } else { + $classArray[$k] = $v; + } + $_SESSION [ $class] = $classArray; + } + + /** + * Sets a error value key pair in a class in session + * + * @author KnowledgeTree Team + * @param string $class + * @param string $fld + * @param string $val + * @access public + * @return void + */ + public function setClassError($class, $k, $v) { + $this->startSession(); + $classArray = $this->get($class); + if(isset($classArray[$k])) { + if($classArray[$k] != $v) { + $classArray[$k] = $v; + } + } else { + $classArray[$k] = $v; + } + $_SESSION [ $class] = $classArray; + } + + /** + * Clear error values in a class session + * + * @author KnowledgeTree Team + * @param string $class + * @param string $fld + * @param string $val + * @access public + * @return void + */ + public function clearErrors($class) { + $classArray = $this->get($class); + unset($classArray['errors']); + $_SESSION [ $class] = $classArray; + } + + /** + * Unset a value in session + * + * @author KnowledgeTree Team + * @param string $fld + * @access public + * @return void + */ + public function un_set($fld) { + $this->startSession(); + unset($_SESSION [$fld]); + } + + /** + * Unset a class value in session + * + * @author KnowledgeTree Team + * @param string $class + * @access public + * @return void + */ + public function un_setClass($class) { + $this->startSession(); + unset($_SESSION [$class]); + } + + /** + * Destroy the session + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function destroy() { + $this->startSession(); + unset($_SESSION); + session_destroy(); + } + + /** + * Get a session value + * + * @author KnowledgeTree Team + * @param string $fld + * @access public + * @return string + */ + public function get($fld) { + $this->startSession(); + return $_SESSION [$fld]; + } + + /** + * Check if a field exists in session + * + * @author KnowledgeTree Team + * @param string $fld + * @access public + * @return string + */ + public function is_set($fld) { + $this->startSession(); + return isset($_SESSION [$fld]); + } + + /** + * Return a class from session + * + * @author KnowledgeTree Team + * @param string $fld + * @access public + * @return string + */ + public function getClass($class) { + return $_SESSION[$class]; + } +} +?> \ No newline at end of file diff --git a/setup/wizard/sql/data.sql b/setup/wizard/sql/data.sql new file mode 100755 index 0000000..46041a3 --- /dev/null +++ b/setup/wizard/sql/data.sql @@ -0,0 +1,2795 @@ +-- +-- $Id$ +-- +-- KnowledgeTree Community Edition +-- Document Management Made Simple +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. +-- Portions copyright The Jam Warehouse Software (Pty) Limited +-- +-- This program is free software; you can redistribute it and/or modify it under +-- the terms of the GNU General Public License version 3 as published by the +-- Free Software Foundation. +-- +-- This program is distributed in the hope that it will be useful, but WITHOUT +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +-- details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +-- California 94120-7775, or email info@knowledgetree.com. +-- +-- The interactive user interfaces in modified source and object code versions +-- of this program must display Appropriate Legal Notices, as required under +-- Section 5 of the GNU General Public License version 3. +-- +-- In accordance with Section 7(b) of the GNU General Public License version 3, +-- these Appropriate Legal Notices must retain the display of the "Powered by +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +-- must display the words "Powered by KnowledgeTree" and retain the original +-- copyright notice. +-- Contributor( s): ______________________________________ +-- +-- MySQL dump 10.11 +-- +-- Host: localhost Database: ktdms +-- ------------------------------------------------------ +-- Server version 5.0.41-log + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Dumping data for table `active_sessions` +-- + +LOCK TABLES `active_sessions` WRITE; +/*!40000 ALTER TABLE `active_sessions` DISABLE KEYS */; +/*!40000 ALTER TABLE `active_sessions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `archive_restoration_request` +-- + +LOCK TABLES `archive_restoration_request` WRITE; +/*!40000 ALTER TABLE `archive_restoration_request` DISABLE KEYS */; +/*!40000 ALTER TABLE `archive_restoration_request` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `archiving_settings` +-- + +LOCK TABLES `archiving_settings` WRITE; +/*!40000 ALTER TABLE `archiving_settings` DISABLE KEYS */; +/*!40000 ALTER TABLE `archiving_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `archiving_type_lookup` +-- + +LOCK TABLES `archiving_type_lookup` WRITE; +/*!40000 ALTER TABLE `archiving_type_lookup` DISABLE KEYS */; +INSERT INTO `archiving_type_lookup` VALUES +(1,'Date'), +(2,'Utilisation'); +/*!40000 ALTER TABLE `archiving_type_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `authentication_sources` +-- + +LOCK TABLES `authentication_sources` WRITE; +/*!40000 ALTER TABLE `authentication_sources` DISABLE KEYS */; +/*!40000 ALTER TABLE `authentication_sources` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `column_entries` +-- + +LOCK TABLES `column_entries` WRITE; +/*!40000 ALTER TABLE `column_entries` DISABLE KEYS */; +INSERT INTO `column_entries` VALUES +(1,'ktcore.columns.selection','ktcore.views.browse','',0,1), +(2,'ktcore.columns.title','ktcore.views.browse','',1,1), +(3,'ktcore.columns.download','ktcore.views.browse','',2,0), +(4,'ktcore.columns.creationdate','ktcore.views.browse','',3,0), +(5,'ktcore.columns.modificationdate','ktcore.views.browse','',4,0), +(6,'ktcore.columns.creator','ktcore.views.browse','',5,0), +(7,'ktcore.columns.workflow_state','ktcore.views.browse','',6,0), +(8,'ktcore.columns.selection','ktcore.views.search','',0,1), +(9,'ktcore.columns.title','ktcore.views.search','',1,1), +(10,'ktcore.columns.download','ktcore.views.search','',2,0), +(11,'ktcore.columns.creationdate','ktcore.views.search','',3,0), +(12,'ktcore.columns.modificationdate','ktcore.views.search','',4,0), +(13,'ktcore.columns.creator','ktcore.views.search','',5,0), +(14,'ktcore.columns.workflow_state','ktcore.views.search','',6,0), +(15,'ktcore.columns.preview','ktcore.views.browse','a:0:{}',2,0); +/*!40000 ALTER TABLE `column_entries` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `comment_searchable_text` +-- + +LOCK TABLES `comment_searchable_text` WRITE; +/*!40000 ALTER TABLE `comment_searchable_text` DISABLE KEYS */; +/*!40000 ALTER TABLE `comment_searchable_text` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `config_groups` +-- + +LOCK TABLES `config_groups` WRITE; +/*!40000 ALTER TABLE `config_groups` DISABLE KEYS */; +INSERT INTO `config_groups` VALUES +(1, 'browse', 'Browse View', 'Configurable options for working in Browse View', 'User Interface Settings'), +(2, 'cache', 'Cache', 'Configure settings for the KnowledgeTree cache. Only advanced users should change these settings.', 'General Settings'), +(3, 'CustomErrorMessages', 'Custom Error Messages', 'Configuration settings for custom error messages. Only advanced users should change these settings.', 'User Interface Settings'), +(4, 'dashboard', 'Dashboard', 'Configures Dashboard Settings', 'General Settings'), +(5, 'DiskUsage', 'Disk Usage Dashlet', 'Configures the Disk Usage dashlet ', 'General Settings'), +(6, 'email', 'Email', 'Enables Email on your KnowledgeTree installation and configures Email settings. Note that several KnowledgeTree features use these settings. ', 'Email Settings'), +(7, 'export', 'Export', 'Configures KnowledgeTree''s ''Bulk Export'' feature.', 'General Settings'), +(8, 'externalBinary', 'External Binaries', 'KnowledgeTree uses various external binaries. This section defines the paths to these binaries.
Only advanced users should change these settings.', 'General Settings'), +(9, 'i18n', 'Internationalization', 'Configures settings for Internationalization.', 'Internationalisation Settings'), +(10, 'import', 'Import', 'Configures settings on Bulk Import.', 'General Settings'), +(11, 'indexer', 'Document Indexer', 'Configures the Document Indexer. Only advanced users should change these settings.', 'Search and Indexing Settings'), +(12, 'KnowledgeTree', 'KnowledgeTree', 'Configures general settings for your KnowledgeTree server installation.', 'General Settings'), +(13, 'KTWebDAVSettings', 'WebDAV', 'Configuration options for third-party WebDAV clients', 'Client Tools Settings'), +(14, 'openoffice', 'OpenOffice.org Service', 'Configuration options for the OpenOffice.org service. Note that several KnowledgeTree features use this service.', 'Search and Indexing Settings'), +(15, 'search', 'Search', 'Configures settings for KnowledgeTree''s Search function.', 'Search and Indexing Settings'), +(16, 'session', 'Session Management', 'Session management configuration.', 'General Settings'), +(17, 'storage', 'Storage', 'Configure the KnowledgeTree storage manager.', 'General Settings'), +(18, 'tweaks', 'Tweaks', 'Small configuration tweaks', 'General Settings'), +(19, 'ui', 'User Interface', 'General user interface configuration', 'User Interface Settings'), +(20, 'urls', 'Urls', 'The paths to the KnowledgeTree server and filesystem.
Full values are specific to your installation (Windows or Linux). Only advanced users should change these settings.', 'General Settings'), +(21, 'user_prefs', 'User Preferences', 'Configures user preferences.', 'General Settings'), +(22, 'webservice', 'Web Services', 'KnowledgeTree Web Service Interface configuration. Note that a number of KnowledgeTree Tools rely on this service.', 'Client Tools Settings'), +(23, 'ldapAuthentication', 'LDAP Authentication', 'Configures LDAP Authentication', 'General Settings'), +(24, 'server', 'Server Settings', 'Configuration settings for the server', 'General Settings'); +/*!40000 ALTER TABLE `config_groups` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `config_settings` +-- + +LOCK TABLES `config_settings` WRITE; +/*!40000 ALTER TABLE `config_settings` DISABLE KEYS */; +INSERT INTO `config_settings` VALUES +(1, 'ui', 'OEM Application Name', 'Specifies the application name used by KnowledgeTree OEM partners. This name replaces \'KnowledgeTree\' wherever the application name displays in the interface.', 'appName', 'KnowledgeTree', 'KnowledgeTree', 'string', NULL, 1), +(2, 'KnowledgeTree', 'Scheduler Interval', 'Defines the frequency, in seconds, at which the Scheduler is set to run.', 'schedulerInterval', 'default', '30', 'numeric_string', NULL, 1), +(3, 'dashboard', 'Always Display \'Your Checked-out Documents\'', 'Defines whether to display the \'Your Checked-out Documents\' dashlet, even when there is no data to display. Default is \'False\'.', 'alwaysShowYCOD', 'default', 'false', 'boolean', NULL, 1), +(4, 'urls', 'Graphics Url', 'The path to the user interface graphics.', 'graphicsUrl', 'default', '${rootUrl}/graphics', 'string', NULL, 1), +(5, 'urls', 'User Interface Url', 'The path to the core user interface libraries.', 'uiUrl', 'default', '${rootUrl}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1), +(6, 'tweaks', 'Browse to Unit Folder', 'Specifies a logged in user\'s \'Unit\' folder as their default folder view in Browse Documents. The default, \'False\', displays the root folder.', 'browseToUnitFolder', 'default', 'false', 'boolean', NULL, 1), +(7, 'tweaks', 'Generic Metadata Required', 'Defines whether to present KnowledgeTree\'s generic metadata fields for users to fill out on document upload. Default is \'True\'.', 'genericMetaDataRequired', 'default', 'true', 'boolean', NULL, 1), +(8, 'tweaks', 'Noisy Bulk Operations', 'Defines whether bulk operations generates a transaction notice on each item, or only on the folder. The default, \'False\' indicates that only folder transactions occur.', 'noisyBulkOperations', 'default', 'false', 'boolean', NULL, 1), +(9, 'tweaks', 'Php Error Log File', 'Enables PHP error logging to the log/php_error_log file. Default is \'False\'.', 'phpErrorLogFile', 'default', 'false', 'boolean', NULL, 1), +(10, 'email', 'Email Server', 'The address of the SMTP server. If the host name fails, try the IP address.', 'emailServer', 'none', 'none', '', NULL, 1), +(11, 'email', 'Email Port', 'The port of the SMTP server. The default is 25.', 'emailPort', 'default', '', 'numeric_string', NULL, 1), +(12, 'email', 'Email Authentication', 'Defines whether authentication is required for connecting to SMTP. Default is \'False\'. Change to \'True\' to force users to log in using their username and password.', 'emailAuthentication', 'default', 'false', 'boolean', NULL, 1), +(13, 'email', 'Email Username', 'The user name of the SMTP (email) server.', 'emailUsername', 'default', 'username', 'string', NULL, 1), +(14, 'email', 'Email Password', 'The password for the Email server. ', 'emailPassword', 'default', 'password', 'string', NULL, 1), +(15, 'email', 'Email From', 'Defines the sending email address for emails sent from KnowledgeTree.', 'emailFrom', 'default', 'kt@example.org', 'string', NULL, 1), +(16, 'email', 'Email From Name', 'The name used by KnowledgeTree for system-generated emails.', 'emailFromName', 'default', 'KnowledgeTree Document Management System', 'string', NULL, 1), +(17, 'email', 'Allow Attachment', 'Defines whether to allow users to send attachments from within KnowledgeTree. Default is \'False\'.', 'allowAttachment', 'default', 'false', 'boolean', NULL, 1), +(18, 'email', 'Allow External Email Addresses', 'Defines whether to allow KnowledgeTree users to send email to any email address - to other KnowledgeTree users and to external users. Default is \'False\'.', 'allowEmailAddresses', 'default', 'false', 'boolean', NULL, 1), +(19, 'email', 'Send As System', 'Defines whether to always send email from the KnowledgeTree \'Email From\' address, even if there is an identifiable sending user. Default is \'False\'.', 'sendAsSystem', 'default', 'false', 'boolean', NULL, 1), +(20, 'email', 'Only Own Groups', 'Defines whether to restrict users to sending emails only within their KnowledgeTree user group.
Default is \'False\'.
Set to \'True\' to disable sending of emails outside of the user\'s group.', 'onlyOwnGroups', 'default', 'false', 'boolean', NULL, 1), +(21, 'user_prefs', 'Password Length', 'Defines the minimum password length on password-setting. ', 'passwordLength', 'default', '6', 'numeric_string', NULL, 1), +(22, 'user_prefs', 'Restrict Admin Passwords', 'Defines whether to require the admin user to apply minimum password length when creating and editing accounts. Default is \'False\', which allows admin users to create accounts with shorter passwords than the specified minimum.', 'restrictAdminPasswords', 'default', 'false', 'boolean', NULL, 1), +(23, 'user_prefs', 'Restrict Preferences', 'Defines whether to restrict users from accessing the Preferences menu. Default is \'False\'.', 'restrictPreferences', 'default', 'false', 'boolean', NULL, 1), +(24, 'session', 'Session Timeout', 'Defines the period, in seconds, after which the system times out following a period of inactivity.', 'sessionTimeout', 'default', '1200', 'numeric_string', NULL, 1), +(25, 'session', 'Anonymous Login', 'Defines whether to allow anonymous users to log in automatically. Default is \'False\'.
Best practice is not to allow automatic login of anonymous users unless you understand KnowledgeTree\'s security mechanisms, and have sensibly applied the roles \'Everyone\' and \'Authenticated Users\'. ', 'allowAnonymousLogin', 'default', 'false', 'boolean', NULL, 1), +(26, 'ui', 'Company Logo', 'Specifies the path (relative to the KnowledgeTree directory) to the custom logo for the KnowledgeTree user interface.
The logo must be 50px tall, and on a white background.', 'companyLogo', 'default', '${rootUrl}/resources/companylogo.png', 'string', NULL, 1), +(27, 'ui', 'Company Logo Width', 'Defines the width, in pixels, of your custom logo.', 'companyLogoWidth', 'default', '313px', 'string', NULL, 1), +(28, 'ui', 'Company Logo Title', 'Alternative text for the title of your custom company logo, for accessibility purposes.', 'companyLogoTitle', 'default', 'Add Company Name', 'string', NULL, 1), +(29, 'ui', 'Always Show All Results', 'Defines, where \'show all users\' is an available action, whether to display the full list of users and groups on page load, without requiring the user to click \'show all users\'. Default is \'False\'.', 'alwaysShowAll', 'default', 'false', 'boolean', NULL, 1), +(30, 'ui', 'Condensed Admin UI', 'Defines whether to use a condensed (compact) version of the KnowledgeTree user interface for the admin user. Default is \'False\'.', 'condensedAdminUI', 'default', 'false', 'boolean', NULL, 1), +(31, 'ui', 'Fake Mimetype', 'Defines whether browsers may provide the option to \'open\' a document from download. Default is \'False\'.
Change to \'True\' to prevent (most) browsers from giving users the \'Open\' option.', 'fakeMimetype', 'default', 'false', 'boolean', NULL, 1), +(32, 'i18n', 'UseLike', 'Enables \'search ideographic language\' on languages that do not have distinguishable words (typically, where there is no space character), and allows KnowledgeTree\'s Search function to deal with this issue. Default is \'False\'.', 'useLike', 'default', 'false', 'boolean', NULL, 1), +(33, 'import', 'unzip', 'Specifies the location of the unzip binary. The unzip command uses \'execSearchPath\' to find the unzip binary if the path is not provided. Values are auto-populated, specific to your installation (Windows or Linux).', 'unzip', 'default', 'unzip', 'string', NULL, 1), +(34, 'export', 'zip', 'The location of the zip binary.
The zip command uses \'execSearchPath\' to find the zip binary if the path is not provided. Values are auto-populated, specific to your installation (Windows or Linux).', 'zip', 'default', 'zip', 'string', NULL, 1), +(35, 'externalBinary', 'xls2csv', 'Path to binary', 'xls2csv', 'default', 'xls2csv', 'string', NULL, 1), +(36, 'externalBinary', 'pdftotext', 'Path to binary', 'pdftotext', 'default', 'pdftotext', 'string', NULL, 1), +(37, 'externalBinary', 'catppt', 'Path to binary', 'catppt', 'default', 'catppt', 'string', NULL, 1), +(38, 'externalBinary', 'pstotext', 'Path to binary', 'pstotext', 'default', 'pstotext', 'string', NULL, 1), +(39, 'externalBinary', 'catdoc', 'Path to binary', 'catdoc', 'default', 'catdoc', 'string', NULL, 1), +(40, 'externalBinary', 'antiword', 'Path to binary', 'antiword', 'default', 'antiword', 'string', NULL, 1), +(41, 'externalBinary', 'python', 'Path to binary', 'python', 'default', 'python', 'string', NULL, 1), +(42, 'externalBinary', 'java', 'Path to binary', 'java', 'default', 'java', 'string', NULL, 1), +(43, 'externalBinary', 'php', 'Path to binary', 'php', 'default', 'php', 'string', NULL, 1), +(44, 'externalBinary', 'df', 'Path to binary', 'df', 'default', 'df', 'string', NULL, 1), +(45, 'cache', 'Proxy Cache Path', 'The path to the proxy cache. Default is /cache.', 'proxyCacheDirectory', 'default', '${varDirectory}/proxies', 'string', NULL, 1), +(46, 'cache', 'Proxy Cache Enabled', 'Enables proxy caching. Default is \'True\'. ', 'proxyCacheEnabled', 'default', 'true', 'boolean', NULL, 1), +(47, 'KTWebDAVSettings', 'Debug', 'Switch debug output to \'on\' only if you must view \'all\' debugging information for KTWebDAV. The default is \'off\'.', 'debug', 'off', 'off', 'radio', 'a:1:{s:7:"options";a:2:{i:0;s:2:"on";i:1;s:3:"off";}}', 1), +(48, 'KTWebDAVSettings', 'Safemode', 'To allow \'write\' access to WebDAV clients, set safe mode to "off". The default is \'on\'.', 'safemode', 'on', 'on', 'radio', 'a:1:{s:7:"options";a:2:{i:0;s:2:"on";i:1;s:3:"off";}}', 1), +(49, 'search', 'Search Base', 'The location of the Search and Indexing libraries.', 'searchBasePath', 'default', '${fileSystemRoot}/search2', 'string', NULL, 0), +(50, 'search', 'Fields Path', 'The location of the Search and Indexing fields.', 'fieldsPath', 'default', '${searchBasePath}/search/fields', 'string', NULL, 0), +(51, 'search', 'Results Display Format', 'Defines how search results display. Options are: search engine style, or browse view style. The default is \'Search Engine Style\'.', 'resultsDisplayFormat', 'default', 'searchengine', 'dropdown', 'a:1:{s:7:"options";a:2:{i:0;a:2:{s:5:"label";s:19:"Search Engine Style";s:5:"value";s:12:"searchengine";}i:1;a:2:{s:5:"label";s:17:"Browse View Style";s:5:"value";s:10:"browseview";}}}', 1), +(52, 'search', 'Results per Page', 'The number of results to display per page.', 'resultsPerPage', 'default', '25', 'numeric_string', NULL, 1), +(53, 'search', 'Date Format', 'The date format used when making queries using widgets.', 'dateFormat', 'default', 'Y-m-d', 'string', NULL, 0), +(54, 'browse', 'Property Preview Activation', 'Defines the action for displaying the Property Preview. Options are \'On Click\' or \'Mouseover\'. Default is \'On Click\'.', 'previewActivation', 'default', 'onclick', 'dropdown', 'a:1:{s:7:"options";a:2:{i:0;a:2:{s:5:"label";s:9:"Mouseover";s:5:"value";s:10:"mouse-over";}i:1;a:2:{s:5:"label";s:8:"On Click";s:5:"value";s:7:"onclick";}}}', 1), +(55, 'indexer', 'Core Class', 'Defines the core indexing class. Options include: JavaXMLRPCLuceneIndexer or PHPLuceneIndexer.', 'coreClass', 'default', 'JavaXMLRPCLuceneIndexer', 'string', NULL, 0), +(56, 'indexer', 'Batch Documents', 'The number of documents to be indexed in a cron session. ', 'batchDocuments', 'default', '20', 'numeric_string', 'a:3:{s:9:"increment";i:10;s:7:"minimum";i:20;s:7:"maximum";i:200;}', 1), +(57, 'indexer', 'Batch Migrate Documents', 'The number of documents to be migrated in a cron session, using KnowledgeTree\'s migration script. ', 'batchMigrateDocuments', 'default', '500', 'numeric_string', NULL, 1), +(58, 'indexer', 'Indexing Base ', 'The location of the Indexing engine.', 'indexingBasePath', 'default', '${searchBasePath}/indexing', 'string', NULL, 0), +(59, 'indexer', 'Lucene Directory', 'The location of the Lucene indexes.', 'luceneDirectory', 'default', '${varDirectory}/indexes', 'string', NULL, 0), +(60, 'indexer', 'Extractors ', 'The location of the text extractors.', 'extractorPath', 'default', '${indexingBasePath}/extractors', 'string', NULL, 0), +(61, 'indexer', 'Extractor Hook ', 'The location of the extractor hooks.', 'extractorHookPath', 'default', '${indexingBasePath}/extractorHooks', 'string', NULL, 0), +(62, 'indexer', 'Java Lucene Server ', 'The location (URL) of the Java Lucene server. Ensure that this matches the Lucene server configuration. ', 'javaLuceneURL', 'default', 'http://127.0.0.1:8875', 'string', NULL, 0), +(63, 'openoffice', 'Host', 'Defines the host on which OpenOffice is installed. Ensure that this points to the OpenOffice server. ', 'host', 'default', '127.0.0.1', 'string', NULL, 1), +(64, 'openoffice', 'Port', 'Defines the port on which OpenOffice listens. ', 'port', 'default', '8100', 'numeric_string', NULL, 1), +(65, 'webservice', 'Upload Directory', 'Directory to which all uploads via webservices are persisted before moving into the repository.', 'uploadDirectory', 'default', '${varDirectory}/uploads', 'string', NULL, 1), +(66, 'webservice', 'Download Url', 'Url which is sent to clients via web service calls so they can then download file via HTTP GET.', 'downloadUrl', 'default', '${rootUrl}/ktwebservice/download.php', 'string', NULL, 1), +(67, 'webservice', 'Upload Expiry', 'Period indicating how long a file should be retained in the uploads directory.', 'uploadExpiry', 'default', '30', 'numeric_string', 'a:1:{s:6:"append";s:7:"seconds";}', 1), +(68, 'webservice', 'Download Expiry', 'Period indicating how long a download link will be available.', 'downloadExpiry', 'default', '30', 'numeric_string', 'a:1:{s:6:"append";s:7:"seconds";}', 1), +(69, 'webservice', 'Random Key Text', 'Random text used to construct a hash. This can be customised on installations so there is less chance of overlap between installations.', 'randomKeyText', 'default', 'bkdfjhg23yskjdhf2iu', 'string', NULL, 1), +(70, 'webservice', 'Validate Session Count', 'Validating session counts can interfere with access. It is best to leave this disabled, unless very strict access is required.', 'validateSessionCount', 'false', 'false', 'boolean', NULL, 1), +(71, 'webservice', 'Use Default Document Type If Invalid', 'If the document type is invalid when adding a document, we can be tollerant and just default to the Default document type.', 'useDefaultDocumentTypeIfInvalid', 'true', 'true', 'boolean', NULL, 1), +(72, 'webservice', 'Debug', 'The web service debugging if the logLevel is set to DEBUG. We can set the value to 4 or 5 to get more verbose web service logging. Level 4 logs the name of functions being accessed. Level 5 logs the SOAP XML requests and responses.', 'debug', '0', '0', 'numeric_string', NULL, 1), +(73, 'DiskUsage', 'Warning Threshold', 'The percentage below which the mount in the Disk Usage dashlet changes to Orange, indicating that the mount point is running out of free space. ', 'warningThreshold', '10', '10', 'numeric_string', 'a:1:{s:6:"append";s:1:"%";}', 1), +(74, 'DiskUsage', 'Urgent Threshold', 'The percentage below which the mount in the Disk Usage dashlet changes to Red, indicating that the lack of free space in the mount is critically low.', 'urgentThreshold', '5', '5', 'numeric_string', 'a:1:{s:6:"append";s:1:"%";}', 1), +(75, 'KnowledgeTree', 'Use AJAX Dashboard', 'Defines whether to use the AJAX dashboard, which allows users to drag the dashlets to change the Dashboard display.
Default is \'True\'. ', 'useNewDashboard', 'true', 'true', 'boolean', NULL, 1), +(76, 'i18n', 'Default Language', 'Defines the default language for the KnowledgeTree user interface. The default is English (en).', 'defaultLanguage', 'default', 'en', 'string', NULL, 1), +(77, 'CustomErrorMessages', 'Custom Error Messages', 'Enables and disables custom error messages. Default is \'On\' (enabled).', 'customerrormessages', 'default', 'on', 'radio', 'a:1:{s:7:"options";a:2:{i:0;s:2:"on";i:1;s:3:"off";}}', 1), +(78, 'CustomErrorMessages', 'Custom Error Page Path', 'The file name or URL of the custom error page.', 'customerrorpagepath', 'default', 'customerrorpage.php', 'string', NULL, 1), +(79, 'CustomErrorMessages', 'Custom Error Handler', 'Enables and disables the custom error handler feature. Default is \'On\' (enabled).', 'customerrorhandler', 'default', 'on', 'radio', 'a:1:{s:7:"options";a:2:{i:0;s:2:"on";i:1;s:3:"off";}}', 1), +(80, 'ui', 'Enable Custom Skinning', 'Defines whether customs skins may be used for the KnowledgeTree user interface. Default is \'False\'.', 'morphEnabled', 'default', 'false', 'boolean', NULL, 1), +(81, 'ui', 'Default Skin', 'Defines, when skinning is enabled, the location of the custom skin to use for the KnowledgeTree user interface.', 'morphTo', 'default', 'blue', 'string', NULL, 1), +(82, 'KnowledgeTree', 'Log Level', 'Defines the level of logging to use (DEBUG, INFO, WARN, ERROR). The default is INFO.', 'logLevel', 'default', 'INFO', 'dropdown', 'a:1:{s:7:"options";a:4:{i:0;a:2:{s:5:"label";s:4:"INFO";s:5:"value";s:4:"INFO";}i:1;a:2:{s:5:"label";s:4:"WARN";s:5:"value";s:4:"WARN";}i:2;a:2:{s:5:"label";s:5:"ERROR";s:5:"value";s:5:"ERROR";}i:3;a:2:{s:5:"label";s:5:"DEBUG";s:5:"value";s:5:"DEBUG";}}}', 1), +(83, 'storage', 'Manager', 'Defines the storage manager to use for storing documents on the file system. ', 'manager', 'default', 'KTOnDiskHashedStorageManager', 'string', NULL, 1), +(84, 'ui', 'IE GIF Theme Overrides', 'Defines whether to use the additional IE-specific GIF theme overrides, which may restrict
the working of arbitrary theme packs without having GIF versions available. Default is \'False\'.', 'ieGIF', 'false', 'true', 'boolean', NULL, 1), +(85, 'ui', 'Automatic Refresh', 'Set to true to automatically refresh the page after the session would have expired.', 'automaticRefresh', 'default', 'false', 'boolean', NULL, 1), +(86, 'ui', 'dot', 'Location of the dot binary (command location). On Unix systems, to determine whether the \'dot\' application is installed.', 'dot', 'dot', 'dot', 'string', NULL, 1), +(87, 'urls', 'Log Directory', 'The path to the Log directory.', 'logDirectory', 'default', '${varDirectory}/log', 'string', NULL, 1), +(88, 'urls', 'UI Directory', 'The path to the UI directory.', 'uiDirectory', 'default', '${fileSystemRoot}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1), +(89, 'urls', 'Temp Directory', 'The path to the temp directory.', 'tmpDirectory', 'default', '${varDirectory}/tmp', 'string', NULL, 1), +(90, 'urls', 'Stopwords File', 'The path to the stopword file.', 'stopwordsFile', 'default', '${fileSystemRoot}/config/stopwords.txt', 'string', NULL, 1), +(91, 'cache', 'Cache Enabled', 'Enables the KnowledgeTree cache. Default is \'False\'.', 'cacheEnabled', 'default', 'false', 'boolean', NULL, 1), +(92, 'cache', 'Cache Directory', 'The location of the KnowledgeTree cache.', 'cacheDirectory', 'default', '${varDirectory}/cache', 'string', NULL, 1), +(93, 'openoffice', 'Program Path', 'Defines the path to the OpenOffice program directory. ', 'programPath', 'default', '../openoffice/program', 'string', NULL, 1), +(94, 'urls', 'Document Directory', 'The path to the documents directory', 'documentRoot', 'default', '${varDirectory}/Documents', 'string', NULL, 1), +(95, 'KnowledgeTree', 'Redirect To Browse View', 'Defines whether to redirect to the Browse view (Browse Documemts) on login, instead of the Dashboard.
Default is \'False\'. ', 'redirectToBrowse', 'default', 'false', 'boolean', NULL, 1), +(96, 'KnowledgeTree', 'Redirect To Browse View: Exceptions', 'Specifies that, when \'Redirect To Browse\' is set to \'True\' all users, except for the users listed in the text field below are redirected to the Browse view on log in. The users listed for this setting are directed to the KnowledgeTree Dashboard. To define exceptions, add user names in the text field as follows, e.g. admin, joebloggs, etc.', 'redirectToBrowseExceptions', '', '', 'string', NULL, 1), +(97, 'session', 'Allow Automatic Sign In', 'Defines whether to automatically create a user account on first login for any user who does not yet exist in the system. Default is \'False\'.', 'allowAutoSignup', 'default', 'false', 'boolean', 'string', 1), +(98, 'ldapAuthentication', 'Create Groups Automatically', 'Defines whether to allow LDAP groups to be created automatically. Default is \'False\'.', 'autoGroupCreation', 'default', 'false', 'boolean', 'string', 1), +(99, 'browse', 'Truncate Document and Folder Titles in Browse View', 'Defines the maximum number of characters to display for a document or folder title in the browse view. The maximum allowable number of characters is 255.', 'titleCharLength', 'default', '40', 'numeric_string', 'string', 1), +(100, 'import', 'Disable Bulk Import', 'Disable the bulk import plugin', 'disableBulkImport', 'default', 'false', 'string', NULL, 1), +(101, 'session', 'Enable version check', 'Compares the system version with the database version to determine if a database upgrade is needed.','dbversioncompare', 'default', 'true', 'boolean', NULL, 0), +(102, 'tweaks', 'Update Document Version (Content) on Editing Metadata', 'The document version is equivalent to the document content version. When set to true the document version will be increased when the document metadata is updated.', 'updateContentVersion', 'default', 'false', 'boolean', NULL, 1), +(103, 'tweaks', 'Always Force Original Filename on Checkin', 'When set to true, the checkbox for "Force Original Filename" will be hidden on check-in. This ensures that the filename will always stay the same.', 'disableForceFilenameOption', 'default', 'false', 'boolean', NULL, 1), +(104, 'KnowledgeTree', 'The Location of the Mime Magic File', 'The path to the mime magic database file.', 'magicDatabase', 'default', '${fileSystemRoot}/../common/share/file/magic', 'string', NULL, 1), +(105, 'search', 'Maximum results from SQL query', 'The maximum results from an SQL query', 'maxSqlResults', 'default', '10000', 'numeric_string', NULL, 1), +(106, 'indexer', 'Enable the Document Indexer', 'Enables the indexing of document content for full text searching.', 'enableIndexing', 'default', 'true', 'boolean', NULL, 1), +(107, 'server', 'Internal Server IP', 'The internal IP for the server, this is usually set to 127.0.0.1.', 'internal_server_name', 'default', '127.0.0.1', 'string', NULL, 1), +(108, 'server', 'Internal Server port', 'The internal port for the server.', 'internal_server_port', 'default', '80', 'numeric_string', NULL, 1), +(109, 'server', 'External Server IP', 'The external IP for the server.', 'server_name', 'default', '', 'string', NULL, 1), +(110, 'server', 'External Server port', 'The external port for the server.', 'server_port', 'default', '', 'numeric_string', NULL, 1), +(111, 'KnowledgeTree', 'Root Url', 'The path to the web application from the root of the web server. For example, if KT is at http://example.org/foo/, then the root directory should be \'/foo\'.', 'rootUrl', '', '', 'string', NULL, 1), +(112, 'urls', 'Var Directory', 'The path to the var directory.', 'varDirectory', 'default', '${fileSystemRoot}/var', 'string', NULL, 1), +(113, 'tweaks','Increment version on rename','Defines whether to update the version number if a document filename is changed/renamed.','incrementVersionOnRename','default','true','boolean',NULL,1), +(114, 'ui', 'System URL', 'The system url, used in the main logo.', 'systemUrl', 'default', 'http://www.knowledgetree.com', 'string', '', 1), +(115, 'ldapAuthentication', 'Allow Moving Users in LDAP/AD', 'Moving users around within the LDAP or Active Directory structure will cause failed logins for these users. When this setting is enabled, a failed login will trigger a search for the user using their sAMAccountName setting and update their authentication details.', 'enableLdapUpdate', 'default', 'false', 'boolean', NULL, 1), +(116, 'export', 'Use External Zip Binary', 'Utilises the external zip binary for compressing archives. The default is to use the PEAR archive class.', 'useBinary', 'default', 'false', 'boolean', NULL, 1), +(117, 'export', 'Use Bulk Download Queue', 'The bulk download can be large and can prevent normal browsing. The download queue performs the bulk downloads in the background.', 'useDownloadQueue', 'default', 'true', 'boolean', NULL, 1); +/*!40000 ALTER TABLE `config_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `dashlet_disables` +-- + +LOCK TABLES `dashlet_disables` WRITE; +/*!40000 ALTER TABLE `dashlet_disables` DISABLE KEYS */; +/*!40000 ALTER TABLE `dashlet_disables` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `data_types` +-- + +LOCK TABLES `data_types` WRITE; +/*!40000 ALTER TABLE `data_types` DISABLE KEYS */; +INSERT INTO `data_types` VALUES +(1,'STRING'), +(2,'CHAR'), +(3,'TEXT'), +(4,'INT'), +(5,'FLOAT'); +/*!40000 ALTER TABLE `data_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `discussion_comments` +-- + +LOCK TABLES `discussion_comments` WRITE; +/*!40000 ALTER TABLE `discussion_comments` DISABLE KEYS */; +/*!40000 ALTER TABLE `discussion_comments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `discussion_threads` +-- + +LOCK TABLES `discussion_threads` WRITE; +/*!40000 ALTER TABLE `discussion_threads` DISABLE KEYS */; +/*!40000 ALTER TABLE `discussion_threads` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_archiving_link` +-- + +LOCK TABLES `document_archiving_link` WRITE; +/*!40000 ALTER TABLE `document_archiving_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_archiving_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_content_version` +-- + +LOCK TABLES `document_content_version` WRITE; +/*!40000 ALTER TABLE `document_content_version` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_content_version` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_fields` +-- + +LOCK TABLES `document_fields` WRITE; +/*!40000 ALTER TABLE `document_fields` DISABLE KEYS */; +INSERT INTO `document_fields` VALUES +(2,'Tag','STRING',0,0,0,2,0,'Tag Words',0), +(3,'Document Author','STRING',0,0,0,3,0,'Please add a document author',0), +(4,'Category','STRING',0,1,0,3,0,'Please select a category',1), +(5,'Media Type','STRING',0,1,0,3,0,'Please select a media type',2); +/*!40000 ALTER TABLE `document_fields` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_fields_link` +-- + +LOCK TABLES `document_fields_link` WRITE; +/*!40000 ALTER TABLE `document_fields_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_fields_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_incomplete` +-- + +LOCK TABLES `document_incomplete` WRITE; +/*!40000 ALTER TABLE `document_incomplete` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_incomplete` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_link` +-- + +LOCK TABLES `document_link` WRITE; +/*!40000 ALTER TABLE `document_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_link_types` +-- + +LOCK TABLES `document_link_types` WRITE; +/*!40000 ALTER TABLE `document_link_types` DISABLE KEYS */; +INSERT INTO `document_link_types` VALUES +(-1,'depended on','was depended on by','Depends relationship whereby one documents depends on another\'s creation to go through approval'), +(0,'Default','Default (reverse)','Default link type'), +(3,'Attachment','','Document Attachment'), +(4,'Reference','','Document Reference'), +(5,'Copy','','Document Copy'); +/*!40000 ALTER TABLE `document_link_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_metadata_version` +-- + +LOCK TABLES `document_metadata_version` WRITE; +/*!40000 ALTER TABLE `document_metadata_version` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_metadata_version` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_role_allocations` +-- + +LOCK TABLES `document_role_allocations` WRITE; +/*!40000 ALTER TABLE `document_role_allocations` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_role_allocations` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_searchable_text` +-- + +LOCK TABLES `document_searchable_text` WRITE; +/*!40000 ALTER TABLE `document_searchable_text` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_searchable_text` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_subscriptions` +-- + +LOCK TABLES `document_subscriptions` WRITE; +/*!40000 ALTER TABLE `document_subscriptions` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_subscriptions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_tags` +-- + +LOCK TABLES `document_tags` WRITE; +/*!40000 ALTER TABLE `document_tags` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_tags` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_text` +-- + +LOCK TABLES `document_text` WRITE; +/*!40000 ALTER TABLE `document_text` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_text` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_transaction_text` +-- + +LOCK TABLES `document_transaction_text` WRITE; +/*!40000 ALTER TABLE `document_transaction_text` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_transaction_text` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_transaction_types_lookup` +-- + +LOCK TABLES `document_transaction_types_lookup` WRITE; +/*!40000 ALTER TABLE `document_transaction_types_lookup` DISABLE KEYS */; +INSERT INTO `document_transaction_types_lookup` VALUES +(1,'Create','ktcore.transactions.create'), +(2,'Update','ktcore.transactions.update'), +(3,'Delete','ktcore.transactions.delete'), +(4,'Rename','ktcore.transactions.rename'), +(5,'Move','ktcore.transactions.move'), +(6,'Download','ktcore.transactions.download'), +(7,'Check In','ktcore.transactions.check_in'), +(8,'Check Out','ktcore.transactions.check_out'), +(9,'Collaboration Step Rollback','ktcore.transactions.collaboration_step_rollback'), +(10,'View','ktcore.transactions.view'), +(11,'Expunge','ktcore.transactions.expunge'), +(12,'Force CheckIn','ktcore.transactions.force_checkin'), +(13,'Email Link','ktcore.transactions.email_link'), +(14,'Collaboration Step Approve','ktcore.transactions.collaboration_step_approve'), +(15,'Email Attachment','ktcore.transactions.email_attachment'), +(16,'Workflow state transition','ktcore.transactions.workflow_state_transition'), +(17,'Permissions changed','ktcore.transactions.permissions_change'), +(18,'Role allocations changed','ktcore.transactions.role_allocations_change'), +(19,'Bulk Export','ktstandard.transactions.bulk_export'), +(20,'Copy','ktcore.transactions.copy'), +(21,'Delete Version','ktcore.transactions.delete_version'); +/*!40000 ALTER TABLE `document_transaction_types_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_transactions` +-- + +LOCK TABLES `document_transactions` WRITE; +/*!40000 ALTER TABLE `document_transactions` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_transactions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_type_fields_link` +-- + +LOCK TABLES `document_type_fields_link` WRITE; +/*!40000 ALTER TABLE `document_type_fields_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_type_fields_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_type_fieldsets_link` +-- + +LOCK TABLES `document_type_fieldsets_link` WRITE; +/*!40000 ALTER TABLE `document_type_fieldsets_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `document_type_fieldsets_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `document_types_lookup` +-- + +LOCK TABLES `document_types_lookup` WRITE; +/*!40000 ALTER TABLE `document_types_lookup` DISABLE KEYS */; +INSERT INTO `document_types_lookup` VALUES +(1,'Default',0); +/*!40000 ALTER TABLE `document_types_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `documents` +-- + +LOCK TABLES `documents` WRITE; +/*!40000 ALTER TABLE `documents` DISABLE KEYS */; +/*!40000 ALTER TABLE `documents` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `download_files` +-- + +LOCK TABLES `download_files` WRITE; +/*!40000 ALTER TABLE `download_files` DISABLE KEYS */; +/*!40000 ALTER TABLE `download_files` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `field_behaviour_options` +-- + +LOCK TABLES `field_behaviour_options` WRITE; +/*!40000 ALTER TABLE `field_behaviour_options` DISABLE KEYS */; +/*!40000 ALTER TABLE `field_behaviour_options` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `field_behaviours` +-- + +LOCK TABLES `field_behaviours` WRITE; +/*!40000 ALTER TABLE `field_behaviours` DISABLE KEYS */; +/*!40000 ALTER TABLE `field_behaviours` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `field_orders` +-- + +LOCK TABLES `field_orders` WRITE; +/*!40000 ALTER TABLE `field_orders` DISABLE KEYS */; +/*!40000 ALTER TABLE `field_orders` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `field_value_instances` +-- + +LOCK TABLES `field_value_instances` WRITE; +/*!40000 ALTER TABLE `field_value_instances` DISABLE KEYS */; +/*!40000 ALTER TABLE `field_value_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `fieldsets` +-- + +LOCK TABLES `fieldsets` WRITE; +/*!40000 ALTER TABLE `fieldsets` DISABLE KEYS */; +INSERT INTO `fieldsets` VALUES +(2,'Tag Cloud','tagcloud',0,0,NULL,1,0,0,0,'Tag Cloud',0), +(3,'General information','generalinformation',0,0,NULL,1,0,0,0,'General document information',0); +/*!40000 ALTER TABLE `fieldsets` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_descendants` +-- + +LOCK TABLES `folder_descendants` WRITE; +/*!40000 ALTER TABLE `folder_descendants` DISABLE KEYS */; +/*!40000 ALTER TABLE `folder_descendants` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_doctypes_link` +-- + +LOCK TABLES `folder_doctypes_link` WRITE; +/*!40000 ALTER TABLE `folder_doctypes_link` DISABLE KEYS */; +INSERT INTO `folder_doctypes_link` VALUES +(1,1,1); +/*!40000 ALTER TABLE `folder_doctypes_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_searchable_text` +-- + +LOCK TABLES `folder_searchable_text` WRITE; +/*!40000 ALTER TABLE `folder_searchable_text` DISABLE KEYS */; +INSERT INTO `folder_searchable_text` VALUES +(1,'Root Folder'); +/*!40000 ALTER TABLE `folder_searchable_text` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_subscriptions` +-- + +LOCK TABLES `folder_subscriptions` WRITE; +/*!40000 ALTER TABLE `folder_subscriptions` DISABLE KEYS */; +/*!40000 ALTER TABLE `folder_subscriptions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_transactions` +-- + +LOCK TABLES `folder_transactions` WRITE; +/*!40000 ALTER TABLE `folder_transactions` DISABLE KEYS */; +/*!40000 ALTER TABLE `folder_transactions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folder_workflow_map` +-- + +LOCK TABLES `folder_workflow_map` WRITE; +/*!40000 ALTER TABLE `folder_workflow_map` DISABLE KEYS */; +/*!40000 ALTER TABLE `folder_workflow_map` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folders` +-- + +LOCK TABLES `folders` WRITE; +/*!40000 ALTER TABLE `folders` DISABLE KEYS */; +INSERT INTO `folders` VALUES +(1,'Root Folder','Root Document Folder',NULL,1,0,NULL,NULL,1,5,0,1,NULL); +/*!40000 ALTER TABLE `folders` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `folders_users_roles_link` +-- + +LOCK TABLES `folders_users_roles_link` WRITE; +/*!40000 ALTER TABLE `folders_users_roles_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `folders_users_roles_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `groups_groups_link` +-- + +LOCK TABLES `groups_groups_link` WRITE; +/*!40000 ALTER TABLE `groups_groups_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `groups_groups_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `groups_lookup` +-- + +LOCK TABLES `groups_lookup` WRITE; +/*!40000 ALTER TABLE `groups_lookup` DISABLE KEYS */; +INSERT INTO `groups_lookup` VALUES +(1,'System Administrators',1,0,NULL,NULL,NULL,NULL); +/*!40000 ALTER TABLE `groups_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `help` +-- + +LOCK TABLES `help` WRITE; +/*!40000 ALTER TABLE `help` DISABLE KEYS */; +INSERT INTO `help` VALUES +(1,'browse','dochelp.html'), +(2,'dashboard','dashboardHelp.html'), +(3,'addFolder','addFolderHelp.html'), +(4,'editFolder','editFolderHelp.html'), +(5,'addFolderCollaboration','addFolderCollaborationHelp.html'), +(6,'modifyFolderCollaboration','addFolderCollaborationHelp.html'), +(7,'addDocument','addDocumentHelp.html'), +(8,'viewDocument','viewDocumentHelp.html'), +(9,'modifyDocument','modifyDocumentHelp.html'), +(10,'modifyDocumentRouting','modifyDocumentRoutingHelp.html'), +(11,'emailDocument','emailDocumentHelp.html'), +(12,'deleteDocument','deleteDocumentHelp.html'), +(13,'administration','administrationHelp.html'), +(14,'addGroup','addGroupHelp.html'), +(15,'editGroup','editGroupHelp.html'), +(16,'removeGroup','removeGroupHelp.html'), +(17,'assignGroupToUnit','assignGroupToUnitHelp.html'), +(18,'removeGroupFromUnit','removeGroupFromUnitHelp.html'), +(19,'addUnit','addUnitHelp.html'), +(20,'editUnit','editUnitHelp.html'), +(21,'removeUnit','removeUnitHelp.html'), +(22,'addOrg','addOrgHelp.html'), +(23,'editOrg','editOrgHelp.html'), +(24,'removeOrg','removeOrgHelp.html'), +(25,'addRole','addRoleHelp.html'), +(26,'editRole','editRoleHelp.html'), +(27,'removeRole','removeRoleHelp.html'), +(28,'addLink','addLinkHelp.html'), +(29,'addLinkSuccess','addLinkHelp.html'), +(30,'editLink','editLinkHelp.html'), +(31,'removeLink','removeLinkHelp.html'), +(32,'systemAdministration','systemAdministrationHelp.html'), +(33,'deleteFolder','deleteFolderHelp.html'), +(34,'editDocType','editDocTypeHelp.html'), +(35,'removeDocType','removeDocTypeHelp.html'), +(36,'addDocType','addDocTypeHelp.html'), +(37,'addDocTypeSuccess','addDocTypeHelp.html'), +(38,'manageSubscriptions','manageSubscriptionsHelp.html'), +(39,'addSubscription','addSubscriptionHelp.html'), +(40,'removeSubscription','removeSubscriptionHelp.html'), +(41,'preferences','preferencesHelp.html'), +(42,'editPrefsSuccess','preferencesHelp.html'), +(43,'modifyDocumentGenericMetaData','modifyDocumentGenericMetaDataHelp.html'), +(44,'viewHistory','viewHistoryHelp.html'), +(45,'checkInDocument','checkInDocumentHelp.html'), +(46,'checkOutDocument','checkOutDocumentHelp.html'), +(47,'advancedSearch','advancedSearchHelp.html'), +(48,'deleteFolderCollaboration','deleteFolderCollaborationHelp.html'), +(49,'addFolderDocType','addFolderDocTypeHelp.html'), +(50,'deleteFolderDocType','deleteFolderDocTypeHelp.html'), +(51,'addGroupFolderLink','addGroupFolderLinkHelp.html'), +(52,'deleteGroupFolderLink','deleteGroupFolderLinkHelp.html'), +(53,'addWebsite','addWebsiteHelp.html'), +(54,'addWebsiteSuccess','addWebsiteHelp.html'), +(55,'editWebsite','editWebsiteHelp.html'), +(56,'removeWebSite','removeWebSiteHelp.html'), +(57,'standardSearch','standardSearchHelp.html'), +(58,'modifyDocumentTypeMetaData','modifyDocumentTypeMetaDataHelp.html'), +(59,'addDocField','addDocFieldHelp.html'), +(60,'editDocField','editDocFieldHelp.html'), +(61,'removeDocField','removeDocFieldHelp.html'), +(62,'addMetaData','addMetaDataHelp.html'), +(63,'editMetaData','editMetaDataHelp.html'), +(64,'removeMetaData','removeMetaDataHelp.html'), +(65,'addUser','addUserHelp.html'), +(66,'editUser','editUserHelp.html'), +(67,'removeUser','removeUserHelp.html'), +(68,'addUserToGroup','addUserToGroupHelp.html'), +(69,'removeUserFromGroup','removeUserFromGroupHelp.html'), +(70,'viewDiscussion','viewDiscussionThread.html'), +(71,'addComment','addDiscussionComment.html'), +(72,'listNews','listDashboardNewsHelp.html'), +(73,'editNews','editDashboardNewsHelp.html'), +(74,'previewNews','previewDashboardNewsHelp.html'), +(75,'addNews','addDashboardNewsHelp.html'), +(76,'modifyDocumentArchiveSettings','modifyDocumentArchiveSettingsHelp.html'), +(77,'addDocumentArchiveSettings','addDocumentArchiveSettingsHelp.html'), +(78,'listDocFields','listDocumentFieldsAdmin.html'), +(79,'editDocFieldLookups','editDocFieldLookups.html'), +(80,'addMetaDataForField','addMetaDataForField.html'), +(81,'editMetaDataForField','editMetaDataForField.html'), +(82,'removeMetaDataFromField','removeMetaDataFromField.html'), +(83,'listDocs','listDocumentsCheckoutHelp.html'), +(84,'editDocCheckout','editDocCheckoutHelp.html'), +(85,'listDocTypes','listDocTypesHelp.html'), +(86,'editDocTypeFields','editDocFieldHelp.html'), +(87,'addDocTypeFieldsLink','addDocTypeFieldHelp.html'), +(88,'listGroups','listGroupsHelp.html'), +(89,'editGroupUnit','editGroupUnitHelp.html'), +(90,'listOrg','listOrgHelp.html'), +(91,'listRole','listRolesHelp.html'), +(92,'listUnits','listUnitHelp.html'), +(93,'editUnitOrg','editUnitOrgHelp.html'), +(94,'removeUnitFromOrg','removeUnitFromOrgHelp.html'), +(95,'addUnitToOrg','addUnitToOrgHelp.html'), +(96,'listUsers','listUsersHelp.html'), +(97,'editUserGroups','editUserGroupsHelp.html'), +(98,'listWebsites','listWebsitesHelp.html'), +(99,'loginDisclaimer','loginDisclaimer.html'), +(100,'pageDisclaimer','pageDisclaimer.html'); +/*!40000 ALTER TABLE `help` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `help_replacement` +-- + +LOCK TABLES `help_replacement` WRITE; +/*!40000 ALTER TABLE `help_replacement` DISABLE KEYS */; +/*!40000 ALTER TABLE `help_replacement` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `index_files` +-- + +LOCK TABLES `index_files` WRITE; +/*!40000 ALTER TABLE `index_files` DISABLE KEYS */; +/*!40000 ALTER TABLE `index_files` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `interceptor_instances` +-- + +LOCK TABLES `interceptor_instances` WRITE; +/*!40000 ALTER TABLE `interceptor_instances` DISABLE KEYS */; +/*!40000 ALTER TABLE `interceptor_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `links` +-- + +LOCK TABLES `links` WRITE; +/*!40000 ALTER TABLE `links` DISABLE KEYS */; +/*!40000 ALTER TABLE `links` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `metadata_lookup` +-- + +LOCK TABLES `metadata_lookup` WRITE; +/*!40000 ALTER TABLE `metadata_lookup` DISABLE KEYS */; +INSERT INTO `metadata_lookup` VALUES +(2,4,'Technical',NULL,0,0), +(3,4,'Financial',NULL,0,0), +(4,4,'Legal',NULL,0,0), +(5,4,'Administrative',NULL,0,0), +(6,4,'Miscellaneous',NULL,0,0), +(7,4,'Sales',NULL,0,0), +(8,5,'Text',NULL,0,0), +(9,5,'Image',NULL,0,0), +(10,5,'Audio',NULL,0,0), +(11,5,'Video',NULL,0,0); +/*!40000 ALTER TABLE `metadata_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `metadata_lookup_tree` +-- + +LOCK TABLES `metadata_lookup_tree` WRITE; +/*!40000 ALTER TABLE `metadata_lookup_tree` DISABLE KEYS */; +/*!40000 ALTER TABLE `metadata_lookup_tree` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `mime_document_mapping` +-- + +LOCK TABLES `mime_document_mapping` WRITE; +/*!40000 ALTER TABLE `mime_document_mapping` DISABLE KEYS */; +/*!40000 ALTER TABLE `mime_document_mapping` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `mime_documents` +-- + +LOCK TABLES `mime_documents` WRITE; +/*!40000 ALTER TABLE `mime_documents` DISABLE KEYS */; +/*!40000 ALTER TABLE `mime_documents` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `mime_extractors` +-- + +LOCK TABLES `mime_extractors` WRITE; +/*!40000 ALTER TABLE `mime_extractors` DISABLE KEYS */; +/*!40000 ALTER TABLE `mime_extractors` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `mime_types` +-- + +LOCK TABLES `mime_types` WRITE; +/*!40000 ALTER TABLE `mime_types` DISABLE KEYS */; +INSERT INTO `mime_types` VALUES +(1,'ai','application/ai','image','Adobe Illustrator Vector Graphic',NULL,NULL), +(2,'aif','audio/x-aiff',NULL,'',NULL,NULL), +(3,'aifc','audio/x-aiff',NULL,'',NULL,NULL), +(4,'aiff','audio/x-aiff',NULL,'',NULL,NULL), +(5,'asc','text/plain','text','Plain Text',NULL,NULL), +(6,'au','audio/basic',NULL,'',NULL,NULL), +(7,'avi','video/x-msvideo',NULL,'Video File',NULL,NULL), +(8,'bcpio','application/x-bcpio',NULL,'',NULL,NULL), +(9,'bin','application/octet-stream',NULL,'Binary File',NULL,NULL), +(10,'bmp','image/bmp','image','BMP Image',NULL,NULL), +(11,'cdf','application/x-netcdf',NULL,'',NULL,NULL), +(12,'class','application/octet-stream',NULL,'',NULL,NULL), +(13,'cpio','application/x-cpio',NULL,'',NULL,NULL), +(14,'cpt','application/mac-compactpro',NULL,'',NULL,NULL), +(15,'csh','application/x-csh',NULL,'',NULL,NULL), +(16,'css','text/css',NULL,'',NULL,NULL), +(17,'dcr','application/x-director',NULL,'',NULL,NULL), +(18,'dir','application/x-director',NULL,'',NULL,NULL), +(19,'dms','application/octet-stream',NULL,'',NULL,NULL), +(20,'doc','application/msword','word','Word Document',NULL,NULL), +(21,'dvi','application/x-dvi',NULL,'',NULL,NULL), +(22,'dxr','application/x-director',NULL,'',NULL,NULL), +(23,'eps','application/eps','image','Encapsulated Postscript',NULL,NULL), +(24,'etx','text/x-setext',NULL,'',NULL,NULL), +(25,'exe','application/octet-stream',NULL,'',NULL,NULL), +(26,'ez','application/andrew-inset',NULL,'',NULL,NULL), +(27,'gif','image/gif','image','GIF Image',NULL,NULL), +(28,'gtar','application/x-gtar','compressed','',NULL,NULL), +(29,'hdf','application/x-hdf',NULL,'',NULL,NULL), +(30,'hqx','application/mac-binhex40',NULL,'',NULL,NULL), +(31,'htm','text/html','html','HTML Webpage',NULL,NULL), +(32,'html','text/html','html','HTML Webpage',NULL,NULL), +(33,'ice','x-conference/x-cooltalk',NULL,'',NULL,NULL), +(34,'ief','image/ief','image','',NULL,NULL), +(35,'iges','model/iges',NULL,'',NULL,NULL), +(36,'igs','model/iges',NULL,'',NULL,NULL), +(37,'jpe','image/jpeg','image','JPEG Image',NULL,NULL), +(38,'jpeg','image/jpeg','image','JPEG Image',NULL,NULL), +(39,'jpg','image/jpeg','image','JPEG Image',NULL,NULL), +(40,'js','application/x-javascript','html','',NULL,NULL), +(41,'kar','audio/midi',NULL,'',NULL,NULL), +(42,'latex','application/x-latex',NULL,'',NULL,NULL), +(43,'lha','application/octet-stream',NULL,'',NULL,NULL), +(44,'lzh','application/octet-stream',NULL,'',NULL,NULL), +(45,'man','application/x-troff-man',NULL,'',NULL,NULL), +(46,'mdb','application/access','database','Access Database',NULL,NULL), +(47,'mdf','application/access','database','Access Database',NULL,NULL), +(48,'me','application/x-troff-me',NULL,'',NULL,NULL), +(49,'mesh','model/mesh',NULL,'',NULL,NULL), +(50,'mid','audio/midi',NULL,'',NULL,NULL), +(51,'midi','audio/midi',NULL,'',NULL,NULL), +(52,'mif','application/vnd.mif',NULL,'',NULL,NULL), +(53,'mov','video/quicktime',NULL,'Video File',NULL,NULL), +(54,'movie','video/x-sgi-movie',NULL,'Video File',NULL,NULL), +(55,'mp2','audio/mpeg',NULL,'',NULL,NULL), +(56,'mp3','audio/mpeg',NULL,'',NULL,NULL), +(57,'mpe','video/mpeg',NULL,'Video File',NULL,NULL), +(58,'mpeg','video/mpeg',NULL,'Video File',NULL,NULL), +(59,'mpg','video/mpeg',NULL,'Video File',NULL,NULL), +(60,'mpga','audio/mpeg',NULL,'',NULL,NULL), +(61,'mpp','application/vnd.ms-project','office','',NULL,NULL), +(62,'ms','application/x-troff-ms',NULL,'',NULL,NULL), +(63,'msh','model/mesh',NULL,'',NULL,NULL), +(64,'nc','application/x-netcdf',NULL,'',NULL,NULL), +(65,'oda','application/oda',NULL,'',NULL,NULL), +(66,'pbm','image/x-portable-bitmap','image','',NULL,NULL), +(67,'pdb','chemical/x-pdb',NULL,'',NULL,NULL), +(68,'pdf','application/pdf','pdf','Acrobat PDF',NULL,NULL), +(69,'pgm','image/x-portable-graymap','image','',NULL,NULL), +(70,'pgn','application/x-chess-pgn',NULL,'',NULL,NULL), +(71,'png','image/png','image','PNG Image',NULL,NULL), +(72,'pnm','image/x-portable-anymap','image','',NULL,NULL), +(73,'ppm','image/x-portable-pixmap','image','',NULL,NULL), +(74,'ppt','application/vnd.ms-powerpoint','office','Powerpoint Presentation',NULL,NULL), +(75,'ps','application/postscript','pdf','Postscript Document',NULL,NULL), +(76,'qt','video/quicktime',NULL,'Video File',NULL,NULL), +(77,'ra','audio/x-realaudio',NULL,'',NULL,NULL), +(78,'ram','audio/x-pn-realaudio',NULL,'',NULL,NULL), +(79,'ras','image/x-cmu-raster','image','',NULL,NULL), +(80,'rgb','image/x-rgb','image','',NULL,NULL), +(81,'rm','audio/x-pn-realaudio',NULL,'',NULL,NULL), +(82,'roff','application/x-troff',NULL,'',NULL,NULL), +(83,'rpm','audio/x-pn-realaudio-plugin',NULL,'',NULL,NULL), +(84,'rtf','text/rtf',NULL,'',NULL,NULL), +(85,'rtx','text/richtext',NULL,'',NULL,NULL), +(86,'sgm','text/sgml',NULL,'',NULL,NULL), +(87,'sgml','text/sgml',NULL,'',NULL,NULL), +(88,'sh','application/x-sh',NULL,'',NULL,NULL), +(89,'shar','application/x-shar',NULL,'',NULL,NULL), +(90,'silo','model/mesh',NULL,'',NULL,NULL), +(91,'sit','application/x-stuffit',NULL,'',NULL,NULL), +(92,'skd','application/x-koan',NULL,'',NULL,NULL), +(93,'skm','application/x-koan',NULL,'',NULL,NULL), +(94,'skp','application/x-koan',NULL,'',NULL,NULL), +(95,'skt','application/x-koan',NULL,'',NULL,NULL), +(96,'smi','application/smil',NULL,'',NULL,NULL), +(97,'smil','application/smil',NULL,'',NULL,NULL), +(98,'snd','audio/basic',NULL,'',NULL,NULL), +(99,'spl','application/x-futuresplash',NULL,'',NULL,NULL), +(100,'src','application/x-wais-source',NULL,'',NULL,NULL), +(101,'sv4cpio','application/x-sv4cpio',NULL,'',NULL,NULL), +(102,'sv4crc','application/x-sv4crc',NULL,'',NULL,NULL), +(103,'swf','application/x-shockwave-flash',NULL,'',NULL,NULL), +(104,'t','application/x-troff',NULL,'',NULL,NULL), +(105,'tar','application/x-tar','compressed','Tar or Compressed Tar File',NULL,NULL), +(106,'tcl','application/x-tcl',NULL,'',NULL,NULL), +(107,'tex','application/x-tex',NULL,'',NULL,NULL), +(108,'texi','application/x-texinfo',NULL,'',NULL,NULL), +(109,'texinfo','application/x-texinfo',NULL,'',NULL,NULL), +(110,'tif','image/tiff','image','TIFF Image',NULL,NULL), +(111,'tiff','image/tiff','image','TIFF Image',NULL,NULL), +(112,'tr','application/x-troff',NULL,'',NULL,NULL), +(113,'tsv','text/tab-separated-values',NULL,'',NULL,NULL), +(114,'txt','text/plain','text','Plain Text',NULL,NULL), +(115,'ustar','application/x-ustar',NULL,'',NULL,NULL), +(116,'vcd','application/x-cdlink',NULL,'',NULL,NULL), +(117,'vrml','model/vrml',NULL,'',NULL,NULL), +(118,'vsd','application/vnd.visio','office','',NULL,NULL), +(119,'wav','audio/x-wav',NULL,'',NULL,NULL), +(120,'wrl','model/vrml',NULL,'',NULL,NULL), +(121,'xbm','image/x-xbitmap','image','',NULL,NULL), +(122,'xls','application/vnd.ms-excel','excel','Excel Spreadsheet',NULL,NULL), +(123,'xml','text/xml',NULL,'',NULL,NULL), +(124,'xpm','image/x-xpixmap','image','',NULL,NULL), +(125,'xwd','image/x-xwindowdump','image','',NULL,NULL), +(126,'xyz','chemical/x-pdb',NULL,'',NULL,NULL), +(127,'zip','application/zip','compressed','ZIP Compressed File',NULL,NULL), +(128,'gz','application/x-gzip','compressed','GZIP Compressed File',NULL,NULL), +(129,'tgz','application/x-gzip','compressed','Tar or Compressed Tar File',NULL,NULL), +(130,'sxw','application/vnd.sun.xml.writer','openoffice','OpenOffice.org Writer Document',NULL,NULL), +(131,'stw','application/vnd.sun.xml.writer.template','openoffice','OpenOffice.org File',NULL,NULL), +(132,'sxc','application/vnd.sun.xml.calc','openoffice','OpenOffice.org Spreadsheet',NULL,NULL), +(133,'stc','application/vnd.sun.xml.calc.template','openoffice','OpenOffice.org File',NULL,NULL), +(134,'sxd','application/vnd.sun.xml.draw','openoffice','OpenOffice.org File',NULL,NULL), +(135,'std','application/vnd.sun.xml.draw.template','openoffice','OpenOffice.org File',NULL,NULL), +(136,'sxi','application/vnd.sun.xml.impress','openoffice','OpenOffice.org Presentation',NULL,NULL), +(137,'sti','application/vnd.sun.xml.impress.template','openoffice','OpenOffice.org File',NULL,NULL), +(138,'sxg','application/vnd.sun.xml.writer.global','openoffice','OpenOffice.org File',NULL,NULL), +(139,'sxm','application/vnd.sun.xml.math','openoffice','OpenOffice.org File',NULL,NULL), +(140,'xlt','application/vnd.ms-excel','excel','Excel Template',NULL,NULL), +(141,'dot','application/msword','word','Word Template',NULL,NULL), +(142,'bz2','application/x-bzip2','compressed','BZIP2 Compressed File',NULL,NULL), +(143,'diff','text/plain','text','Source Diff File',NULL,NULL), +(144,'patch','text/plain','text','Patch File',NULL,NULL), +(145,'odt','application/vnd.oasis.opendocument.text','opendocument','OpenDocument Text',NULL,NULL), +(146,'ott','application/vnd.oasis.opendocument.text-template','opendocument','OpenDocument Text Template',NULL,NULL), +(147,'oth','application/vnd.oasis.opendocument.text-web','opendocument','HTML Document Template',NULL,NULL), +(148,'odm','application/vnd.oasis.opendocument.text-master','opendocument','OpenDocument Master Document',NULL,NULL), +(149,'odg','application/vnd.oasis.opendocument.graphics','opendocument','OpenDocument Drawing',NULL,NULL), +(150,'otg','application/vnd.oasis.opendocument.graphics-template','opendocument','OpenDocument Drawing Template',NULL,NULL), +(151,'odp','application/vnd.oasis.opendocument.presentation','opendocument','OpenDocument Presentation',NULL,NULL), +(152,'otp','application/vnd.oasis.opendocument.presentation-template','opendocument','OpenDocument Presentation Template',NULL,NULL), +(153,'ods','application/vnd.oasis.opendocument.spreadsheet','opendocument','OpenDocument Spreadsheet',NULL,NULL), +(154,'ots','application/vnd.oasis.opendocument.spreadsheet-template','opendocument','OpenDocument Spreadsheet Template',NULL,NULL), +(155,'odc','application/vnd.oasis.opendocument.chart','opendocument','OpenDocument Chart',NULL,NULL), +(156,'odf','application/vnd.oasis.opendocument.formula','opendocument','OpenDocument Formula',NULL,NULL), +(157,'odb','application/vnd.oasis.opendocument.database','opendocument','OpenDocument Database',NULL,NULL), +(158,'odi','application/vnd.oasis.opendocument.image','opendocument','OpenDocument Image',NULL,NULL), +(159,'zip','application/x-zip','compressed','ZIP Compressed File',NULL,NULL), +(160,'csv','text/csv','excel','Comma delimited spreadsheet',NULL,NULL), +(161,'msi','application/x-msi','compressed','MSI Installer file',NULL,NULL), +(162,'pps','application/vnd.ms-powerpoint','office','Powerpoint Presentation',NULL,NULL), +(163,'docx','application/vnd.openxmlformats-officedocument.wordprocessingml.document','word','Word Document',NULL,NULL), +(164,'dotx','application/vnd.openxmlformats-officedocument.wordprocessingml.template','word','Word Document',NULL,NULL), +(165,'potx','application/vnd.openxmlformats-officedocument.presentationml.template','office','Powerpoint Presentation',NULL,NULL), +(166,'ppsx','application/vnd.openxmlformats-officedocument.presentationml.slideshow','office','Powerpoint Presentation',NULL,NULL), +(167,'pptx','application/vnd.openxmlformats-officedocument.presentationml.presentation','office','Powerpoint Presentation',NULL,NULL), +(168,'xlsx','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','excel','Excel Spreadsheet',NULL,NULL), +(169,'xltx','application/vnd.openxmlformats-officedocument.spreadsheetml.template','excel','Excel Spreadsheet',NULL,NULL), +(170,'msg','application/vnd.ms-outlook','office','Outlook Item',NULL,NULL), +(171,'db','application/db','','Misc DB file',NULL,NULL); +/*!40000 ALTER TABLE `mime_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `news` +-- + +LOCK TABLES `news` WRITE; +/*!40000 ALTER TABLE `news` DISABLE KEYS */; +/*!40000 ALTER TABLE `news` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `notifications` +-- + +LOCK TABLES `notifications` WRITE; +/*!40000 ALTER TABLE `notifications` DISABLE KEYS */; +/*!40000 ALTER TABLE `notifications` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `organisations_lookup` +-- + +LOCK TABLES `organisations_lookup` WRITE; +/*!40000 ALTER TABLE `organisations_lookup` DISABLE KEYS */; +INSERT INTO `organisations_lookup` VALUES +(1,'Default Organisation'); +/*!40000 ALTER TABLE `organisations_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_assignments` +-- + +LOCK TABLES `permission_assignments` WRITE; +/*!40000 ALTER TABLE `permission_assignments` DISABLE KEYS */; +INSERT INTO `permission_assignments` VALUES +(1,1,1,2), +(2,2,1,2), +(3,3,1,2), +(4,4,1,2), +(5,5,1,2), +(6,6,1,2), +(7,7,1,2), +(8,8,1,2); +/*!40000 ALTER TABLE `permission_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_descriptor_groups` +-- + +LOCK TABLES `permission_descriptor_groups` WRITE; +/*!40000 ALTER TABLE `permission_descriptor_groups` DISABLE KEYS */; +INSERT INTO `permission_descriptor_groups` VALUES +(2,1); +/*!40000 ALTER TABLE `permission_descriptor_groups` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_descriptor_roles` +-- + +LOCK TABLES `permission_descriptor_roles` WRITE; +/*!40000 ALTER TABLE `permission_descriptor_roles` DISABLE KEYS */; +/*!40000 ALTER TABLE `permission_descriptor_roles` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_descriptor_users` +-- + +LOCK TABLES `permission_descriptor_users` WRITE; +/*!40000 ALTER TABLE `permission_descriptor_users` DISABLE KEYS */; +/*!40000 ALTER TABLE `permission_descriptor_users` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_descriptors` +-- + +LOCK TABLES `permission_descriptors` WRITE; +/*!40000 ALTER TABLE `permission_descriptors` DISABLE KEYS */; +INSERT INTO `permission_descriptors` VALUES +(1,'d41d8cd98f00b204e9800998ecf8427e',''), +(2,'a689e7c4dc953de8d93b1ed4843b2dfe','group(1)'); +/*!40000 ALTER TABLE `permission_descriptors` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_dynamic_assignments` +-- + +LOCK TABLES `permission_dynamic_assignments` WRITE; +/*!40000 ALTER TABLE `permission_dynamic_assignments` DISABLE KEYS */; +/*!40000 ALTER TABLE `permission_dynamic_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_dynamic_conditions` +-- + +LOCK TABLES `permission_dynamic_conditions` WRITE; +/*!40000 ALTER TABLE `permission_dynamic_conditions` DISABLE KEYS */; +/*!40000 ALTER TABLE `permission_dynamic_conditions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_lookup_assignments` +-- + +LOCK TABLES `permission_lookup_assignments` WRITE; +/*!40000 ALTER TABLE `permission_lookup_assignments` DISABLE KEYS */; +INSERT INTO `permission_lookup_assignments` VALUES +(1,1,1,1), +(2,2,1,1), +(3,3,1,1), +(4,1,2,2), +(5,2,2,2), +(6,3,2,2), +(7,1,3,2), +(8,2,3,2), +(9,3,3,2), +(10,4,3,2), +(11,5,3,2), +(12,1,4,2), +(13,2,4,2), +(14,3,4,2), +(15,4,4,2), +(16,5,4,2), +(17,6,4,2), +(18,1,5,2), +(19,2,5,2), +(20,3,5,2), +(21,4,5,2), +(22,5,5,2), +(23,6,5,2), +(24,7,5,2); +/*!40000 ALTER TABLE `permission_lookup_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_lookups` +-- + +LOCK TABLES `permission_lookups` WRITE; +/*!40000 ALTER TABLE `permission_lookups` DISABLE KEYS */; +INSERT INTO `permission_lookups` VALUES +(1), +(2), +(3), +(4), +(5); +/*!40000 ALTER TABLE `permission_lookups` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permission_objects` +-- + +LOCK TABLES `permission_objects` WRITE; +/*!40000 ALTER TABLE `permission_objects` DISABLE KEYS */; +INSERT INTO `permission_objects` VALUES +(1); +/*!40000 ALTER TABLE `permission_objects` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `permissions` +-- + +LOCK TABLES `permissions` WRITE; +/*!40000 ALTER TABLE `permissions` DISABLE KEYS */; +INSERT INTO `permissions` VALUES +(1,'ktcore.permissions.read','Read',1), +(2,'ktcore.permissions.write','Write',1), +(3,'ktcore.permissions.addFolder','Add Folder',1), +(4,'ktcore.permissions.security','Manage security',1), +(5,'ktcore.permissions.delete','Delete',1), +(6,'ktcore.permissions.workflow','Manage workflow',1), +(7,'ktcore.permissions.folder_details','Folder Details',1), +(8,'ktcore.permissions.folder_rename','Rename Folder',1); +/*!40000 ALTER TABLE `permissions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `plugin_helper` +-- + +LOCK TABLES `plugin_helper` WRITE; +/*!40000 ALTER TABLE `plugin_helper` DISABLE KEYS */; +/*!40000 ALTER TABLE `plugin_helper` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `plugin_rss` +-- + +LOCK TABLES `plugin_rss` WRITE; +/*!40000 ALTER TABLE `plugin_rss` DISABLE KEYS */; +/*!40000 ALTER TABLE `plugin_rss` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `plugins` +-- + +LOCK TABLES `plugins` WRITE; +/*!40000 ALTER TABLE `plugins` DISABLE KEYS */; +INSERT INTO `plugins` VALUES +(1,'ktcore.tagcloud.plugin','plugins/tagcloud/TagCloudPlugin.php',0,0,NULL,0,'Tag Cloud Plugin',0), +(2,'ktcore.rss.plugin','plugins/rssplugin/RSSPlugin.php',0,0,NULL,0,'RSS Plugin',0), +(3,'ktcore.language.plugin','plugins/ktcore/KTCoreLanguagePlugin.php',0,0,NULL,0,'Core Language Support',-75), +(4,'ktcore.plugin','plugins/ktcore/KTCorePlugin.php',0,0,NULL,0,'Core Application Functionality',-25), +(5,'ktstandard.ldapauthentication.plugin','plugins/ktstandard/KTLDAPAuthenticationPlugin.php',0,0,NULL,0,'LDAP Authentication Plugin',0), +(6,'ktstandard.pdf.plugin','plugins/ktstandard/PDFGeneratorPlugin.php',0,0,NULL,0,'PDF Generator Plugin',0), +(7,'ktstandard.bulkexport.plugin','plugins/ktstandard/KTBulkExportPlugin.php',0,0,NULL,0,'Bulk Export Plugin',0), +(8,'ktstandard.immutableaction.plugin','plugins/ktstandard/ImmutableActionPlugin.php',0,0,NULL,0,'Immutable action plugin',0), +(9,'ktstandard.subscriptions.plugin','plugins/ktstandard/KTSubscriptions.php',0,0,NULL,0,'Subscription Plugin',0), +(10,'ktstandard.discussion.plugin','plugins/ktstandard/KTDiscussion.php',0,0,NULL,0,'Document Discussions Plugin',0), +(11,'ktstandard.email.plugin','plugins/ktstandard/KTEmail.php',0,0,NULL,0,'Email Plugin',0), +(12,'ktstandard.indexer.plugin','plugins/ktstandard/KTIndexer.php',0,0,NULL,0,'Full-text Content Indexing',0), +(13,'ktstandard.documentlinks.plugin','plugins/ktstandard/KTDocumentLinks.php',0,0,NULL,0,'Inter-document linking',0), +(14,'ktstandard.workflowassociation.plugin','plugins/ktstandard/KTWorkflowAssociation.php',0,0,NULL,0,'Workflow Association Plugin',0), +(15,'ktstandard.workflowassociation.documenttype.plugin','plugins/ktstandard/workflow/TypeAssociator.php',0,0,NULL,0,'Workflow allocation by document type',0), +(16,'ktstandard.workflowassociation.folder.plugin','plugins/ktstandard/workflow/FolderAssociator.php',0,0,NULL,0,'Workflow allocation by location',0), +(17,'ktstandard.disclaimers.plugin','plugins/ktstandard/KTDisclaimers.php',0,0,NULL,0,'Disclaimers Plugin',0), +(18,'nbm.browseable.plugin','plugins/browseabledashlet/BrowseableDashletPlugin.php',0,0,NULL,0,'Orphaned Folders Plugin',0), +(19,'ktstandard.ktwebdavdashlet.plugin','plugins/ktstandard/KTWebDAVDashletPlugin.php',0,0,NULL,0,'WebDAV Dashlet Plugin',0), +(20,'ktcore.housekeeper.plugin','plugins/housekeeper/HouseKeeperPlugin.php',0,0,NULL,0,'Housekeeper',0), +(21,'ktstandard.preview.plugin','plugins/ktstandard/documentpreview/documentPreviewPlugin.php',0,0,NULL,0,'Property Preview Plugin',0), +(22,'ktlive.mydropdocuments.plugin','plugins/MyDropDocumentsPlugin/MyDropDocumentsPlugin.php',0,0,NULL,0,'Drop Documents Plugin',0); +/*!40000 ALTER TABLE `plugins` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `role_allocations` +-- + +LOCK TABLES `role_allocations` WRITE; +/*!40000 ALTER TABLE `role_allocations` DISABLE KEYS */; +/*!40000 ALTER TABLE `role_allocations` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `roles` +-- + +LOCK TABLES `roles` WRITE; +/*!40000 ALTER TABLE `roles` DISABLE KEYS */; +INSERT INTO `roles` VALUES +(-4,'Authenticated Users'), +(4,'Creator'), +(-3,'Everyone'), +(-2,'Owner'), +(2,'Publisher'), +(3,'Reviewer'); +/*!40000 ALTER TABLE `roles` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `saved_searches` +-- + +LOCK TABLES `saved_searches` WRITE; +/*!40000 ALTER TABLE `saved_searches` DISABLE KEYS */; +/*!40000 ALTER TABLE `saved_searches` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `scheduler_tasks` +-- + +LOCK TABLES `scheduler_tasks` WRITE; +/*!40000 ALTER TABLE `scheduler_tasks` DISABLE KEYS */; +INSERT INTO `scheduler_tasks` VALUES +(1,'Document Processor','search2/bin/cronDocumentProcessor.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'system'), +(2,'Index Migration','search2/bin/cronMigration.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'system'), +(3,'Index Optimization','search2/bin/cronOptimize.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'system'), +(4,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'disabled'), +(5,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01 00:00:00',NULL,0,'disabled'), +(6,'OpenOffice test','bin/checkopenoffice.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), +(7,'Cleanup Temporary Directory','search2/bin/cronCleanup.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), +(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'enabled'), +(9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'), +(10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'), +(11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'); + +/*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `search_document_user_link` +-- + +LOCK TABLES `search_document_user_link` WRITE; +/*!40000 ALTER TABLE `search_document_user_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_document_user_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `search_ranking` +-- + +LOCK TABLES `search_ranking` WRITE; +/*!40000 ALTER TABLE `search_ranking` DISABLE KEYS */; +INSERT INTO `search_ranking` VALUES +('Discussion','',150,'S'), +('documents','checked_out_user_id',1,'T'), +('documents','created',1,'T'), +('documents','creator_id',1,'T'), +('documents','id',1,'T'), +('documents','immutable',1,'T'), +('documents','is_checked_out',1,'T'), +('documents','modified',1,'T'), +('documents','modified_user_id',1,'T'), +('documents','title',300,'T'), +('DocumentText','',100,'S'), +('document_content_version','filename',10,'T'), +('document_content_version','filesize',1,'T'), +('document_fields_link','value',1,'T'), +('document_metadata_version','document_type_id',1,'T'), +('document_metadata_version','name',300,'T'), +('document_metadata_version','workflow_id',1,'T'), +('document_metadata_version','workflow_state_id',1,'T'), +('tag_words','tag',1,'T'); +/*!40000 ALTER TABLE `search_ranking` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `search_saved` +-- + +LOCK TABLES `search_saved` WRITE; +/*!40000 ALTER TABLE `search_saved` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_saved` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `search_saved_events` +-- + +LOCK TABLES `search_saved_events` WRITE; +/*!40000 ALTER TABLE `search_saved_events` DISABLE KEYS */; +/*!40000 ALTER TABLE `search_saved_events` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `status_lookup` +-- + +LOCK TABLES `status_lookup` WRITE; +/*!40000 ALTER TABLE `status_lookup` DISABLE KEYS */; +INSERT INTO `status_lookup` VALUES +(1,'Live'), +(2,'Published'), +(3,'Deleted'), +(4,'Archived'), +(5,'Incomplete'), +(6,'Version Deleted'); +/*!40000 ALTER TABLE `status_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `system_settings` +-- + +LOCK TABLES `system_settings` WRITE; +/*!40000 ALTER TABLE `system_settings` DISABLE KEYS */; +INSERT INTO `system_settings` VALUES +(1,'lastIndexUpdate','0'), +(2,'knowledgeTreeVersion','3.6.1'), +(3,'databaseVersion','3.6.1'), +(4,'server_name','127.0.0.1'); +/*!40000 ALTER TABLE `system_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `tag_words` +-- + +LOCK TABLES `tag_words` WRITE; +/*!40000 ALTER TABLE `tag_words` DISABLE KEYS */; +/*!40000 ALTER TABLE `tag_words` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `time_period` +-- + +LOCK TABLES `time_period` WRITE; +/*!40000 ALTER TABLE `time_period` DISABLE KEYS */; +/*!40000 ALTER TABLE `time_period` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `time_unit_lookup` +-- + +LOCK TABLES `time_unit_lookup` WRITE; +/*!40000 ALTER TABLE `time_unit_lookup` DISABLE KEYS */; +INSERT INTO `time_unit_lookup` VALUES +(1,'Years'), +(2,'Months'), +(3,'Days'); +/*!40000 ALTER TABLE `time_unit_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `trigger_selection` +-- + +LOCK TABLES `trigger_selection` WRITE; +/*!40000 ALTER TABLE `trigger_selection` DISABLE KEYS */; +/*!40000 ALTER TABLE `trigger_selection` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `type_workflow_map` +-- + +LOCK TABLES `type_workflow_map` WRITE; +/*!40000 ALTER TABLE `type_workflow_map` DISABLE KEYS */; +/*!40000 ALTER TABLE `type_workflow_map` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `units_lookup` +-- + +LOCK TABLES `units_lookup` WRITE; +/*!40000 ALTER TABLE `units_lookup` DISABLE KEYS */; +/*!40000 ALTER TABLE `units_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `units_organisations_link` +-- + +LOCK TABLES `units_organisations_link` WRITE; +/*!40000 ALTER TABLE `units_organisations_link` DISABLE KEYS */; +/*!40000 ALTER TABLE `units_organisations_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `upgrades` +-- + +LOCK TABLES `upgrades` WRITE; +/*!40000 ALTER TABLE `upgrades` DISABLE KEYS */; +INSERT INTO `upgrades` VALUES +(1,'sql*2.0.6*0*2.0.6/create_upgrade_table.sql','Database upgrade to version 2.0.6: Create upgrade table','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(2,'upgrade*2.0.6*0*upgrade2.0.6','Upgrade from version 2.0.2 to 2.0.6','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(3,'func*2.0.6*0*addTemplateMimeTypes','Add MIME types for Excel and Word templates','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(4,'sql*2.0.6*0*2.0.6/add_email_attachment_transaction_type.sql','Database upgrade to version 2.0.6: Add email attachment transaction type','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(5,'sql*2.0.6*0*2.0.6/create_link_type_table.sql','Database upgrade to version 2.0.6: Create link type table','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(6,'sql*2.0.6*1*2.0.6/1-update_database_version.sql','Database upgrade to version 2.0.6: Update database version','2005-06-16 00:30:06',1,'upgrade*2.0.6*0*upgrade2.0.6'), +(7,'upgrade*2.0.7*0*upgrade2.0.7','Upgrade from version 2.0.7 to 2.0.7','2005-07-21 22:35:15',1,'upgrade*2.0.7*0*upgrade2.0.7'), +(8,'sql*2.0.7*0*2.0.7/document_link_update.sql','Database upgrade to version 2.0.7: Document link update','2005-07-21 22:35:16',1,'upgrade*2.0.7*0*upgrade2.0.7'), +(9,'sql*2.0.8*0*2.0.8/nestedgroups.sql','Database upgrade to version 2.0.8: Nestedgroups','2005-08-02 16:02:06',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(10,'sql*2.0.8*0*2.0.8/help_replacement.sql','Database upgrade to version 2.0.8: Help replacement','2005-08-02 16:02:06',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(11,'upgrade*2.0.8*0*upgrade2.0.8','Upgrade from version 2.0.7 to 2.0.8','2005-08-02 16:02:06',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(12,'sql*2.0.8*0*2.0.8/permissions.sql','Database upgrade to version 2.0.8: Permissions','2005-08-02 16:02:07',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(13,'func*2.0.8*1*setPermissionObject','Set the permission object in charge of a document or folder','2005-08-02 16:02:07',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(14,'sql*2.0.8*1*2.0.8/1-metadata_versions.sql','Database upgrade to version 2.0.8: Metadata versions','2005-08-02 16:02:07',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(15,'sql*2.0.8*2*2.0.8/2-permissions.sql','Database upgrade to version 2.0.8: Permissions','2005-08-02 16:02:07',1,'upgrade*2.0.8*0*upgrade2.0.8'), +(16,'sql*2.0.9*0*2.0.9/storagemanager.sql','','0000-00-00 00:00:00',1,NULL), +(17,'sql*2.0.9*0*2.0.9/metadata_tree.sql','','0000-00-00 00:00:00',1,NULL), +(18,'sql*2.0.9*0*2.0.9/document_incomplete.sql','','0000-00-00 00:00:00',1,NULL), +(20,'upgrade*2.99.1*0*upgrade2.99.1','Upgrade from version 2.0.8 to 2.99.1','2005-10-07 14:26:15',1,'upgrade*2.99.1*0*upgrade2.99.1'), +(21,'sql*2.99.1*0*2.99.1/workflow.sql','Database upgrade to version 2.99.1: Workflow','2005-10-07 14:26:15',1,'upgrade*2.99.1*0*upgrade2.99.1'), +(22,'sql*2.99.1*0*2.99.1/fieldsets.sql','Database upgrade to version 2.99.1: Fieldsets','2005-10-07 14:26:16',1,'upgrade*2.99.1*0*upgrade2.99.1'), +(23,'func*2.99.1*1*createFieldSets','Create a fieldset for each field without one','2005-10-07 14:26:16',1,'upgrade*2.99.1*0*upgrade2.99.1'), +(24,'sql*2.99.2*0*2.99.2/saved_searches.sql','','0000-00-00 00:00:00',1,NULL), +(25,'sql*2.99.2*0*2.99.2/transactions.sql','','0000-00-00 00:00:00',1,NULL), +(26,'sql*2.99.2*0*2.99.2/field_mandatory.sql','','0000-00-00 00:00:00',1,NULL), +(27,'sql*2.99.2*0*2.99.2/fieldsets_system.sql','','0000-00-00 00:00:00',1,NULL), +(28,'sql*2.99.2*0*2.99.2/permission_by_user_and_roles.sql','','0000-00-00 00:00:00',1,NULL), +(29,'sql*2.99.2*0*2.99.2/disabled_metadata.sql','','0000-00-00 00:00:00',1,NULL), +(30,'sql*2.99.2*0*2.99.2/searchable_text.sql','','0000-00-00 00:00:00',1,NULL), +(31,'sql*2.99.2*0*2.99.2/workflow.sql','','0000-00-00 00:00:00',1,NULL), +(32,'sql*2.99.2*1*2.99.2/1-constraints.sql','','0000-00-00 00:00:00',1,NULL), +(33,'sql*2.99.3*0*2.99.3/notifications.sql','','0000-00-00 00:00:00',1,NULL), +(34,'sql*2.99.3*0*2.99.3/last_modified_user.sql','','0000-00-00 00:00:00',1,NULL), +(35,'sql*2.99.3*0*2.99.3/authentication_sources.sql','','0000-00-00 00:00:00',1,NULL), +(36,'sql*2.99.3*0*2.99.3/document_fields_constraints.sql','','0000-00-00 00:00:00',1,NULL), +(37,'sql*2.99.5*0*2.99.5/dashlet_disabling.sql','','0000-00-00 00:00:00',1,NULL), +(38,'sql*2.99.5*0*2.99.5/role_allocations.sql','','0000-00-00 00:00:00',1,NULL), +(39,'sql*2.99.5*0*2.99.5/transaction_namespaces.sql','','0000-00-00 00:00:00',1,NULL), +(40,'sql*2.99.5*0*2.99.5/fieldset_field_descriptions.sql','','0000-00-00 00:00:00',1,NULL), +(41,'sql*2.99.5*0*2.99.5/role_changes.sql','','0000-00-00 00:00:00',1,NULL), +(42,'sql*2.99.6*0*2.99.6/table_cleanup.sql','Database upgrade to version 2.99.6: Table cleanup','2006-01-20 17:04:05',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(43,'sql*2.99.6*0*2.99.6/plugin-registration.sql','Database upgrade to version 2.99.6: Plugin-registration','2006-01-20 17:04:05',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(44,'sql*2.99.7*0*2.99.7/documents_normalisation.sql','Database upgrade to version 2.99.7: Documents normalisation','2006-01-20 17:04:05',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(45,'sql*2.99.7*0*2.99.7/help_replacement.sql','Database upgrade to version 2.99.7: Help replacement','2006-01-20 17:04:05',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(46,'sql*2.99.7*0*2.99.7/table_cleanup.sql','Database upgrade to version 2.99.7: Table cleanup','2006-01-20 17:04:07',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(47,'func*2.99.7*1*normaliseDocuments','Normalise the documents table','2006-01-20 17:04:07',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(48,'sql*2.99.7*10*2.99.7/10-documents_normalisation.sql','Database upgrade to version 2.99.7: Documents normalisation','2006-01-20 17:04:07',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(49,'sql*2.99.7*20*2.99.7/20-fields.sql','Database upgrade to version 2.99.7: Fields','2006-01-20 17:04:07',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(50,'upgrade*2.99.7*99*upgrade2.99.7','Upgrade from version 2.99.5 to 2.99.7','2006-01-20 17:04:07',1,'upgrade*2.99.7*99*upgrade2.99.7'), +(51,'sql*2.99.7*0*2.99.7/discussion.sql','','0000-00-00 00:00:00',1,NULL), +(52,'func*2.99.7*-1*applyDiscussionUpgrade','func upgrade to version 2.99.7 phase -1','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(53,'sql*2.99.8*0*2.99.8/mime_types.sql','Database upgrade to version 2.99.8: Mime types','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(54,'sql*2.99.8*0*2.99.8/category-correction.sql','Database upgrade to version 2.99.8: Category-correction','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(55,'sql*2.99.8*0*2.99.8/trigger_selection.sql','Database upgrade to version 2.99.8: Trigger selection','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(56,'sql*2.99.8*0*2.99.8/units.sql','Database upgrade to version 2.99.8: Units','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(57,'sql*2.99.8*0*2.99.8/type_workflow_map.sql','Database upgrade to version 2.99.8: Type workflow map','2006-02-06 12:23:41',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(58,'sql*2.99.8*0*2.99.8/disabled_documenttypes.sql','Database upgrade to version 2.99.8: Disabled documenttypes','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(59,'func*2.99.8*1*fixUnits','func upgrade to version 2.99.8 phase 1','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(60,'sql*2.99.8*10*2.99.8/10-units.sql','Database upgrade to version 2.99.8: Units','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(61,'sql*2.99.8*15*2.99.8/15-status.sql','Database upgrade to version 2.99.8: Status','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(62,'sql*2.99.8*20*2.99.8/20-state_permission_assignments.sql','Database upgrade to version 2.99.8: State permission assignments','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(63,'sql*2.99.8*25*2.99.8/25-authentication_details.sql','Database upgrade to version 2.99.8: Authentication details','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(64,'upgrade*2.99.8*99*upgrade2.99.8','Upgrade from version 2.99.7 to 2.99.8','2006-02-06 12:23:42',1,'upgrade*2.99.8*99*upgrade2.99.8'), +(65,'func*2.99.9*0*createSecurityDeletePermissions','Create the Core: Manage Security and Core: Delete permissions','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(66,'func*2.99.9*0*createLdapAuthenticationProvider','Create an LDAP authentication source based on your KT2 LDAP settings (must keep copy of config/environment.php to work)','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(67,'sql*2.99.9*0*2.99.9/mimetype-friendly.sql','Database upgrade to version 2.99.9: Mimetype-friendly','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(68,'sql*2.99.9*5*2.99.9/5-opendocument-mime-types.sql','Database upgrade to version 2.99.9: Opendocument-mime-types','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(69,'sql*3.0*0*3.0/zipfile-mimetype.sql','Database upgrade to version 3.0: Zipfile-mimetype','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(70,'upgrade*3.0*99*upgrade3.0','Upgrade from version 2.99.8 to 3.0','2006-02-28 09:23:21',1,'upgrade*3.0*99*upgrade3.0'), +(71,'sql*3.0.1.1*0*3.0.1.1/document_role_allocations.sql','Database upgrade to version 3.0.1.1: Document role allocations','2006-03-28 11:22:19',1,'upgrade*3.0.1.1*99*upgrade3.0.1.1'), +(72,'upgrade*3.0.1.1*99*upgrade3.0.1.1','Upgrade from version 3.0 to 3.0.1.1','2006-03-28 11:22:19',1,'upgrade*3.0.1.1*99*upgrade3.0.1.1'), +(73,'sql*3.0.1.2*0*3.0.1.2/user_more_authentication_details.sql','Database upgrade to version 3.0.1.2: User more authentication details','2006-04-07 16:50:28',1,'upgrade*3.0.1.2*99*upgrade3.0.1.2'), +(74,'upgrade*3.0.1.2*99*upgrade3.0.1.2','Upgrade from version 3.0.1.1 to 3.0.1.2','2006-04-07 16:50:28',1,'upgrade*3.0.1.2*99*upgrade3.0.1.2'), +(75,'sql*3.0.1.2*0*3.0.1.2/owner_role_move.sql','Database upgrade to version 3.0.1.2: Owner role move','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(76,'func*3.0.1.3*0*addTransactionTypes3013','Add new folder transaction types','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(77,'sql*3.0.1.3*0*3.0.1.3/user_history.sql','Database upgrade to version 3.0.1.3: User history','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(78,'sql*3.0.1.3*0*3.0.1.3/folder_transactions.sql','Database upgrade to version 3.0.1.3: Folder transactions','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(79,'sql*3.0.1.3*0*3.0.1.3/plugin-unavailable.sql','Database upgrade to version 3.0.1.3: Plugin-unavailable','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(80,'func*3.0.1.4*0*createWorkflowPermission','Create the Core: Manage Workflow','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(81,'upgrade*3.0.1.4*99*upgrade3.0.1.4','Upgrade from version 3.0.1.2 to 3.0.1.4','2006-04-18 11:06:34',1,'upgrade*3.0.1.4*99*upgrade3.0.1.4'), +(82,'sql*3.0.1.5*0*3.0.1.5/anonymous-user.sql','Database upgrade to version 3.0.1.5: Anonymous-user','2006-04-18 12:38:41',1,'upgrade*3.0.1.5*99*upgrade3.0.1.5'), +(83,'upgrade*3.0.1.5*99*upgrade3.0.1.5','Upgrade from version 3.0.1.4 to 3.0.1.5','2006-04-18 12:38:41',1,'upgrade*3.0.1.5*99*upgrade3.0.1.5'), +(84,'sql*3.0.1.6*0*3.0.1.6/workflow-into-metadata.sql','Database upgrade to version 3.0.1.6: Workflow-into-metadata','2006-04-20 14:22:24',1,'upgrade*3.0.1.6*99*upgrade3.0.1.6'), +(85,'upgrade*3.0.1.6*99*upgrade3.0.1.6','Upgrade from version 3.0.1.5 to 3.0.1.6','2006-04-20 14:22:24',1,'upgrade*3.0.1.6*99*upgrade3.0.1.6'), +(86,'sql*3.0.1.7*0*3.0.1.7/session_id.sql','Database upgrade to version 3.0.1.7: Session id','2006-04-20 17:03:55',1,'upgrade*3.0.1.7*99*upgrade3.0.1.7'), +(87,'upgrade*3.0.1.7*99*upgrade3.0.1.7','Upgrade from version 3.0.1.6 to 3.0.1.7','2006-04-20 17:03:56',1,'upgrade*3.0.1.7*99*upgrade3.0.1.7'), +(88,'sql*3.0.1.8*0*3.0.1.8/friendly-plugins.sql','Database upgrade to version 3.0.1.8: Friendly-plugins','2006-04-23 12:54:12',1,'upgrade*3.0.1.8*99*upgrade3.0.1.8'), +(89,'sql*3.0.1.8*0*3.0.1.8/longer-text.sql','Database upgrade to version 3.0.1.8: Longer-text','2006-04-23 12:54:12',1,'upgrade*3.0.1.8*99*upgrade3.0.1.8'), +(90,'sql*3.0.1.8*0*3.0.1.8/admin-mode-logging.sql','Database upgrade to version 3.0.1.8: Admin-mode-logging','2006-04-23 12:54:12',1,'upgrade*3.0.1.8*99*upgrade3.0.1.8'), +(91,'upgrade*3.0.1.8*99*upgrade3.0.1.8','Upgrade from version 3.0.1.7 to 3.0.1.8','2006-04-23 12:54:12',1,'upgrade*3.0.1.8*99*upgrade3.0.1.8'), +(92,'upgrade*3.0.2*99*upgrade3.0.2','Upgrade from version 3.0.1.8 to 3.0.2','2006-05-02 10:08:13',1,'upgrade*3.0.2*99*upgrade3.0.2'), +(93,'sql*3.0.2.1*0*3.0.2.1/disclaimer-help-files.sql','Database upgrade to version 3.0.2.1: Disclaimer-help-files','2006-05-25 16:04:23',1,'upgrade*3.0.2.2*99*upgrade3.0.2.2'), +(94,'sql*3.0.2.2*0*3.0.2.2/folder_search.sql','Database upgrade to version 3.0.2.2: Folder search','2006-05-25 16:04:23',1,'upgrade*3.0.2.2*99*upgrade3.0.2.2'), +(95,'upgrade*3.0.2.2*99*upgrade3.0.2.2','Upgrade from version 3.0.2 to 3.0.2.2','2006-05-25 16:04:24',1,'upgrade*3.0.2.2*99*upgrade3.0.2.2'), +(96,'sql*3.0.2.3*0*3.0.2.3/msi-filetype.sql','Database upgrade to version 3.0.2.3: Msi-filetype','2006-05-30 10:55:58',1,'upgrade*3.0.2.4*99*upgrade3.0.2.4'), +(97,'sql*3.0.2.4*0*3.0.2.4/discussion-fulltext.sql','Database upgrade to version 3.0.2.4: Discussion-fulltext','2006-05-30 10:55:59',1,'upgrade*3.0.2.4*99*upgrade3.0.2.4'), +(98,'upgrade*3.0.2.4*99*upgrade3.0.2.4','Upgrade from version 3.0.2.2 to 3.0.2.4','2006-05-30 10:55:59',1,'upgrade*3.0.2.4*99*upgrade3.0.2.4'), +(99,'upgrade*3.0.3*99*upgrade3.0.3','Upgrade from version 3.0.2.4 to 3.0.3','2006-05-31 13:02:04',1,'upgrade*3.0.3*99*upgrade3.0.3'), +(100,'sql*3.0.3.1*0*3.0.3.1/utf8.sql','Database upgrade to version 3.0.3.1: Utf8','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(101,'sql*3.0.3.1*0*3.0.3.1/document_immutable.sql','Database upgrade to version 3.0.3.1: Document immutable','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(102,'sql*3.0.3.1*0*3.0.3.1/workflow-triggers.sql','Database upgrade to version 3.0.3.1: Workflow-triggers','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(103,'func*3.0.3.2*0*createFolderDetailsPermission','Create the Core: Folder Details permission','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(104,'func*3.0.3.3*0*generateWorkflowTriggers','Migrate old in-transition guards to triggers','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(105,'sql*3.0.3.4*0*3.0.3.4/column_entries.sql','Database upgrade to version 3.0.3.4: Column entries','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(106,'sql*3.0.3.4*0*3.0.3.4/bulk_export_transaction.sql','Database upgrade to version 3.0.3.4: Bulk export transaction','2006-07-12 12:00:33',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(107,'upgrade*3.0.3.4*99*upgrade3.0.3.4','Upgrade from version 3.0.3 to 3.0.3.4','2006-07-12 12:00:34',1,'upgrade*3.0.3.4*99*upgrade3.0.3.4'), +(108,'sql*3.0.3.5*0*3.0.3.5/notifications_data_text.sql','Database upgrade to version 3.0.3.5: Notifications data text','2006-07-14 15:26:49',1,'upgrade*3.0.3.5*99*upgrade3.0.3.5'), +(109,'upgrade*3.0.3.5*99*upgrade3.0.3.5','Upgrade from version 3.0.3.4 to 3.0.3.5','2006-07-14 15:26:49',1,'upgrade*3.0.3.5*99*upgrade3.0.3.5'), +(110,'sql*3.0.3.6*0*3.0.3.6/document-restore.sql','Database upgrade to version 3.0.3.6: Document-restore','2006-07-26 11:48:28',1,'upgrade*3.0.3.7*99*upgrade3.0.3.7'), +(111,'func*3.0.3.7*0*rebuildAllPermissions','Rebuild all permissions to ensure correct functioning of permission-definitions.','2006-07-26 11:48:28',1,'upgrade*3.0.3.7*99*upgrade3.0.3.7'), +(112,'upgrade*3.0.3.7*99*upgrade3.0.3.7','Upgrade from version 3.0.3.5 to 3.0.3.7','2006-07-26 11:48:28',1,'upgrade*3.0.3.7*99*upgrade3.0.3.7'), +(113,'upgrade*3.1*99*upgrade3.1','Upgrade from version 3.0.3.7 to 3.1','2006-07-31 10:41:12',1,'upgrade*3.1*99*upgrade3.1'), +(114,'sql*3.1.1*0*3.1.1/parentless-documents.sql','Database upgrade to version 3.1.1: Parentless-documents','2006-08-15 11:58:07',1,'upgrade*3.1.1*99*upgrade3.1.1'), +(115,'upgrade*3.1.1*99*upgrade3.1.1','Upgrade from version 3.1 to 3.1.1','2006-08-15 11:58:07',1,'upgrade*3.1.1*99*upgrade3.1.1'), +(116,'sql*3.1.2*0*3.1.2/user-disable.sql','Database upgrade to version 3.1.2: User-disable','2006-09-08 17:08:26',1,'upgrade*3.1.2*99*upgrade3.1.2'), +(117,'upgrade*3.1.2*99*upgrade3.1.2','Upgrade from version 3.1.1 to 3.1.2','2006-09-08 17:08:26',1,'upgrade*3.1.2*99*upgrade3.1.2'), +(118,'func*3.1.5*0*upgradeSavedSearches','Upgrade saved searches to use namespaces instead of integer ids','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(119,'sql*3.1.6*0*3.1.6/interceptor_instances.sql','Database upgrade to version 3.1.6: Interceptor instances','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(120,'sql*3.1.6*0*3.1.6/workflow-sanity.sql','Database upgrade to version 3.1.6: Workflow-sanity','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(121,'sql*3.1.6.2*0*3.1.6.2/workflow_state_disabled_actions.sql','Database upgrade to version 3.1.6.2: Workflow state disabled actions','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(122,'sql*3.1.6.2*0*3.1.6.2/folder_owner_role.sql','Database upgrade to version 3.1.6.2: Folder owner role','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(123,'func*3.1.6.3*0*cleanupGroupMembership','Cleanup any old references to missing groups, etc.','2006-10-17 12:09:45',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(124,'sql*3.1.6.3*0*3.1.6.3/groups-integrity.sql','Database upgrade to version 3.1.6.3: Groups-integrity','2006-10-17 12:09:46',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(125,'sql*3.1.6.5*0*3.1.6.5/workflow-state-referencefixes.sql','Database upgrade to version 3.1.6.5: Workflow-state-referencefixes','2006-10-17 12:09:46',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(126,'sql*3.1.6.6*0*3.1.6.6/copy_transaction.sql','Database upgrade to version 3.1.6.6: Copy transaction','2006-10-17 12:09:46',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(127,'sql*3.1.6.7*0*3.1.6.7/sane-names-for-stuff.sql','Database upgrade to version 3.1.6.7: Sane-names-for-stuff','2006-10-17 12:09:46',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(128,'upgrade*3.1.6.7*99*upgrade3.1.6.7','Upgrade from version 3.1.2 to 3.1.6.7','2006-10-17 12:09:46',1,'upgrade*3.1.6.7*99*upgrade3.1.6.7'), +(129,'sql*3.3.0.1*0*3.3.0.1/system-settings-to-text.sql','Database upgrade to version 3.3.0.1: System-settings-to-text','2007-01-28 23:49:52',1,'upgrade*3.3.1*99*upgrade3.3.1'), +(130,'upgrade*3.3.0.1*99*upgrade3.3.0.1','Upgrade from version 3.1.6.7 to 3.3.0.1','2006-10-30 12:49:33',1,'upgrade*3.3.0.1*99*upgrade3.3.0.1'), +(131,'sql*3.3.1*0*3.3.1/rss.sql','Database upgrade to version 3.3.1: Rss','2007-01-28 23:49:52',1,'upgrade*3.3.1*99*upgrade3.3.1'), +(132,'upgrade*3.3.1*99*upgrade3.3.1','Upgrade from version 3.3.0.1 to 3.3.1','2007-01-28 23:49:52',1,'upgrade*3.3.1*99*upgrade3.3.1'), +(133,'sql*3.3.2*0*3.3.2/tagclouds.sql','Database upgrade to version 3.3.2: Tagclouds','2007-02-23 11:55:09',1,'upgrade*3.3.2*99*upgrade3.3.2'), +(134,'upgrade*3.3.2*99*upgrade3.3.2','Upgrade from version 3.3.1 to 3.3.2','2007-02-23 11:55:09',1,'upgrade*3.3.2*99*upgrade3.3.2'), +(135,'sql*3.4.0*0*3.4.0/upload_download.sql','Upgrade to version 3.4.0: Upload download','2007-04-17 00:00:00',1,'upgrade*3.4.0*99*upgrade3.4.0'), +(136,'upgrade*3.4.0*99*upgrade3.4.0','Upgrade from version 3.3.2 to 3.4.0','2007-04-17 00:00:00',1,'upgrade*3.4.0*99*upgrade3.4.0'), +(137,'sql*3.4.5*0*3.4.5/plugin_helper.sql','Create the plugin helper table.','2007-11-20 00:00:00',1,'upgrade*3.4.5*99*upgrade3.4.5'), +(138,'upgrade*3.4.5*99*upgrade3.4.5','Upgrade from version 3.4.0 to 3.4.5','2007-11-20 00:00:00',1,'upgrade*3.4.5*99*upgrade3.4.5'), +(139,'sql*3.4.6*0*3.4.6/remove_backslashes.sql','Remove backslashes.','2007-11-20 00:00:00',1,'upgrade*3.4.6*99*upgrade3.4.6'), +(140,'upgrade*3.4.6*99*upgrade3.4.6','Upgrade from version 3.4.5 to 3.4.6','2007-11-20 00:00:00',1,'upgrade*3.4.6*99*upgrade3.4.6'), +(141,'sql*3.5.0*0*3.5.0/admin_version_path_update.sql','Update Admin Version Plugin Path','2007-08-28 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(142,'sql*3.5.0*0*3.5.0/saved_searches.sql','Database upgrade to version 3.5.0: Saved searches','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(143,'sql*3.5.0*0*3.5.0/index_files.sql','Database upgrade to version 3.5.0: Index files','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(144,'sql*3.5.0*0*3.5.0/search_ranking.sql','Database upgrade to version 3.5.0: Search ranking','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(145,'sql*3.5.0*0*3.5.0/document_checkout.sql','Database upgrade to version 3.5.0: Document checkout','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(146,'func*3.5.0*0*cleanupOldKTAdminVersionNotifier','Cleanup any old files from the old KTAdminVersionNotifier','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(147,'upgrade*3.5.0*99*upgrade3.5.0','Upgrade from version 3.4.0 to 3.5.0','2007-09-25 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(148,'sql*3.5.0*0*3.5.0/folder_descendants.sql','Database upgrade to version 3.5.0: Folder descendants','2007-10-11 17:41:32',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(149,'sql*3.5.0*0*3.5.0/relation_friendly.sql','Database upgrade to version 3.5.0: Relation friendly','2007-10-11 17:41:33',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(150,'sql*3.5.0*0*3.5.0/plugin_rss_engine.sql','Database upgrade to version 3.5.0: Plugin rss engine','2007-10-11 17:41:33',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(151,'sql*3.5.0*0*3.5.0/document_transaction_type.sql','Database upgrade to version 3.5.0: Document transaction type','2007-10-11 17:41:33',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(152,'sql*3.5.0*0*3.5.0/scheduler_tables.sql','Database upgrade to version 3.5.0: Scheduler tables','2007-10-23 15:40:56',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(153,'func*3.5.0*0*registerIndexingTasks','Register the required indexing background tasks','2007-10-23 15:40:56',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(154,'func*3.5.0*0*updateConfigFile35','Update the config.ini file for 3.5','2007-10-23 15:40:56',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(155,'sql*3.5.0*0*3.5.0/mime_types.sql','Database upgrade to version 3.5.0: Mime types','2007-10-23 15:40:58',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(156,'upgrade*3.5.0*99*upgrade3.5.0','Upgrade from version 3.4.5 to 3.5.0','2007-11-21 00:00:00',1,'upgrade*3.5.0*99*upgrade3.5.0'), +(157,'sql*3.5.1*0*3.5.1/indexing_tasks_registration.sql','Register indexing tasks with the scheduler.','2007-11-21 00:00:00',1,'upgrade*3.5.1*99*upgrade3.5.1'), +(158,'sql*3.5.1*0*3.5.1/png_mime_type.sql','Register PNG mimetype.','2007-11-21 00:00:00',1,'upgrade*3.5.1*99*upgrade3.5.1'), +(159,'upgrade*3.5.1*99*upgrade3.5.1','Upgrade from version 3.5.0 to 3.5.1','2007-11-21 00:00:00',1,'upgrade*3.5.1*99*upgrade3.5.1'), +(160,'sql*3.5.2*0*3.5.2/document_transactions.sql','Updates document_transactions table. Changes chars to varchars.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(161,'sql*3.5.2*0*3.5.2/metadata_length.sql','Updates metadata length. Changes chars to varchars.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(162,'sql*3.5.2*0*3.5.2/scheduler_tasks.sql','Initialise some scheduler tasks.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(163,'sql*3.5.2*0*3.5.2/csv_mime.sql','Update mime types for CSV files.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(164,'func*3.5.2*1*setStorageEngine','Recreate db integrity: Set storage engine to InnoDB for transaction safety','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(165,'func*3.5.2*2*dropForeignKeys','Recreate db integrity: Drop foreign keys on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(166,'func*3.5.2*3*dropPrimaryKeys','Recreate db integrity:Drop primary keys on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(167,'func*3.5.2*4*dropIndexes','Recreate db integrity:Drop indexes on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(168,'func*3.5.2*5*createPrimaryKeys','Recreate db integrity:Create primary keys on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(169,'func*3.5.2*6*createForeignKeys','Recreate db integrity:Create foreign keys on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(170,'func*3.5.2*7*createIndexes','Recreate db integrity:Create indexes on the database','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(171,'func*3.5.2*0*removeSlashesFromObjects','Remove slashes from documents and folders','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(172,'sql*3.5.2*0*3.5.2/plugins_orderby.sql','Plugins orderby update','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(173,'sql*3.5.2*0*3.5.2/oem_no.sql','Database upgrade to version 3.5.2: Oem no','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(174,'sql*3.5.2*0*3.5.2/document_link.sql','Document Link update','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(175,'sql*3.5.2*0*3.5.2/index_file_status_message.sql','Index file status message update','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(176,'sql*3.5.2*0*3.5.2/clean_plugin_helper.sql','Clean out the plugin helper table.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(177,'sql*3.5.2*0*3.5.2/openxml_mime_types.sql','Add the OpenXML mimetypes.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(178,'sql*3.5.2*0*3.5.2/rss_plugin_title.sql','Increase size of RSS Title.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(179,'sql*3.5.2*0*3.5.2/temp_cleanup.sql','Adds background script to clean up temporary index files.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(180,'sql*3.5.2*0*3.5.2/scheduler_permissions.sql','Update scheduler permissions..','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(181,'sql*3.5.2*0*3.5.2/mime_type_update.sql','Update MIME types.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(182,'sql*3.5.2*0*3.5.2/zdashboard_tasks.sql','Update Dashboard tasks.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(183,'sql*3.5.2*0*3.5.2/zdashboard_tasks2.sql','Update more Dashboard tasks.','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(184,'upgrade*3.5.2*99*upgrade3.5.2','Upgrade from version 3.5.1 to 3.5.2','2007-11-21 00:00:00',1,'upgrade*3.5.2*99*upgrade3.5.2'), +(185,'sql*3.5.3*0*3.5.3/add_autoinc.sql','Add autoincrement.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(186,'sql*3.5.3*0*3.5.3/content_md5hash.sql','Add Content md5 hash.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(187,'sql*3.5.3*0*3.5.3/document_field_position.sql','Document field postion update.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(188,'sql*3.5.3*0*3.5.3/shortcuts.sql','Shortcuts update.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(189,'sql*3.5.3*0*3.5.3/config_settings.sql','Configuration settings update.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(190,'sql*3.5.3*0*3.5.3/doc_checked_out_user_id.sql','Checkedout user ID update.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(191,'sql*3.5.3*0*3.5.3/indexer_updates.sql','Indexer updates.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(192,'sql*3.5.3*0*3.5.3/db_optimizations.sql','Database optimizations.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(193,'sql*3.5.3*0*3.5.3/del_adminversion_plugin.sql','Remove the old Admin Version Notifier.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(194,'func*3.5.3*0*removeAdminVersionNotifier','Remove the old Admin Version Notifier files','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(195,'sql*3.5.3*0*3.5.3/del_oldsearch_plugins.sql','Remove the old Search Plugins SQL.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(196,'func*3.5.3*0*removeOldSearchPlugins','Remove the old Search Plugins files','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(197,'sql*3.5.3*0*3.5.3/add_autoinc.sql','Add auto increment to tables SQL.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(198,'func*3.5.3*0*addAutoIncrementToTables','Add auto increment.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(199,'sql*3.5.3*0*3.5.3/length_config_setting.sql','Add configurable name length.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(200,'sql*3.5.3*0*3.5.3/active_session_apptype.sql','Add active session application type.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(201,'sql*3.5.3*0*3.5.3/subscriptions.sql','Extending subscription to subfolders.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(202,'sql*3.5.3*0*3.5.3/doc_transactions.sql','Fix versions in transaction history.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(203,'sql*3.5.3*0*3.5.3/saved_search.sql','Fix saved search table to support long expressions.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(204,'sql*3.5.3*0*3.5.3/preview_column.sql','Adjust Preview Column.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(205,'sql*3.5.3*0*3.5.3/tag_cloud.sql','Update TagCloud descritption.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(206,'sql*3.5.3*0*3.5.3/doc_tran_user_index.sql','Add index on user_id to document transactions table.','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(207,'upgrade*3.5.3*99*upgrade3.5.3','Upgrade from version 3.5.2 to 3.5.3','2008-07-30 00:00:00',1,'upgrade*3.5.3*99*upgrade3.5.3'), +(208,'func*3.5.4*7*createIndexes','Recreate db integrity:Create indexes on the database','2008-10-01 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(209,'sql*3.5.4*0*3.5.4/max_sql_search_results.sql','Add configurable maximum results for SQL search queries.','2008-07-30 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(210,'sql*3.5.4*0*3.5.4/server_config_settings.sql','Create the configuration settings for the servers IP and port','2008-11-25 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(211,'func*3.5.4*0*removeOldFilesAndFolders354','Remove old files and folders that are no longer needed.','2008-10-01 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(212,'func*3.5.4*0*updateServerConfigSettings','Update the configuration settings for the server with the correct port','2008-11-25 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(213,'upgrade*3.5.4*99*upgrade3.5.4','Upgrade from version 3.5.3 to 3.5.4','2008-10-01 00:00:00',1,'upgrade*3.5.4*99*upgrade3.5.4'), +(214,'func*3.5.4a*0*removeOldFilesAndFolders354a','Remove old files and folders that are no longer needed.','2008-10-01 00:00:00',1,'upgrade*3.5.4a*99*upgrade3.5.4a'), +(215,'func*3.5.4a*0*removeOldFilesAndFolders354a1','Remove old files and folders that are no longer needed.','2008-10-01 00:00:00',1,'upgrade*3.5.4a*99*upgrade3.5.4a'), +(216,'upgrade*3.5.4a*99*upgrade3.5.4a','Upgrade from version 3.5.4 to 3.5.4a','2008-12-01 00:00:00',1,'upgrade*3.5.4a*99*upgrade3.5.4a'), +(217, 'sql*3.6*0*3.6.0/ldap_config_setting.sql', 'Database upgrade to version 3.6: Ldap config setting','2009-01-01 00:00:00',1,'upgrade*3.6.0*99*upgrade3.6.0'), +(218, 'sql*3.6*0*3.6.0/download_queue.sql', 'Database upgrade to version 3.6: Download queue','2009-01-01 00:00:00',1,'upgrade*3.6.0*99*upgrade3.6.0'), +(219,'upgrade*3.6.0*99*upgrade3.6.0','Upgrade from version 3.5.4a to 3.6.0','2009-01-01 00:00:00',1,'upgrade*3.6.0*99*upgrade3.6.0'), +(220, 'sql*3.6.1*0*3.6.1/search_ranking.sql', 'Database upgrade to version 3.6.1: Search ranking','2009-04-01 00:00:00',1,'upgrade*3.6.1*99*upgrade3.6.1'), +(221,'upgrade*3.6.1*99*upgrade3.6.1','Upgrade from version 3.6.0 to 3.6.1','2009-04-01 00:00:00',1,'upgrade*3.6.1*99*upgrade3.6.1'); +/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `uploaded_files` +-- + +LOCK TABLES `uploaded_files` WRITE; +/*!40000 ALTER TABLE `uploaded_files` DISABLE KEYS */; +/*!40000 ALTER TABLE `uploaded_files` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `user_history` +-- + +LOCK TABLES `user_history` WRITE; +/*!40000 ALTER TABLE `user_history` DISABLE KEYS */; +/*!40000 ALTER TABLE `user_history` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `users` +-- + +LOCK TABLES `users` WRITE; +/*!40000 ALTER TABLE `users` DISABLE KEYS */; +INSERT INTO `users` VALUES +(-2,'anonymous','Anonymous','---------------',0,0,NULL,NULL,0,0,NULL,30000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0), +(1,'admin','Administrator','21232f297a57a5a743894a0e4a801fc3',0,0,'','',1,1,'',1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); +/*!40000 ALTER TABLE `users` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `users_groups_link` +-- + +LOCK TABLES `users_groups_link` WRITE; +/*!40000 ALTER TABLE `users_groups_link` DISABLE KEYS */; +INSERT INTO `users_groups_link` VALUES +(1,1,1); +/*!40000 ALTER TABLE `users_groups_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_actions` +-- + +LOCK TABLES `workflow_actions` WRITE; +/*!40000 ALTER TABLE `workflow_actions` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_actions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_documents` +-- + +LOCK TABLES `workflow_documents` WRITE; +/*!40000 ALTER TABLE `workflow_documents` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_documents` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_state_actions` +-- + +LOCK TABLES `workflow_state_actions` WRITE; +/*!40000 ALTER TABLE `workflow_state_actions` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_state_actions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_state_disabled_actions` +-- + +LOCK TABLES `workflow_state_disabled_actions` WRITE; +/*!40000 ALTER TABLE `workflow_state_disabled_actions` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_state_disabled_actions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_state_permission_assignments` +-- + +LOCK TABLES `workflow_state_permission_assignments` WRITE; +/*!40000 ALTER TABLE `workflow_state_permission_assignments` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_state_permission_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_state_transitions` +-- + +LOCK TABLES `workflow_state_transitions` WRITE; +/*!40000 ALTER TABLE `workflow_state_transitions` DISABLE KEYS */; +INSERT INTO `workflow_state_transitions` VALUES +(2,2), +(3,3), +(3,4), +(5,5), +(6,6); +/*!40000 ALTER TABLE `workflow_state_transitions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_states` +-- + +LOCK TABLES `workflow_states` WRITE; +/*!40000 ALTER TABLE `workflow_states` DISABLE KEYS */; +INSERT INTO `workflow_states` VALUES +(2,2,'Draft','Draft',NULL,0,0), +(3,2,'Approval','Approval',NULL,0,0), +(4,2,'Published','Published',NULL,0,0), +(5,3,'Draft','Draft',NULL,0,0), +(6,3,'Final','Final',NULL,0,0), +(7,3,'Published','Published',NULL,0,0); +/*!40000 ALTER TABLE `workflow_states` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_transitions` +-- + +LOCK TABLES `workflow_transitions` WRITE; +/*!40000 ALTER TABLE `workflow_transitions` DISABLE KEYS */; +INSERT INTO `workflow_transitions` VALUES +(2,2,'Request Approval','Request Approval',3,NULL,NULL,NULL,NULL), +(3,2,'Reject','Reject',2,NULL,NULL,NULL,NULL), +(4,2,'Approve','Approve',4,NULL,NULL,NULL,NULL), +(5,3,'Draft Completed','Draft Completed',6,NULL,NULL,NULL,NULL), +(6,3,'Publish','Publish',7,NULL,NULL,NULL,NULL); +/*!40000 ALTER TABLE `workflow_transitions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflow_trigger_instances` +-- + +LOCK TABLES `workflow_trigger_instances` WRITE; +/*!40000 ALTER TABLE `workflow_trigger_instances` DISABLE KEYS */; +/*!40000 ALTER TABLE `workflow_trigger_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `workflows` +-- + +LOCK TABLES `workflows` WRITE; +/*!40000 ALTER TABLE `workflows` DISABLE KEYS */; +INSERT INTO `workflows` VALUES +(2,'Review Process','Review Process',2,1), +(3,'Generate Document','Generate Document',5,1); +/*!40000 ALTER TABLE `workflows` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_active_sessions` +-- + +LOCK TABLES `zseq_active_sessions` WRITE; +/*!40000 ALTER TABLE `zseq_active_sessions` DISABLE KEYS */; +INSERT INTO `zseq_active_sessions` VALUES +(1); +/*!40000 ALTER TABLE `zseq_active_sessions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_archive_restoration_request` +-- + +LOCK TABLES `zseq_archive_restoration_request` WRITE; +/*!40000 ALTER TABLE `zseq_archive_restoration_request` DISABLE KEYS */; +INSERT INTO `zseq_archive_restoration_request` VALUES +(1); +/*!40000 ALTER TABLE `zseq_archive_restoration_request` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_archiving_settings` +-- + +LOCK TABLES `zseq_archiving_settings` WRITE; +/*!40000 ALTER TABLE `zseq_archiving_settings` DISABLE KEYS */; +INSERT INTO `zseq_archiving_settings` VALUES +(1); +/*!40000 ALTER TABLE `zseq_archiving_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_archiving_type_lookup` +-- + +LOCK TABLES `zseq_archiving_type_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_archiving_type_lookup` DISABLE KEYS */; +INSERT INTO `zseq_archiving_type_lookup` VALUES +(2); +/*!40000 ALTER TABLE `zseq_archiving_type_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_authentication_sources` +-- + +LOCK TABLES `zseq_authentication_sources` WRITE; +/*!40000 ALTER TABLE `zseq_authentication_sources` DISABLE KEYS */; +INSERT INTO `zseq_authentication_sources` VALUES +(1); +/*!40000 ALTER TABLE `zseq_authentication_sources` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_column_entries` +-- + +LOCK TABLES `zseq_column_entries` WRITE; +/*!40000 ALTER TABLE `zseq_column_entries` DISABLE KEYS */; +INSERT INTO `zseq_column_entries` VALUES +(15); +/*!40000 ALTER TABLE `zseq_column_entries` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_config_settings` +-- + +LOCK TABLES `zseq_config_settings` WRITE; +/*!40000 ALTER TABLE `zseq_config_settings` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_config_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_dashlet_disables` +-- + +LOCK TABLES `zseq_dashlet_disables` WRITE; +/*!40000 ALTER TABLE `zseq_dashlet_disables` DISABLE KEYS */; +INSERT INTO `zseq_dashlet_disables` VALUES +(1); +/*!40000 ALTER TABLE `zseq_dashlet_disables` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_data_types` +-- + +LOCK TABLES `zseq_data_types` WRITE; +/*!40000 ALTER TABLE `zseq_data_types` DISABLE KEYS */; +INSERT INTO `zseq_data_types` VALUES +(5); +/*!40000 ALTER TABLE `zseq_data_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_discussion_comments` +-- + +LOCK TABLES `zseq_discussion_comments` WRITE; +/*!40000 ALTER TABLE `zseq_discussion_comments` DISABLE KEYS */; +INSERT INTO `zseq_discussion_comments` VALUES +(1); +/*!40000 ALTER TABLE `zseq_discussion_comments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_discussion_threads` +-- + +LOCK TABLES `zseq_discussion_threads` WRITE; +/*!40000 ALTER TABLE `zseq_discussion_threads` DISABLE KEYS */; +INSERT INTO `zseq_discussion_threads` VALUES +(1); +/*!40000 ALTER TABLE `zseq_discussion_threads` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_archiving_link` +-- + +LOCK TABLES `zseq_document_archiving_link` WRITE; +/*!40000 ALTER TABLE `zseq_document_archiving_link` DISABLE KEYS */; +INSERT INTO `zseq_document_archiving_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_archiving_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_content_version` +-- + +LOCK TABLES `zseq_document_content_version` WRITE; +/*!40000 ALTER TABLE `zseq_document_content_version` DISABLE KEYS */; +INSERT INTO `zseq_document_content_version` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_content_version` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_fields` +-- + +LOCK TABLES `zseq_document_fields` WRITE; +/*!40000 ALTER TABLE `zseq_document_fields` DISABLE KEYS */; +INSERT INTO `zseq_document_fields` VALUES +(5); +/*!40000 ALTER TABLE `zseq_document_fields` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_fields_link` +-- + +LOCK TABLES `zseq_document_fields_link` WRITE; +/*!40000 ALTER TABLE `zseq_document_fields_link` DISABLE KEYS */; +INSERT INTO `zseq_document_fields_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_fields_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_link` +-- + +LOCK TABLES `zseq_document_link` WRITE; +/*!40000 ALTER TABLE `zseq_document_link` DISABLE KEYS */; +INSERT INTO `zseq_document_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_link_types` +-- + +LOCK TABLES `zseq_document_link_types` WRITE; +/*!40000 ALTER TABLE `zseq_document_link_types` DISABLE KEYS */; +INSERT INTO `zseq_document_link_types` VALUES +(5); +/*!40000 ALTER TABLE `zseq_document_link_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_metadata_version` +-- + +LOCK TABLES `zseq_document_metadata_version` WRITE; +/*!40000 ALTER TABLE `zseq_document_metadata_version` DISABLE KEYS */; +INSERT INTO `zseq_document_metadata_version` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_metadata_version` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_role_allocations` +-- + +LOCK TABLES `zseq_document_role_allocations` WRITE; +/*!40000 ALTER TABLE `zseq_document_role_allocations` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_document_role_allocations` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_subscriptions` +-- + +LOCK TABLES `zseq_document_subscriptions` WRITE; +/*!40000 ALTER TABLE `zseq_document_subscriptions` DISABLE KEYS */; +INSERT INTO `zseq_document_subscriptions` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_subscriptions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_tags` +-- + +LOCK TABLES `zseq_document_tags` WRITE; +/*!40000 ALTER TABLE `zseq_document_tags` DISABLE KEYS */; +INSERT INTO `zseq_document_tags` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_tags` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_transaction_types_lookup` +-- + +LOCK TABLES `zseq_document_transaction_types_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_document_transaction_types_lookup` DISABLE KEYS */; +INSERT INTO `zseq_document_transaction_types_lookup` VALUES +(21); +/*!40000 ALTER TABLE `zseq_document_transaction_types_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_transactions` +-- + +LOCK TABLES `zseq_document_transactions` WRITE; +/*!40000 ALTER TABLE `zseq_document_transactions` DISABLE KEYS */; +INSERT INTO `zseq_document_transactions` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_transactions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_type_fields_link` +-- + +LOCK TABLES `zseq_document_type_fields_link` WRITE; +/*!40000 ALTER TABLE `zseq_document_type_fields_link` DISABLE KEYS */; +INSERT INTO `zseq_document_type_fields_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_type_fields_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_type_fieldsets_link` +-- + +LOCK TABLES `zseq_document_type_fieldsets_link` WRITE; +/*!40000 ALTER TABLE `zseq_document_type_fieldsets_link` DISABLE KEYS */; +INSERT INTO `zseq_document_type_fieldsets_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_type_fieldsets_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_document_types_lookup` +-- + +LOCK TABLES `zseq_document_types_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_document_types_lookup` DISABLE KEYS */; +INSERT INTO `zseq_document_types_lookup` VALUES +(1); +/*!40000 ALTER TABLE `zseq_document_types_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_documents` +-- + +LOCK TABLES `zseq_documents` WRITE; +/*!40000 ALTER TABLE `zseq_documents` DISABLE KEYS */; +INSERT INTO `zseq_documents` VALUES +(1); +/*!40000 ALTER TABLE `zseq_documents` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_field_behaviours` +-- + +LOCK TABLES `zseq_field_behaviours` WRITE; +/*!40000 ALTER TABLE `zseq_field_behaviours` DISABLE KEYS */; +INSERT INTO `zseq_field_behaviours` VALUES +(1); +/*!40000 ALTER TABLE `zseq_field_behaviours` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_field_value_instances` +-- + +LOCK TABLES `zseq_field_value_instances` WRITE; +/*!40000 ALTER TABLE `zseq_field_value_instances` DISABLE KEYS */; +INSERT INTO `zseq_field_value_instances` VALUES +(1); +/*!40000 ALTER TABLE `zseq_field_value_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_fieldsets` +-- + +LOCK TABLES `zseq_fieldsets` WRITE; +/*!40000 ALTER TABLE `zseq_fieldsets` DISABLE KEYS */; +INSERT INTO `zseq_fieldsets` VALUES +(3); +/*!40000 ALTER TABLE `zseq_fieldsets` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_folder_doctypes_link` +-- + +LOCK TABLES `zseq_folder_doctypes_link` WRITE; +/*!40000 ALTER TABLE `zseq_folder_doctypes_link` DISABLE KEYS */; +INSERT INTO `zseq_folder_doctypes_link` VALUES +(2); +/*!40000 ALTER TABLE `zseq_folder_doctypes_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_folder_subscriptions` +-- + +LOCK TABLES `zseq_folder_subscriptions` WRITE; +/*!40000 ALTER TABLE `zseq_folder_subscriptions` DISABLE KEYS */; +INSERT INTO `zseq_folder_subscriptions` VALUES +(1); +/*!40000 ALTER TABLE `zseq_folder_subscriptions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_folder_transactions` +-- + +LOCK TABLES `zseq_folder_transactions` WRITE; +/*!40000 ALTER TABLE `zseq_folder_transactions` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_folder_transactions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_folders` +-- + +LOCK TABLES `zseq_folders` WRITE; +/*!40000 ALTER TABLE `zseq_folders` DISABLE KEYS */; +INSERT INTO `zseq_folders` VALUES +(2); +/*!40000 ALTER TABLE `zseq_folders` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_folders_users_roles_link` +-- + +LOCK TABLES `zseq_folders_users_roles_link` WRITE; +/*!40000 ALTER TABLE `zseq_folders_users_roles_link` DISABLE KEYS */; +INSERT INTO `zseq_folders_users_roles_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_folders_users_roles_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_groups_groups_link` +-- + +LOCK TABLES `zseq_groups_groups_link` WRITE; +/*!40000 ALTER TABLE `zseq_groups_groups_link` DISABLE KEYS */; +INSERT INTO `zseq_groups_groups_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_groups_groups_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_groups_lookup` +-- + +LOCK TABLES `zseq_groups_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_groups_lookup` DISABLE KEYS */; +INSERT INTO `zseq_groups_lookup` VALUES +(3); +/*!40000 ALTER TABLE `zseq_groups_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_help` +-- + +LOCK TABLES `zseq_help` WRITE; +/*!40000 ALTER TABLE `zseq_help` DISABLE KEYS */; +INSERT INTO `zseq_help` VALUES +(100); +/*!40000 ALTER TABLE `zseq_help` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_help_replacement` +-- + +LOCK TABLES `zseq_help_replacement` WRITE; +/*!40000 ALTER TABLE `zseq_help_replacement` DISABLE KEYS */; +INSERT INTO `zseq_help_replacement` VALUES +(1); +/*!40000 ALTER TABLE `zseq_help_replacement` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_interceptor_instances` +-- + +LOCK TABLES `zseq_interceptor_instances` WRITE; +/*!40000 ALTER TABLE `zseq_interceptor_instances` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_interceptor_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_links` +-- + +LOCK TABLES `zseq_links` WRITE; +/*!40000 ALTER TABLE `zseq_links` DISABLE KEYS */; +INSERT INTO `zseq_links` VALUES +(1); +/*!40000 ALTER TABLE `zseq_links` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_metadata_lookup` +-- + +LOCK TABLES `zseq_metadata_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_metadata_lookup` DISABLE KEYS */; +INSERT INTO `zseq_metadata_lookup` VALUES +(11); +/*!40000 ALTER TABLE `zseq_metadata_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_metadata_lookup_tree` +-- + +LOCK TABLES `zseq_metadata_lookup_tree` WRITE; +/*!40000 ALTER TABLE `zseq_metadata_lookup_tree` DISABLE KEYS */; +INSERT INTO `zseq_metadata_lookup_tree` VALUES +(1); +/*!40000 ALTER TABLE `zseq_metadata_lookup_tree` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_mime_documents` +-- + +LOCK TABLES `zseq_mime_documents` WRITE; +/*!40000 ALTER TABLE `zseq_mime_documents` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_mime_documents` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_mime_extractors` +-- + +LOCK TABLES `zseq_mime_extractors` WRITE; +/*!40000 ALTER TABLE `zseq_mime_extractors` DISABLE KEYS */; +INSERT INTO `zseq_mime_extractors` VALUES +(1); +/*!40000 ALTER TABLE `zseq_mime_extractors` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_mime_types` +-- + +LOCK TABLES `zseq_mime_types` WRITE; +/*!40000 ALTER TABLE `zseq_mime_types` DISABLE KEYS */; +INSERT INTO `zseq_mime_types` VALUES +(171); +/*!40000 ALTER TABLE `zseq_mime_types` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_news` +-- + +LOCK TABLES `zseq_news` WRITE; +/*!40000 ALTER TABLE `zseq_news` DISABLE KEYS */; +INSERT INTO `zseq_news` VALUES +(1); +/*!40000 ALTER TABLE `zseq_news` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_notifications` +-- + +LOCK TABLES `zseq_notifications` WRITE; +/*!40000 ALTER TABLE `zseq_notifications` DISABLE KEYS */; +INSERT INTO `zseq_notifications` VALUES +(1); +/*!40000 ALTER TABLE `zseq_notifications` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_organisations_lookup` +-- + +LOCK TABLES `zseq_organisations_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_organisations_lookup` DISABLE KEYS */; +INSERT INTO `zseq_organisations_lookup` VALUES +(1); +/*!40000 ALTER TABLE `zseq_organisations_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_assignments` +-- + +LOCK TABLES `zseq_permission_assignments` WRITE; +/*!40000 ALTER TABLE `zseq_permission_assignments` DISABLE KEYS */; +INSERT INTO `zseq_permission_assignments` VALUES +(8); +/*!40000 ALTER TABLE `zseq_permission_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_descriptors` +-- + +LOCK TABLES `zseq_permission_descriptors` WRITE; +/*!40000 ALTER TABLE `zseq_permission_descriptors` DISABLE KEYS */; +INSERT INTO `zseq_permission_descriptors` VALUES +(2); +/*!40000 ALTER TABLE `zseq_permission_descriptors` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_dynamic_conditions` +-- + +LOCK TABLES `zseq_permission_dynamic_conditions` WRITE; +/*!40000 ALTER TABLE `zseq_permission_dynamic_conditions` DISABLE KEYS */; +INSERT INTO `zseq_permission_dynamic_conditions` VALUES +(1); +/*!40000 ALTER TABLE `zseq_permission_dynamic_conditions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_lookup_assignments` +-- + +LOCK TABLES `zseq_permission_lookup_assignments` WRITE; +/*!40000 ALTER TABLE `zseq_permission_lookup_assignments` DISABLE KEYS */; +INSERT INTO `zseq_permission_lookup_assignments` VALUES +(24); +/*!40000 ALTER TABLE `zseq_permission_lookup_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_lookups` +-- + +LOCK TABLES `zseq_permission_lookups` WRITE; +/*!40000 ALTER TABLE `zseq_permission_lookups` DISABLE KEYS */; +INSERT INTO `zseq_permission_lookups` VALUES +(5); +/*!40000 ALTER TABLE `zseq_permission_lookups` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permission_objects` +-- + +LOCK TABLES `zseq_permission_objects` WRITE; +/*!40000 ALTER TABLE `zseq_permission_objects` DISABLE KEYS */; +INSERT INTO `zseq_permission_objects` VALUES +(1); +/*!40000 ALTER TABLE `zseq_permission_objects` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_permissions` +-- + +LOCK TABLES `zseq_permissions` WRITE; +/*!40000 ALTER TABLE `zseq_permissions` DISABLE KEYS */; +INSERT INTO `zseq_permissions` VALUES +(8); +/*!40000 ALTER TABLE `zseq_permissions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_plugin_helper` +-- + +LOCK TABLES `zseq_plugin_helper` WRITE; +/*!40000 ALTER TABLE `zseq_plugin_helper` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_plugin_helper` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_plugin_rss` +-- + +LOCK TABLES `zseq_plugin_rss` WRITE; +/*!40000 ALTER TABLE `zseq_plugin_rss` DISABLE KEYS */; +INSERT INTO `zseq_plugin_rss` VALUES +(1); +/*!40000 ALTER TABLE `zseq_plugin_rss` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_plugins` +-- + +LOCK TABLES `zseq_plugins` WRITE; +/*!40000 ALTER TABLE `zseq_plugins` DISABLE KEYS */; +INSERT INTO `zseq_plugins` VALUES +(22); +/*!40000 ALTER TABLE `zseq_plugins` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_role_allocations` +-- + +LOCK TABLES `zseq_role_allocations` WRITE; +/*!40000 ALTER TABLE `zseq_role_allocations` DISABLE KEYS */; +INSERT INTO `zseq_role_allocations` VALUES +(1); +/*!40000 ALTER TABLE `zseq_role_allocations` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_roles` +-- + +LOCK TABLES `zseq_roles` WRITE; +/*!40000 ALTER TABLE `zseq_roles` DISABLE KEYS */; +INSERT INTO `zseq_roles` VALUES +(4); +/*!40000 ALTER TABLE `zseq_roles` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_saved_searches` +-- + +LOCK TABLES `zseq_saved_searches` WRITE; +/*!40000 ALTER TABLE `zseq_saved_searches` DISABLE KEYS */; +INSERT INTO `zseq_saved_searches` VALUES +(1); +/*!40000 ALTER TABLE `zseq_saved_searches` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_scheduler_tasks` +-- + +LOCK TABLES `zseq_scheduler_tasks` WRITE; +/*!40000 ALTER TABLE `zseq_scheduler_tasks` DISABLE KEYS */; +INSERT INTO `zseq_scheduler_tasks` VALUES +(10); +/*!40000 ALTER TABLE `zseq_scheduler_tasks` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_search_saved` +-- + +LOCK TABLES `zseq_search_saved` WRITE; +/*!40000 ALTER TABLE `zseq_search_saved` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_search_saved` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_status_lookup` +-- + +LOCK TABLES `zseq_status_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_status_lookup` DISABLE KEYS */; +INSERT INTO `zseq_status_lookup` VALUES +(6); +/*!40000 ALTER TABLE `zseq_status_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_system_settings` +-- + +LOCK TABLES `zseq_system_settings` WRITE; +/*!40000 ALTER TABLE `zseq_system_settings` DISABLE KEYS */; +INSERT INTO `zseq_system_settings` VALUES +(3); +/*!40000 ALTER TABLE `zseq_system_settings` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_tag_words` +-- + +LOCK TABLES `zseq_tag_words` WRITE; +/*!40000 ALTER TABLE `zseq_tag_words` DISABLE KEYS */; +INSERT INTO `zseq_tag_words` VALUES +(1); +/*!40000 ALTER TABLE `zseq_tag_words` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_time_period` +-- + +LOCK TABLES `zseq_time_period` WRITE; +/*!40000 ALTER TABLE `zseq_time_period` DISABLE KEYS */; +INSERT INTO `zseq_time_period` VALUES +(1); +/*!40000 ALTER TABLE `zseq_time_period` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_time_unit_lookup` +-- + +LOCK TABLES `zseq_time_unit_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_time_unit_lookup` DISABLE KEYS */; +INSERT INTO `zseq_time_unit_lookup` VALUES +(3); +/*!40000 ALTER TABLE `zseq_time_unit_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_units_lookup` +-- + +LOCK TABLES `zseq_units_lookup` WRITE; +/*!40000 ALTER TABLE `zseq_units_lookup` DISABLE KEYS */; +INSERT INTO `zseq_units_lookup` VALUES +(1); +/*!40000 ALTER TABLE `zseq_units_lookup` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_units_organisations_link` +-- + +LOCK TABLES `zseq_units_organisations_link` WRITE; +/*!40000 ALTER TABLE `zseq_units_organisations_link` DISABLE KEYS */; +INSERT INTO `zseq_units_organisations_link` VALUES +(1); +/*!40000 ALTER TABLE `zseq_units_organisations_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_upgrades` +-- + +LOCK TABLES `zseq_upgrades` WRITE; +/*!40000 ALTER TABLE `zseq_upgrades` DISABLE KEYS */; +INSERT INTO `zseq_upgrades` VALUES +(221); +/*!40000 ALTER TABLE `zseq_upgrades` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_user_history` +-- + +LOCK TABLES `zseq_user_history` WRITE; +/*!40000 ALTER TABLE `zseq_user_history` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_user_history` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_users` +-- + +LOCK TABLES `zseq_users` WRITE; +/*!40000 ALTER TABLE `zseq_users` DISABLE KEYS */; +INSERT INTO `zseq_users` VALUES +(3); +/*!40000 ALTER TABLE `zseq_users` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_users_groups_link` +-- + +LOCK TABLES `zseq_users_groups_link` WRITE; +/*!40000 ALTER TABLE `zseq_users_groups_link` DISABLE KEYS */; +INSERT INTO `zseq_users_groups_link` VALUES +(3); +/*!40000 ALTER TABLE `zseq_users_groups_link` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflow_state_disabled_actions` +-- + +LOCK TABLES `zseq_workflow_state_disabled_actions` WRITE; +/*!40000 ALTER TABLE `zseq_workflow_state_disabled_actions` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_workflow_state_disabled_actions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflow_state_permission_assignments` +-- + +LOCK TABLES `zseq_workflow_state_permission_assignments` WRITE; +/*!40000 ALTER TABLE `zseq_workflow_state_permission_assignments` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_workflow_state_permission_assignments` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflow_states` +-- + +LOCK TABLES `zseq_workflow_states` WRITE; +/*!40000 ALTER TABLE `zseq_workflow_states` DISABLE KEYS */; +INSERT INTO `zseq_workflow_states` VALUES +(7); +/*!40000 ALTER TABLE `zseq_workflow_states` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflow_transitions` +-- + +LOCK TABLES `zseq_workflow_transitions` WRITE; +/*!40000 ALTER TABLE `zseq_workflow_transitions` DISABLE KEYS */; +INSERT INTO `zseq_workflow_transitions` VALUES +(6); +/*!40000 ALTER TABLE `zseq_workflow_transitions` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflow_trigger_instances` +-- + +LOCK TABLES `zseq_workflow_trigger_instances` WRITE; +/*!40000 ALTER TABLE `zseq_workflow_trigger_instances` DISABLE KEYS */; +/*!40000 ALTER TABLE `zseq_workflow_trigger_instances` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Dumping data for table `zseq_workflows` +-- + +LOCK TABLES `zseq_workflows` WRITE; +/*!40000 ALTER TABLE `zseq_workflows` DISABLE KEYS */; +INSERT INTO `zseq_workflows` VALUES +(3); +/*!40000 ALTER TABLE `zseq_workflows` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2008-06-26 13:51:02 diff --git a/setup/wizard/sql/structure.sql b/setup/wizard/sql/structure.sql new file mode 100755 index 0000000..80e1d99 --- /dev/null +++ b/setup/wizard/sql/structure.sql @@ -0,0 +1,2546 @@ +-- +-- $Id$ +-- +-- KnowledgeTree Community Edition +-- Document Management Made Simple +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. +-- Portions copyright The Jam Warehouse Software (Pty) Limited +-- +-- This program is free software; you can redistribute it and/or modify it under +-- the terms of the GNU General Public License version 3 as published by the +-- Free Software Foundation. +-- +-- This program is distributed in the hope that it will be useful, but WITHOUT +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +-- details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +-- California 94120-7775, or email info@knowledgetree.com. +-- +-- The interactive user interfaces in modified source and object code versions +-- of this program must display Appropriate Legal Notices, as required under +-- Section 5 of the GNU General Public License version 3. +-- +-- In accordance with Section 7(b) of the GNU General Public License version 3, +-- these Appropriate Legal Notices must retain the display of the "Powered by +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +-- must display the words "Powered by KnowledgeTree" and retain the original +-- copyright notice. +-- Contributor( s): ______________________________________ +-- +-- MySQL dump 10.11 +-- +-- Host: localhost Database: ktdms +-- ------------------------------------------------------ +-- Server version 5.0.41-log + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `active_sessions` +-- + +CREATE TABLE `active_sessions` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) default NULL, + `session_id` varchar(32) default NULL, + `lastused` datetime default NULL, + `ip` varchar(15) default NULL, + `apptype` varchar(15) default 'webapp' NOT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `session_id` (`session_id`), + CONSTRAINT `active_sessions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `archive_restoration_request` +-- + +CREATE TABLE `archive_restoration_request` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL default '0', + `request_user_id` int(11) NOT NULL default '0', + `admin_user_id` int(11) NOT NULL default '0', + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', + PRIMARY KEY (`id`), + KEY `document_id` (`document_id`), + KEY `request_user_id` (`request_user_id`), + KEY `admin_user_id` (`admin_user_id`), + CONSTRAINT `archive_restoration_request_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `archive_restoration_request_ibfk_2` FOREIGN KEY (`request_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `archive_restoration_request_ibfk_3` FOREIGN KEY (`admin_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `archiving_settings` +-- + +CREATE TABLE `archiving_settings` ( + `id` int(11) NOT NULL auto_increment, + `archiving_type_id` int(11) NOT NULL default '0', + `expiration_date` date default NULL, + `document_transaction_id` int(11) default NULL, + `time_period_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `archiving_type_id` (`archiving_type_id`), + KEY `time_period_id` (`time_period_id`), + CONSTRAINT `archiving_settings_ibfk_1` FOREIGN KEY (`archiving_type_id`) REFERENCES `archiving_type_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `archiving_settings_ibfk_2` FOREIGN KEY (`time_period_id`) REFERENCES `time_period` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `archiving_type_lookup` +-- + +CREATE TABLE `archiving_type_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) default NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `authentication_sources` +-- + +CREATE TABLE `authentication_sources` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(50) NOT NULL, + `namespace` varchar(255) NOT NULL default '', + `authentication_provider` varchar(255) NOT NULL default '', + `config` mediumtext NOT NULL, + `is_user_source` tinyint(1) NOT NULL default '0', + `is_group_source` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `namespace` (`namespace`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `column_entries` +-- + +CREATE TABLE `column_entries` ( + `id` int(11) NOT NULL auto_increment, + `column_namespace` varchar(255) NOT NULL default '', + `view_namespace` varchar(255) NOT NULL default '', + `config_array` text NOT NULL, + `position` int(11) NOT NULL default '0', + `required` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `view_namespace` (`view_namespace`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `comment_searchable_text` +-- + +CREATE TABLE `comment_searchable_text` ( + `comment_id` int(11) NOT NULL default '0', + `body` mediumtext, + `document_id` int(11) NOT NULL default '0', + PRIMARY KEY (`comment_id`), + KEY `document_id` (`document_id`), + FULLTEXT KEY `body` (`body`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `config_groups` +-- + +CREATE TABLE `config_groups` ( + `id` int(255) unsigned NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `display_name` varchar(255) default NULL, + `description` mediumtext, + `category` varchar(255) default NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `config_settings` +-- + +CREATE TABLE `config_settings` ( + `id` int(11) NOT NULL auto_increment, + `group_name` varchar(255) NOT NULL, + `display_name` varchar(255) default NULL, + `description` mediumtext, + `item` varchar(255) NOT NULL, + `value` varchar(255) NOT NULL default 'default', + `default_value` varchar(255) NOT NULL, + `type` enum('boolean','string','numeric_string','numeric','radio','dropdown') default 'string', + `options` mediumtext, + `can_edit` tinyint(1) NOT NULL default '1', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `dashlet_disables` +-- + +CREATE TABLE `dashlet_disables` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL default '0', + `dashlet_namespace` varchar(255) NOT NULL default '', + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `dashlet_namespace` (`dashlet_namespace`), + CONSTRAINT `dashlet_disables_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `data_types` +-- + +CREATE TABLE `data_types` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `discussion_comments` +-- + +CREATE TABLE `discussion_comments` ( + `id` int(11) NOT NULL auto_increment, + `thread_id` int(11) NOT NULL default '0', + `in_reply_to` int(11) default NULL, + `user_id` int(11) NOT NULL default '0', + `subject` mediumtext, + `body` mediumtext, + `date` datetime default NULL, + PRIMARY KEY (`id`), + KEY `thread_id` (`thread_id`), + KEY `user_id` (`user_id`), + KEY `in_reply_to` (`in_reply_to`), + CONSTRAINT `discussion_comments_ibfk_1` FOREIGN KEY (`thread_id`) REFERENCES `discussion_threads` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `discussion_comments_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `discussion_comments_ibfk_3` FOREIGN KEY (`in_reply_to`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `discussion_threads` +-- + +CREATE TABLE `discussion_threads` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL, + `first_comment_id` int(11) default NULL, + `last_comment_id` int(11) default NULL, + `views` int(11) NOT NULL default '0', + `replies` int(11) NOT NULL default '0', + `creator_id` int(11) NOT NULL, + `close_reason` mediumtext NOT NULL, + `close_metadata_version` int(11) NOT NULL default '0', + `state` int(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `document_id` (`document_id`), + KEY `first_comment_id` (`first_comment_id`), + KEY `last_comment_id` (`last_comment_id`), + KEY `creator_id` (`creator_id`), + CONSTRAINT `discussion_threads_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `discussion_threads_ibfk_2` FOREIGN KEY (`first_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `discussion_threads_ibfk_3` FOREIGN KEY (`last_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `discussion_threads_ibfk_4` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_archiving_link` +-- + +CREATE TABLE `document_archiving_link` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL default '0', + `archiving_settings_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `document_id` (`document_id`), + KEY `archiving_settings_id` (`archiving_settings_id`), + CONSTRAINT `document_archiving_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_archiving_link_ibfk_2` FOREIGN KEY (`archiving_settings_id`) REFERENCES `archiving_settings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_content_version` +-- + +CREATE TABLE `document_content_version` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL default '0', + `filename` mediumtext NOT NULL, + `size` bigint(20) NOT NULL default '0', + `mime_id` int(11) default '9', + `major_version` int(11) NOT NULL default '0', + `minor_version` int(11) NOT NULL default '0', + `storage_path` varchar(1024) default NULL, + `md5hash` char(32) default NULL, + PRIMARY KEY (`id`), + KEY `document_id` (`document_id`), + KEY `mime_id` (`mime_id`), + KEY `storage_path` (`storage_path`(255)), + KEY `filename` (`filename`(255)), + KEY `size` (`size`), + CONSTRAINT `document_content_version_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_content_version_ibfk_2` FOREIGN KEY (`mime_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_fields` +-- + +CREATE TABLE `document_fields` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL default '', + `data_type` varchar(100) NOT NULL default '', + `is_generic` tinyint(1) default NULL, + `has_lookup` tinyint(1) default NULL, + `has_lookuptree` tinyint(1) default NULL, + `parent_fieldset` int(11) default NULL, + `is_mandatory` tinyint(1) NOT NULL default '0', + `description` mediumtext NOT NULL, + `position` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `parent_fieldset` (`parent_fieldset`), + CONSTRAINT `document_fields_ibfk_1` FOREIGN KEY (`parent_fieldset`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_fields_link` +-- + +CREATE TABLE `document_fields_link` ( + `id` int(11) NOT NULL auto_increment, + `document_field_id` int(11) NOT NULL default '0', + `value` mediumtext NOT NULL, + `metadata_version_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `document_field_id` (`document_field_id`), + KEY `metadata_version_id` (`metadata_version_id`), + CONSTRAINT `document_fields_link_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_fields_link_ibfk_2` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_incomplete` +-- + +CREATE TABLE `document_incomplete` ( + `id` int(11) NOT NULL auto_increment, + `contents` tinyint(1) unsigned NOT NULL default '0', + `metadata` tinyint(1) unsigned NOT NULL default '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_link` +-- + +CREATE TABLE `document_link` ( + `id` int(11) NOT NULL auto_increment, + `parent_document_id` int(11) NOT NULL default '0', + `child_document_id` int(11) NOT NULL default '0', + `link_type_id` int(11) NOT NULL default '0', + `external_url` varchar(255) default NULL, + `external_name` varchar(50) default NULL, + PRIMARY KEY (`id`), + KEY `parent_document_id` (`parent_document_id`), + KEY `child_document_id` (`child_document_id`), + KEY `link_type_id` (`link_type_id`), + CONSTRAINT `document_link_ibfk_1` FOREIGN KEY (`parent_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_link_ibfk_2` FOREIGN KEY (`child_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_link_ibfk_3` FOREIGN KEY (`link_type_id`) REFERENCES `document_link_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_link_types` +-- + +CREATE TABLE `document_link_types` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + `reverse_name` varchar(100) NOT NULL, + `description` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_metadata_version` +-- + +CREATE TABLE `document_metadata_version` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL default '0', + `content_version_id` int(11) NOT NULL default '0', + `document_type_id` int(11) NOT NULL default '0', + `name` mediumtext NOT NULL, + `description` varchar(255) default NULL, + `status_id` int(11) default NULL, + `metadata_version` int(11) NOT NULL default '0', + `version_created` datetime NOT NULL default '0000-00-00 00:00:00', + `version_creator_id` int(11) NOT NULL default '0', + `workflow_id` int(11) default NULL, + `workflow_state_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `document_type_id` (`document_type_id`), + KEY `status_id` (`status_id`), + KEY `document_id` (`document_id`), + KEY `version_creator_id` (`version_creator_id`), + KEY `content_version_id` (`content_version_id`), + KEY `workflow_id` (`workflow_id`), + KEY `workflow_state_id` (`workflow_state_id`), + KEY `version_created` (`version_created`), + CONSTRAINT `document_metadata_version_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_2` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_3` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_4` FOREIGN KEY (`version_creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_5` FOREIGN KEY (`content_version_id`) REFERENCES `document_content_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_6` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_metadata_version_ibfk_7` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_role_allocations` +-- + +CREATE TABLE `document_role_allocations` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) NOT NULL default '0', + `role_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `role_id` (`role_id`), + KEY `permission_descriptor_id` (`permission_descriptor_id`), + KEY `document_id_role_id` (`document_id`,`role_id`), + CONSTRAINT `document_role_allocations_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_role_allocations_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_searchable_text` +-- + +CREATE TABLE `document_searchable_text` ( + `document_id` int(11) default NULL, + `document_text` longtext, + KEY `document_id` (`document_id`), + FULLTEXT KEY `document_text` (`document_text`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_subscriptions` +-- + +CREATE TABLE `document_subscriptions` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL default '0', + `document_id` int(11) NOT NULL default '0', + `is_alerted` tinyint(1) default NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `document_id` (`document_id`), + CONSTRAINT `document_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_subscriptions_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_tags` +-- + +CREATE TABLE `document_tags` ( + `document_id` int(11) NOT NULL, + `tag_id` int(11) NOT NULL, + PRIMARY KEY (`document_id`,`tag_id`), + KEY `tag_id` (`tag_id`), + CONSTRAINT `document_tags_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_tags_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `tag_words` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_text` +-- + +CREATE TABLE `document_text` ( + `document_id` int(11) NOT NULL default '0', + `document_text` longtext, + PRIMARY KEY (`document_id`), + FULLTEXT KEY `document_text` (`document_text`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_transaction_text` +-- + +CREATE TABLE `document_transaction_text` ( + `document_id` int(11) NOT NULL default '0', + `document_text` mediumtext, + PRIMARY KEY (`document_id`), + FULLTEXT KEY `document_text` (`document_text`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_transaction_types_lookup` +-- + +CREATE TABLE `document_transaction_types_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL default '', + `namespace` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `namespace` (`namespace`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_transactions` +-- + +CREATE TABLE `document_transactions` ( + `id` int(11) NOT NULL auto_increment, + `document_id` int(11) default NULL, + `version` varchar(10), + `user_id` int(11) default NULL, + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', + `ip` varchar(15) default NULL, + `filename` mediumtext NOT NULL, + `comment` mediumtext NOT NULL, + `transaction_namespace` varchar(255) NOT NULL default 'ktcore.transactions.event', + `session_id` int(11) default NULL, + `admin_mode` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `session_id` (`session_id`), + KEY `document_id` (`document_id`), + KEY `user_id` (`user_id`), + KEY `datetime` (`datetime`,`transaction_namespace`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_type_fields_link` +-- + +CREATE TABLE `document_type_fields_link` ( + `id` int(11) NOT NULL auto_increment, + `document_type_id` int(11) NOT NULL default '0', + `field_id` int(11) NOT NULL default '0', + `is_mandatory` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `document_type_id` (`document_type_id`), + KEY `field_id` (`field_id`), + CONSTRAINT `document_type_fields_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_type_fields_link_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_type_fieldsets_link` +-- + +CREATE TABLE `document_type_fieldsets_link` ( + `id` int(11) NOT NULL auto_increment, + `document_type_id` int(11) NOT NULL default '0', + `fieldset_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `document_type_id` (`document_type_id`), + KEY `fieldset_id` (`fieldset_id`), + CONSTRAINT `document_type_fieldsets_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `document_type_fieldsets_link_ibfk_2` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `document_types_lookup` +-- + +CREATE TABLE `document_types_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) default NULL, + `disabled` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `documents` +-- + +CREATE TABLE `documents` ( + `id` int(11) NOT NULL auto_increment, + `creator_id` int(11) default NULL, + `modified` datetime NOT NULL default '0000-00-00 00:00:00', + `folder_id` int(11) default NULL, + `is_checked_out` tinyint(1) NOT NULL default '0', + `parent_folder_ids` mediumtext, + `full_path` mediumtext, + `checked_out_user_id` int(11) default NULL, + `status_id` int(11) default NULL, + `created` datetime NOT NULL default '0000-00-00 00:00:00', + `permission_object_id` int(11) default NULL, + `permission_lookup_id` int(11) default NULL, + `metadata_version` int(11) NOT NULL default '0', + `modified_user_id` int(11) default NULL, + `metadata_version_id` int(11) default NULL, + `owner_id` int(11) default NULL, + `immutable` tinyint(1) NOT NULL default '0', + `restore_folder_id` int(11) default NULL, + `restore_folder_path` text, + `checkedout` datetime default NULL, + `oem_no` varchar(255) default NULL, + `linked_document_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `creator_id` (`creator_id`), + KEY `folder_id` (`folder_id`), + KEY `checked_out_user_id` (`checked_out_user_id`), + KEY `status_id` (`status_id`), + KEY `permission_object_id` (`permission_object_id`), + KEY `permission_lookup_id` (`permission_lookup_id`), + KEY `modified_user_id` (`modified_user_id`), + KEY `metadata_version_id` (`metadata_version_id`), + KEY `created` (`created`), + KEY `modified` (`modified`), + KEY `full_path` (`full_path`(255)), + KEY `immutable` (`immutable`), + KEY `checkedout` (`checkedout`), + KEY `oem_no` (`oem_no`), + CONSTRAINT `documents_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, + CONSTRAINT `documents_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `documents_ibfk_3` FOREIGN KEY (`checked_out_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, + CONSTRAINT `documents_ibfk_4` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `documents_ibfk_5` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `documents_ibfk_6` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `documents_ibfk_7` FOREIGN KEY (`modified_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, + CONSTRAINT `documents_ibfk_8` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `download_files` +-- + +CREATE TABLE `download_files` ( + `document_id` int(11) NOT NULL, + `session` varchar(100) NOT NULL, + `download_date` timestamp NULL default CURRENT_TIMESTAMP, + `downloaded` int(10) unsigned NOT NULL default '0', + `filesize` int(10) unsigned NOT NULL, + `content_version` int(10) unsigned NOT NULL, + `hash` varchar(100) NOT NULL, + PRIMARY KEY (`document_id`,`session`), + CONSTRAINT `download_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `download_queue` +-- + +CREATE TABLE `download_queue` ( + `code` char(16) NOT NULL, + `folder_id` int(11) NOT NULL, + `object_id` int(11) NOT NULL, + `object_type` enum('document', 'folder') NOT NULL default 'folder', + `user_id` int(11) NOT NULL, + `date_added` timestamp NOT NULL default CURRENT_TIMESTAMP, + `status` tinyint(4) NOT NULL default 0, + `errors` mediumtext, + INDEX (`code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `field_behaviour_options` +-- + +CREATE TABLE `field_behaviour_options` ( + `behaviour_id` int(11) NOT NULL default '0', + `field_id` int(11) NOT NULL default '0', + `instance_id` int(11) NOT NULL default '0', + KEY `field_id` (`field_id`), + KEY `instance_id` (`instance_id`), + KEY `behaviour_id_field_id` (`behaviour_id`,`field_id`), + CONSTRAINT `field_behaviour_options_ibfk_1` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_behaviour_options_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_behaviour_options_ibfk_3` FOREIGN KEY (`instance_id`) REFERENCES `field_value_instances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `field_behaviours` +-- + +CREATE TABLE `field_behaviours` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `human_name` varchar(100) NOT NULL, + `field_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `field_id` (`field_id`), + KEY `name` (`name`), + CONSTRAINT `field_behaviours_ibfk_1` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `field_orders` +-- + +CREATE TABLE `field_orders` ( + `parent_field_id` int(11) NOT NULL default '0', + `child_field_id` int(11) NOT NULL default '0', + `fieldset_id` int(11) NOT NULL default '0', + UNIQUE KEY `child_field_id` (`child_field_id`), + KEY `parent_field_id` (`parent_field_id`), + KEY `fieldset_id` (`fieldset_id`), + CONSTRAINT `field_orders_ibfk_1` FOREIGN KEY (`child_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_orders_ibfk_2` FOREIGN KEY (`parent_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_orders_ibfk_3` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `field_value_instances` +-- + +CREATE TABLE `field_value_instances` ( + `id` int(11) NOT NULL auto_increment, + `field_id` int(11) NOT NULL default '0', + `field_value_id` int(11) NOT NULL default '0', + `behaviour_id` int(11) default '0', + PRIMARY KEY (`id`), + KEY `field_value_id` (`field_value_id`), + KEY `behaviour_id` (`behaviour_id`), + KEY `field_id` (`field_id`), + CONSTRAINT `field_value_instances_ibfk_1` FOREIGN KEY (`field_value_id`) REFERENCES `metadata_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_value_instances_ibfk_2` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `field_value_instances_ibfk_3` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `fieldsets` +-- + +CREATE TABLE `fieldsets` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL default '', + `namespace` varchar(255) NOT NULL default '', + `mandatory` tinyint(1) NOT NULL default '0', + `is_conditional` tinyint(1) NOT NULL default '0', + `master_field` int(11) default NULL, + `is_generic` tinyint(1) NOT NULL default '0', + `is_complex` tinyint(1) NOT NULL default '0', + `is_complete` tinyint(1) NOT NULL default '1', + `is_system` tinyint(1) unsigned NOT NULL default '0', + `description` mediumtext NOT NULL, + `disabled` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `master_field` (`master_field`), + KEY `is_generic` (`is_generic`), + KEY `is_complete` (`is_complete`), + KEY `is_system` (`is_system`), + CONSTRAINT `fieldsets_ibfk_1` FOREIGN KEY (`master_field`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_descendants` +-- + +CREATE TABLE `folder_descendants` ( + `parent_id` int(11) NOT NULL, + `folder_id` int(11) NOT NULL, + KEY `parent_id` (`parent_id`), + KEY `folder_id` (`folder_id`), + CONSTRAINT `folder_descendants_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folder_descendants_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_doctypes_link` +-- + +CREATE TABLE `folder_doctypes_link` ( + `id` int(11) NOT NULL auto_increment, + `folder_id` int(11) NOT NULL default '0', + `document_type_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `folder_id` (`folder_id`), + KEY `document_type_id` (`document_type_id`), + CONSTRAINT `folder_doctypes_link_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folder_doctypes_link_ibfk_2` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_searchable_text` +-- + +CREATE TABLE `folder_searchable_text` ( + `folder_id` int(11) NOT NULL default '0', + `folder_text` mediumtext, + PRIMARY KEY (`folder_id`), + FULLTEXT KEY `folder_text` (`folder_text`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_subscriptions` +-- + +CREATE TABLE `folder_subscriptions` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL default '0', + `folder_id` int(11) NOT NULL default '0', + `is_alerted` tinyint(1) default NULL, + `with_subfolders` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `folder_id` (`folder_id`), + CONSTRAINT `folder_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folder_subscriptions_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_transactions` +-- + +CREATE TABLE `folder_transactions` ( + `id` int(11) NOT NULL auto_increment, + `folder_id` int(11) default NULL, + `user_id` int(11) default NULL, + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', + `ip` varchar(15) default NULL, + `comment` varchar(255) NOT NULL, + `transaction_namespace` varchar(255) NOT NULL, + `session_id` int(11) default NULL, + `admin_mode` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `folder_id` (`folder_id`), + KEY `session_id` (`session_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folder_workflow_map` +-- + +CREATE TABLE `folder_workflow_map` ( + `folder_id` int(11) NOT NULL default '0', + `workflow_id` int(11) default NULL, + PRIMARY KEY (`folder_id`), + KEY `workflow_id` (`workflow_id`), + CONSTRAINT `folder_workflow_map_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folder_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folders` +-- + +CREATE TABLE `folders` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) default NULL, + `description` varchar(255) default NULL, + `parent_id` int(11) default NULL, + `creator_id` int(11) default NULL, + `is_public` tinyint(1) NOT NULL default '0', + `parent_folder_ids` mediumtext, + `full_path` mediumtext, + `permission_object_id` int(11) default NULL, + `permission_lookup_id` int(11) default NULL, + `restrict_document_types` tinyint(1) NOT NULL default '0', + `owner_id` int(11) default NULL, + `linked_folder_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `creator_id` (`creator_id`), + KEY `permission_object_id` (`permission_object_id`), + KEY `permission_lookup_id` (`permission_lookup_id`), + KEY `parent_id_name` (`parent_id`,`name`), + CONSTRAINT `folders_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folders_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folders_ibfk_3` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folders_ibfk_4` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `folders_users_roles_link` +-- + +CREATE TABLE `folders_users_roles_link` ( + `id` int(11) NOT NULL auto_increment, + `group_folder_approval_id` int(11) NOT NULL default '0', + `user_id` int(11) NOT NULL default '0', + `document_id` int(11) NOT NULL default '0', + `datetime` datetime default NULL, + `done` tinyint(1) default NULL, + `active` tinyint(1) default NULL, + `dependant_documents_created` tinyint(1) default NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `document_id` (`document_id`), + CONSTRAINT `folders_users_roles_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `folders_users_roles_link_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `groups_groups_link` +-- + +CREATE TABLE `groups_groups_link` ( + `id` int(11) NOT NULL auto_increment, + `parent_group_id` int(11) NOT NULL default '0', + `member_group_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `parent_group_id` (`parent_group_id`), + KEY `member_group_id` (`member_group_id`), + CONSTRAINT `groups_groups_link_ibfk_1` FOREIGN KEY (`parent_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `groups_groups_link_ibfk_2` FOREIGN KEY (`member_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `groups_lookup` +-- + +CREATE TABLE `groups_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL default '', + `is_sys_admin` tinyint(1) NOT NULL default '0', + `is_unit_admin` tinyint(1) NOT NULL default '0', + `unit_id` int(11) default NULL, + `authentication_details_s2` varchar(255) default NULL, + `authentication_details_s1` varchar(255) default NULL, + `authentication_source_id` int(11) default NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`), + KEY `unit_id` (`unit_id`), + KEY `authentication_source_id_authentication_details_s1` (`authentication_source_id`,`authentication_details_s1`), + CONSTRAINT `groups_lookup_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `help` +-- + +CREATE TABLE `help` ( + `id` int(11) NOT NULL auto_increment, + `fSection` varchar(100) NOT NULL default '', + `help_info` mediumtext NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `help_replacement` +-- + +CREATE TABLE `help_replacement` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL default '', + `description` mediumtext NOT NULL, + `title` varchar(255) NOT NULL default '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `index_files` +-- + +CREATE TABLE `index_files` ( + `document_id` int(11) NOT NULL, + `user_id` int(11) NOT NULL, + `indexdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, + `processdate` datetime default NULL, + `what` char(1) default NULL, + `status_msg` mediumtext, + PRIMARY KEY (`document_id`), + KEY `user_id` (`user_id`), + CONSTRAINT `index_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `index_files_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `interceptor_instances` +-- + +CREATE TABLE `interceptor_instances` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `interceptor_namespace` varchar(255) NOT NULL, + `config` text, + PRIMARY KEY (`id`), + KEY `interceptor_namespace` (`interceptor_namespace`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `links` +-- + +CREATE TABLE `links` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + `url` varchar(100) NOT NULL, + `rank` int(11) NOT NULL default '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `metadata_lookup` +-- + +CREATE TABLE `metadata_lookup` ( + `id` int(11) NOT NULL auto_increment, + `document_field_id` int(11) NOT NULL default '0', + `name` varchar(255) default NULL, + `treeorg_parent` int(11) default NULL, + `disabled` tinyint(1) NOT NULL default '0', + `is_stuck` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `document_field_id` (`document_field_id`), + KEY `disabled` (`disabled`), + CONSTRAINT `metadata_lookup_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `metadata_lookup_tree` +-- + +CREATE TABLE `metadata_lookup_tree` ( + `id` int(11) NOT NULL auto_increment, + `document_field_id` int(11) NOT NULL default '0', + `name` varchar(255) default NULL, + `metadata_lookup_tree_parent` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `document_field_id` (`document_field_id`), + KEY `metadata_lookup_tree_parent` (`metadata_lookup_tree_parent`), + CONSTRAINT `metadata_lookup_tree_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `mime_document_mapping` +-- + +CREATE TABLE `mime_document_mapping` ( + `mime_document_id` int(11) NOT NULL, + `mime_type_id` int(11) NOT NULL, + PRIMARY KEY (`mime_type_id`,`mime_document_id`), + KEY `mime_document_id` (`mime_document_id`), + CONSTRAINT `mime_document_mapping_ibfk_2` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `mime_document_mapping_ibfk_1` FOREIGN KEY (`mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `mime_documents` +-- + +CREATE TABLE `mime_documents` ( + `id` int(11) NOT NULL auto_increment, + `mime_doc` varchar(100) default NULL, + `icon_path` varchar(20) default NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `mime_extractors` +-- + +CREATE TABLE `mime_extractors` ( + `id` mediumint(9) NOT NULL auto_increment, + `name` varchar(50) NOT NULL, + `active` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `mime_types` +-- + +CREATE TABLE `mime_types` ( + `id` int(11) NOT NULL auto_increment, + `filetypes` varchar(100) NOT NULL, + `mimetypes` varchar(100) NOT NULL, + `icon_path` varchar(255) default NULL, + `friendly_name` varchar(255) NOT NULL default '', + `extractor_id` mediumint(9) default NULL, + `mime_document_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `mime_document_id` (`mime_document_id`), + KEY `extractor_id` (`extractor_id`), + KEY `filetypes` (`filetypes`), + KEY `mimetypes` (`mimetypes`), + CONSTRAINT `mime_types_ibfk_1` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, + CONSTRAINT `mime_types_ibfk_2` FOREIGN KEY (`extractor_id`) REFERENCES `mime_extractors` (`id`) ON DELETE SET NULL ON UPDATE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `news` +-- + +CREATE TABLE `news` ( + `id` int(11) NOT NULL auto_increment, + `synopsis` varchar(255) NOT NULL default '', + `body` mediumtext, + `rank` int(11) default NULL, + `image` mediumtext, + `image_size` int(11) default NULL, + `image_mime_type_id` int(11) default NULL, + `active` tinyint(1) default NULL, + PRIMARY KEY (`id`), + KEY `image_mime_type_id` (`image_mime_type_id`), + CONSTRAINT `news_ibfk_1` FOREIGN KEY (`image_mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `notifications` +-- + +CREATE TABLE `notifications` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL default '0', + `label` varchar(255) NOT NULL default '', + `type` varchar(255) NOT NULL default '', + `creation_date` datetime NOT NULL default '0000-00-00 00:00:00', + `data_int_1` int(11) default NULL, + `data_int_2` int(11) default NULL, + `data_str_1` varchar(255) default NULL, + `data_str_2` varchar(255) default NULL, + `data_text_1` text, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `data_int_1` (`data_int_1`), + CONSTRAINT `notifications_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `organisations_lookup` +-- + +CREATE TABLE `organisations_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_assignments` +-- + +CREATE TABLE `permission_assignments` ( + `id` int(11) NOT NULL auto_increment, + `permission_id` int(11) NOT NULL default '0', + `permission_object_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) default NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `permission_object_id_permission_id` (`permission_object_id`,`permission_id`), + KEY `permission_id` (`permission_id`), + KEY `permission_descriptor_id` (`permission_descriptor_id`), + CONSTRAINT `permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_assignments_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_descriptor_groups` +-- + +CREATE TABLE `permission_descriptor_groups` ( + `descriptor_id` int(11) NOT NULL default '0', + `group_id` int(11) NOT NULL default '0', + PRIMARY KEY (`descriptor_id`,`group_id`), + KEY `group_id` (`group_id`), + CONSTRAINT `permission_descriptor_groups_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_descriptor_groups_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_descriptor_roles` +-- + +CREATE TABLE `permission_descriptor_roles` ( + `descriptor_id` int(11) NOT NULL default '0', + `role_id` int(11) NOT NULL default '0', + PRIMARY KEY (`descriptor_id`,`role_id`), + KEY `role_id` (`role_id`), + CONSTRAINT `permission_descriptor_roles_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_descriptor_roles_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_descriptor_users` +-- + +CREATE TABLE `permission_descriptor_users` ( + `descriptor_id` int(11) NOT NULL default '0', + `user_id` int(11) NOT NULL default '0', + PRIMARY KEY (`descriptor_id`,`user_id`), + KEY `user_id` (`user_id`), + CONSTRAINT `permission_descriptor_users_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_descriptor_users_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_descriptors` +-- + +CREATE TABLE `permission_descriptors` ( + `id` int(11) NOT NULL auto_increment, + `descriptor` varchar(32) NOT NULL default '', + `descriptor_text` mediumtext NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `descriptor` (`descriptor`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_dynamic_assignments` +-- + +CREATE TABLE `permission_dynamic_assignments` ( + `dynamic_condition_id` int(11) NOT NULL default '0', + `permission_id` int(11) NOT NULL default '0', + KEY `dynamic_condition_id` (`dynamic_condition_id`), + KEY `permission_id` (`permission_id`), + CONSTRAINT `permission_dynamic_assignments_ibfk_2` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_dynamic_assignments_ibfk_1` FOREIGN KEY (`dynamic_condition_id`) REFERENCES `permission_dynamic_conditions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_dynamic_conditions` +-- + +CREATE TABLE `permission_dynamic_conditions` ( + `id` int(11) NOT NULL auto_increment, + `permission_object_id` int(11) NOT NULL default '0', + `group_id` int(11) NOT NULL default '0', + `condition_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `permission_object_id` (`permission_object_id`), + KEY `group_id` (`group_id`), + KEY `condition_id` (`condition_id`), + CONSTRAINT `permission_dynamic_conditions_ibfk_1` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_dynamic_conditions_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_dynamic_conditions_ibfk_3` FOREIGN KEY (`condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_lookup_assignments` +-- + +CREATE TABLE `permission_lookup_assignments` ( + `id` int(11) NOT NULL auto_increment, + `permission_id` int(11) NOT NULL default '0', + `permission_lookup_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) default NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `permission_lookup_id_permission_id` (`permission_lookup_id`,`permission_id`), + KEY `permission_id` (`permission_id`), + KEY `permission_descriptor_id` (`permission_descriptor_id`), + CONSTRAINT `permission_lookup_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_lookup_assignments_ibfk_2` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `permission_lookup_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_lookups` +-- + +CREATE TABLE `permission_lookups` ( + `id` int(11) NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permission_objects` +-- + +CREATE TABLE `permission_objects` ( + `id` int(11) NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `permissions` +-- + +CREATE TABLE `permissions` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + `human_name` varchar(100) NOT NULL, + `built_in` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `plugin_helper` +-- + +CREATE TABLE `plugin_helper` ( + `id` int(11) NOT NULL auto_increment, + `namespace` varchar(120) NOT NULL, + `plugin` varchar(120) NOT NULL, + `classname` varchar(120) default NULL, + `pathname` varchar(255) default NULL, + `object` varchar(1000) NOT NULL, + `classtype` varchar(120) NOT NULL, + `viewtype` enum('general','dashboard','plugin','folder','document','admindispatcher','dispatcher') NOT NULL default 'general', + PRIMARY KEY (`id`), + KEY `name` (`namespace`), + KEY `parent` (`plugin`), + KEY `view` (`viewtype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `plugin_rss` +-- + +CREATE TABLE `plugin_rss` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL, + `url` varchar(200) NOT NULL, + `title` varchar(100) NOT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + CONSTRAINT `plugin_rss_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `plugins` +-- + +CREATE TABLE `plugins` ( + `id` int(11) NOT NULL auto_increment, + `namespace` varchar(255) NOT NULL default '', + `path` varchar(255) NOT NULL default '', + `version` int(11) NOT NULL default '0', + `disabled` tinyint(1) NOT NULL default '0', + `data` mediumtext, + `unavailable` tinyint(1) NOT NULL default '0', + `friendly_name` varchar(255) default '', + `orderby` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + UNIQUE KEY `namespace` (`namespace`), + KEY `disabled` (`disabled`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `role_allocations` +-- + +CREATE TABLE `role_allocations` ( + `id` int(11) NOT NULL auto_increment, + `folder_id` int(11) NOT NULL default '0', + `role_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `folder_id` (`folder_id`), + KEY `role_id` (`role_id`), + KEY `permission_descriptor_id` (`permission_descriptor_id`), + CONSTRAINT `role_allocations_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `role_allocations_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `role_allocations_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `roles` +-- + +CREATE TABLE `roles` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `saved_searches` +-- + +CREATE TABLE `saved_searches` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `namespace` varchar(255) NOT NULL, + `is_condition` tinyint(1) NOT NULL default '0', + `is_complete` tinyint(1) NOT NULL default '0', + `user_id` int(10) default NULL, + `search` mediumtext NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `namespace` (`namespace`), + KEY `user_id` (`user_id`), + CONSTRAINT `saved_searches_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `scheduler_tasks` +-- + +CREATE TABLE `scheduler_tasks` ( + `id` int(11) NOT NULL auto_increment, + `task` varchar(50) NOT NULL, + `script_url` varchar(255) NOT NULL, + `script_params` varchar(255) default NULL, + `is_complete` tinyint(1) NOT NULL default '0', + `frequency` varchar(25) default NULL, + `run_time` datetime default NULL, + `previous_run_time` datetime default NULL, + `run_duration` float default NULL, + `status` enum('enabled','disabled','system') NOT NULL default 'disabled', + PRIMARY KEY (`id`), + UNIQUE KEY `task` (`task`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `search_document_user_link` +-- + +CREATE TABLE `search_document_user_link` ( + `document_id` int(11) default NULL, + `user_id` int(11) default NULL, + KEY `document_id` (`document_id`), + KEY `user_id` (`user_id`), + CONSTRAINT `search_document_user_link_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `search_document_user_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `search_ranking` +-- + +CREATE TABLE `search_ranking` ( + `groupname` varchar(100) NOT NULL, + `itemname` varchar(100) NOT NULL, + `ranking` float default '0', + `type` enum('T','M','S') default 'T' COMMENT 'T=Table, M=Metadata, S=Searchable', + PRIMARY KEY (`groupname`,`itemname`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `search_saved` +-- + +CREATE TABLE `search_saved` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + `expression` mediumtext NOT NULL, + `user_id` int(11) NOT NULL, + `type` enum('S','C','W','B') NOT NULL default 'S' COMMENT 'S=saved search, C=permission, w=workflow, B=subscription', + `shared` tinyint(4) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + CONSTRAINT `search_saved_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `search_saved_events` +-- + +CREATE TABLE `search_saved_events` ( + `document_id` int(11) NOT NULL, + PRIMARY KEY (`document_id`), + CONSTRAINT `search_saved_events_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `status_lookup` +-- + +CREATE TABLE `status_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `system_settings` +-- + +CREATE TABLE `system_settings` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `value` text NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `tag_words` +-- + +CREATE TABLE `tag_words` ( + `id` int(11) NOT NULL auto_increment, + `tag` varchar(100) default NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `time_period` +-- + +CREATE TABLE `time_period` ( + `id` int(11) NOT NULL auto_increment, + `time_unit_id` int(11) default NULL, + `units` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `time_unit_id` (`time_unit_id`), + CONSTRAINT `time_period_ibfk_1` FOREIGN KEY (`time_unit_id`) REFERENCES `time_unit_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `time_unit_lookup` +-- + +CREATE TABLE `time_unit_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `trigger_selection` +-- + +CREATE TABLE `trigger_selection` ( + `event_ns` varchar(255) NOT NULL default '', + `selection_ns` varchar(255) NOT NULL default '', + PRIMARY KEY (`event_ns`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `type_workflow_map` +-- + +CREATE TABLE `type_workflow_map` ( + `document_type_id` int(11) NOT NULL default '0', + `workflow_id` int(11) default NULL, + PRIMARY KEY (`document_type_id`), + KEY `workflow_id` (`workflow_id`), + CONSTRAINT `type_workflow_map_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `type_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `units_lookup` +-- + +CREATE TABLE `units_lookup` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(100) NOT NULL, + `folder_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`), + UNIQUE KEY `folder_id` (`folder_id`), + CONSTRAINT `units_lookup_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `units_organisations_link` +-- + +CREATE TABLE `units_organisations_link` ( + `id` int(11) NOT NULL auto_increment, + `unit_id` int(11) NOT NULL default '0', + `organisation_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `unit_id` (`unit_id`), + KEY `organisation_id` (`organisation_id`), + CONSTRAINT `units_organisations_link_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `units_organisations_link_ibfk_2` FOREIGN KEY (`organisation_id`) REFERENCES `organisations_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `upgrades` +-- + +CREATE TABLE `upgrades` ( + `id` int(11) NOT NULL auto_increment, + `descriptor` varchar(100) NOT NULL, + `description` varchar(255) NOT NULL, + `date_performed` datetime NOT NULL default '0000-00-00 00:00:00', + `result` tinyint(1) NOT NULL default '0', + `parent` varchar(40) default NULL, + PRIMARY KEY (`id`), + KEY `descriptor` (`descriptor`), + KEY `parent` (`parent`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `uploaded_files` +-- + +CREATE TABLE `uploaded_files` ( + `tempfilename` varchar(100) NOT NULL, + `filename` varchar(100) NOT NULL, + `userid` int(11) NOT NULL, + `uploaddate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, + `action` char(1) NOT NULL COMMENT 'A = Add, C = Checkin', + `document_id` int(11) default NULL, + PRIMARY KEY (`tempfilename`), + KEY `userid` (`userid`), + KEY `document_id` (`document_id`), + CONSTRAINT `uploaded_files_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `uploaded_files_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `user_history` +-- + +CREATE TABLE `user_history` ( + `id` int(11) NOT NULL auto_increment, + `datetime` datetime NOT NULL, + `user_id` int(11) NOT NULL, + `action_namespace` varchar(255) NOT NULL, + `comments` mediumtext, + `session_id` int(11) default NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `action_namespace` (`action_namespace`), + KEY `datetime` (`datetime`), + KEY `session_id` (`session_id`), + CONSTRAINT `user_history_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `users` +-- + +CREATE TABLE `users` ( + `id` int(11) NOT NULL auto_increment, + `username` varchar(255) NOT NULL default '', + `name` varchar(255) NOT NULL default '', + `password` varchar(255) NOT NULL default '', + `quota_max` int(11) NOT NULL default '0', + `quota_current` int(11) NOT NULL default '0', + `email` varchar(255) default NULL, + `mobile` varchar(255) default NULL, + `email_notification` tinyint(1) NOT NULL default '0', + `sms_notification` tinyint(1) NOT NULL default '0', + `authentication_details_s1` varchar(255) default NULL, + `max_sessions` int(11) default NULL, + `language_id` int(11) default NULL, + `authentication_details_s2` varchar(255) default NULL, + `authentication_source_id` int(11) default NULL, + `authentication_details_b1` tinyint(1) default NULL, + `authentication_details_i2` int(11) default NULL, + `authentication_details_d1` datetime default NULL, + `authentication_details_i1` int(11) default NULL, + `authentication_details_d2` datetime default NULL, + `authentication_details_b2` tinyint(1) default NULL, + `last_login` datetime default NULL, + `disabled` tinyint(1) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `username` (`username`), + KEY `authentication_source_id` (`authentication_source_id`), + KEY `last_login` (`last_login`), + KEY `disabled` (`disabled`), + CONSTRAINT `users_ibfk_1` FOREIGN KEY (`authentication_source_id`) REFERENCES `authentication_sources` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `users_groups_link` +-- + +CREATE TABLE `users_groups_link` ( + `id` int(11) NOT NULL auto_increment, + `user_id` int(11) NOT NULL default '0', + `group_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `group_id` (`group_id`), + CONSTRAINT `users_groups_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `users_groups_link_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_actions` +-- + +CREATE TABLE `workflow_actions` ( + `workflow_id` int(11) NOT NULL default '0', + `action_name` varchar(255) NOT NULL, + PRIMARY KEY (`workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_documents` +-- + +CREATE TABLE `workflow_documents` ( + `document_id` int(11) NOT NULL default '0', + `workflow_id` int(11) NOT NULL default '0', + `state_id` int(11) NOT NULL default '0', + PRIMARY KEY (`document_id`), + KEY `workflow_id` (`workflow_id`), + KEY `state_id` (`state_id`), + CONSTRAINT `workflow_documents_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_documents_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_documents_ibfk_3` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_state_actions` +-- + +CREATE TABLE `workflow_state_actions` ( + `state_id` int(11) NOT NULL default '0', + `action_name` varchar(255) NOT NULL, + KEY `state_id` (`state_id`), + CONSTRAINT `workflow_state_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_state_disabled_actions` +-- + +CREATE TABLE `workflow_state_disabled_actions` ( + `state_id` int(11) NOT NULL default '0', + `action_name` varchar(255) NOT NULL, + KEY `state_id` (`state_id`), + CONSTRAINT `workflow_state_disabled_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_state_permission_assignments` +-- + +CREATE TABLE `workflow_state_permission_assignments` ( + `id` int(11) NOT NULL auto_increment, + `workflow_state_id` int(11) NOT NULL default '0', + `permission_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `permission_id` (`permission_id`), + KEY `permission_descriptor_id` (`permission_descriptor_id`), + KEY `workflow_state_id` (`workflow_state_id`), + CONSTRAINT `workflow_state_permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_state_permission_assignments_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_state_permission_assignments_ibfk_3` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_state_transitions` +-- + +CREATE TABLE `workflow_state_transitions` ( + `state_id` int(11) NOT NULL default '0', + `transition_id` int(11) NOT NULL default '0', + PRIMARY KEY (`state_id`,`transition_id`), + KEY `transition_id` (`transition_id`), + CONSTRAINT `workflow_state_transitions_ibfk_2` FOREIGN KEY (`transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_state_transitions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_states` +-- + +CREATE TABLE `workflow_states` ( + `id` int(11) NOT NULL auto_increment, + `workflow_id` int(11) NOT NULL default '0', + `name` varchar(255) NOT NULL, + `human_name` varchar(100) NOT NULL, + `inform_descriptor_id` int(11) default NULL, + `manage_permissions` tinyint(1) NOT NULL default '0', + `manage_actions` tinyint(1) NOT NULL default '0', + PRIMARY KEY (`id`), + KEY `workflow_id` (`workflow_id`), + KEY `name` (`name`), + KEY `inform_descriptor_id` (`inform_descriptor_id`), + CONSTRAINT `workflow_states_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_states_ibfk_2` FOREIGN KEY (`inform_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_transitions` +-- + +CREATE TABLE `workflow_transitions` ( + `id` int(11) NOT NULL auto_increment, + `workflow_id` int(11) NOT NULL default '0', + `name` varchar(255) NOT NULL, + `human_name` varchar(255) NOT NULL, + `target_state_id` int(11) NOT NULL default '0', + `guard_permission_id` int(11) default '0', + `guard_group_id` int(11) default '0', + `guard_role_id` int(11) default '0', + `guard_condition_id` int(11) default NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `workflow_id_name` (`workflow_id`,`name`), + KEY `target_state_id` (`target_state_id`), + KEY `guard_condition_id` (`guard_condition_id`), + KEY `guard_group_id` (`guard_group_id`), + KEY `guard_role_id` (`guard_role_id`), + KEY `name` (`name`), + KEY `guard_permission_id` (`guard_permission_id`), + CONSTRAINT `workflow_transitions_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_transitions_ibfk_2` FOREIGN KEY (`target_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_transitions_ibfk_3` FOREIGN KEY (`guard_permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_transitions_ibfk_4` FOREIGN KEY (`guard_condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_transitions_ibfk_5` FOREIGN KEY (`guard_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `workflow_transitions_ibfk_6` FOREIGN KEY (`guard_role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `workflow_trigger_instances` +-- + +CREATE TABLE `workflow_trigger_instances` ( + `id` int(11) NOT NULL auto_increment, + `workflow_transition_id` int(11) NOT NULL default '0', + `namespace` varchar(255) NOT NULL, + `config_array` text, + PRIMARY KEY (`id`), + KEY `workflow_transition_id` (`workflow_transition_id`), + KEY `namespace` (`namespace`), + CONSTRAINT `workflow_trigger_instances_ibfk_1` FOREIGN KEY (`workflow_transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `workflows` +-- + +CREATE TABLE `workflows` ( + `id` int(11) NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `human_name` varchar(100) NOT NULL, + `start_state_id` int(11) default NULL, + `enabled` tinyint(1) NOT NULL default '1', + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`), + KEY `start_state_id` (`start_state_id`), + CONSTRAINT `workflows_ibfk_1` FOREIGN KEY (`start_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_active_sessions` +-- + +CREATE TABLE `zseq_active_sessions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_archive_restoration_request` +-- + +CREATE TABLE `zseq_archive_restoration_request` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_archiving_settings` +-- + +CREATE TABLE `zseq_archiving_settings` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_archiving_type_lookup` +-- + +CREATE TABLE `zseq_archiving_type_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_authentication_sources` +-- + +CREATE TABLE `zseq_authentication_sources` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_column_entries` +-- + +CREATE TABLE `zseq_column_entries` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_config_settings` +-- + +CREATE TABLE `zseq_config_settings` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_dashlet_disables` +-- + +CREATE TABLE `zseq_dashlet_disables` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_data_types` +-- + +CREATE TABLE `zseq_data_types` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_discussion_comments` +-- + +CREATE TABLE `zseq_discussion_comments` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_discussion_threads` +-- + +CREATE TABLE `zseq_discussion_threads` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_archiving_link` +-- + +CREATE TABLE `zseq_document_archiving_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_content_version` +-- + +CREATE TABLE `zseq_document_content_version` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_fields` +-- + +CREATE TABLE `zseq_document_fields` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_fields_link` +-- + +CREATE TABLE `zseq_document_fields_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_link` +-- + +CREATE TABLE `zseq_document_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_link_types` +-- + +CREATE TABLE `zseq_document_link_types` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_metadata_version` +-- + +CREATE TABLE `zseq_document_metadata_version` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_role_allocations` +-- + +CREATE TABLE `zseq_document_role_allocations` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_subscriptions` +-- + +CREATE TABLE `zseq_document_subscriptions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_tags` +-- + +CREATE TABLE `zseq_document_tags` ( + `id` int(10) NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_document_transaction_types_lookup` +-- + +CREATE TABLE `zseq_document_transaction_types_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_transactions` +-- + +CREATE TABLE `zseq_document_transactions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_type_fields_link` +-- + +CREATE TABLE `zseq_document_type_fields_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_type_fieldsets_link` +-- + +CREATE TABLE `zseq_document_type_fieldsets_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_document_types_lookup` +-- + +CREATE TABLE `zseq_document_types_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_documents` +-- + +CREATE TABLE `zseq_documents` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_field_behaviours` +-- + +CREATE TABLE `zseq_field_behaviours` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_field_value_instances` +-- + +CREATE TABLE `zseq_field_value_instances` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_fieldsets` +-- + +CREATE TABLE `zseq_fieldsets` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_folder_doctypes_link` +-- + +CREATE TABLE `zseq_folder_doctypes_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_folder_subscriptions` +-- + +CREATE TABLE `zseq_folder_subscriptions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_folder_transactions` +-- + +CREATE TABLE `zseq_folder_transactions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_folders` +-- + +CREATE TABLE `zseq_folders` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_folders_users_roles_link` +-- + +CREATE TABLE `zseq_folders_users_roles_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_groups_groups_link` +-- + +CREATE TABLE `zseq_groups_groups_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_groups_lookup` +-- + +CREATE TABLE `zseq_groups_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_help` +-- + +CREATE TABLE `zseq_help` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_help_replacement` +-- + +CREATE TABLE `zseq_help_replacement` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_interceptor_instances` +-- + +CREATE TABLE `zseq_interceptor_instances` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_links` +-- + +CREATE TABLE `zseq_links` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_metadata_lookup` +-- + +CREATE TABLE `zseq_metadata_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_metadata_lookup_tree` +-- + +CREATE TABLE `zseq_metadata_lookup_tree` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_mime_documents` +-- + +CREATE TABLE `zseq_mime_documents` ( + `id` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_mime_extractors` +-- + +CREATE TABLE `zseq_mime_extractors` ( + `id` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_mime_types` +-- + +CREATE TABLE `zseq_mime_types` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_news` +-- + +CREATE TABLE `zseq_news` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_notifications` +-- + +CREATE TABLE `zseq_notifications` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_organisations_lookup` +-- + +CREATE TABLE `zseq_organisations_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_assignments` +-- + +CREATE TABLE `zseq_permission_assignments` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_descriptors` +-- + +CREATE TABLE `zseq_permission_descriptors` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_dynamic_conditions` +-- + +CREATE TABLE `zseq_permission_dynamic_conditions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_lookup_assignments` +-- + +CREATE TABLE `zseq_permission_lookup_assignments` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_lookups` +-- + +CREATE TABLE `zseq_permission_lookups` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permission_objects` +-- + +CREATE TABLE `zseq_permission_objects` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_permissions` +-- + +CREATE TABLE `zseq_permissions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_plugin_helper` +-- + +CREATE TABLE `zseq_plugin_helper` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_plugin_rss` +-- + +CREATE TABLE `zseq_plugin_rss` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_plugins` +-- + +CREATE TABLE `zseq_plugins` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_role_allocations` +-- + +CREATE TABLE `zseq_role_allocations` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_roles` +-- + +CREATE TABLE `zseq_roles` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_saved_searches` +-- + +CREATE TABLE `zseq_saved_searches` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_scheduler_tasks` +-- + +CREATE TABLE `zseq_scheduler_tasks` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_search_saved` +-- + +CREATE TABLE `zseq_search_saved` ( + `id` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_status_lookup` +-- + +CREATE TABLE `zseq_status_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_system_settings` +-- + +CREATE TABLE `zseq_system_settings` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_tag_words` +-- + +CREATE TABLE `zseq_tag_words` ( + `id` int(10) NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `zseq_time_period` +-- + +CREATE TABLE `zseq_time_period` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_time_unit_lookup` +-- + +CREATE TABLE `zseq_time_unit_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_units_lookup` +-- + +CREATE TABLE `zseq_units_lookup` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_units_organisations_link` +-- + +CREATE TABLE `zseq_units_organisations_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_upgrades` +-- + +CREATE TABLE `zseq_upgrades` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_user_history` +-- + +CREATE TABLE `zseq_user_history` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_users` +-- + +CREATE TABLE `zseq_users` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_users_groups_link` +-- + +CREATE TABLE `zseq_users_groups_link` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflow_state_disabled_actions` +-- + +CREATE TABLE `zseq_workflow_state_disabled_actions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflow_state_permission_assignments` +-- + +CREATE TABLE `zseq_workflow_state_permission_assignments` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflow_states` +-- + +CREATE TABLE `zseq_workflow_states` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflow_transitions` +-- + +CREATE TABLE `zseq_workflow_transitions` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflow_trigger_instances` +-- + +CREATE TABLE `zseq_workflow_trigger_instances` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Table structure for table `zseq_workflows` +-- + +CREATE TABLE `zseq_workflows` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2008-08-04 15:00:09 diff --git a/setup/wizard/sql/user.sql b/setup/wizard/sql/user.sql new file mode 100755 index 0000000..3b80ee2 --- /dev/null +++ b/setup/wizard/sql/user.sql @@ -0,0 +1,40 @@ +-- +-- $Id$ +-- +-- KnowledgeTree Community Edition +-- Document Management Made Simple +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. +-- Portions copyright The Jam Warehouse Software (Pty) Limited +-- +-- This program is free software; you can redistribute it and/or modify it under +-- the terms of the GNU General Public License version 3 as published by the +-- Free Software Foundation. +-- +-- This program is distributed in the hope that it will be useful, but WITHOUT +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +-- details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +-- California 94120-7775, or email info@knowledgetree.com. +-- +-- The interactive user interfaces in modified source and object code versions +-- of this program must display Appropriate Legal Notices, as required under +-- Section 5 of the GNU General Public License version 3. +-- +-- In accordance with Section 7(b) of the GNU General Public License version 3, +-- these Appropriate Legal Notices must retain the display of the "Powered by +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +-- must display the words "Powered by KnowledgeTree" and retain the original +-- copyright notice. +-- Contributor( s): ______________________________________ +-- + +-- default dms user +GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO dms@localhost IDENTIFIED BY 'djw9281js'; +-- admin dms user +GRANT ALL PRIVILEGES ON dms.* TO dmsadmin@localhost IDENTIFIED BY 'js9281djw'; diff --git a/setup/wizard/step.php b/setup/wizard/step.php new file mode 100755 index 0000000..c5bd195 --- /dev/null +++ b/setup/wizard/step.php @@ -0,0 +1,299 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +class Step +{ + /** + * List of variables needed by step + * + * @author KnowledgeTree Team + * @access protected + * @var array + */ + protected $temp_variables = array(); + + /** + * List of errors encountered by step + * + * @author KnowledgeTree Team + * @access protected + * @var array + */ + protected $error = array(); + + /** + * Flag to store class information in session + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + protected $storeInSession = false; + + /** + * Flag if step needs to be installed + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + protected $runInstall = false; + + /** + * Returns step state + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function doStep() + { + return ''; + } + + + /** + * Returns step variables + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function getStepVars() + { + return $this->temp_variables; + } + + /** + * Returns step errors + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function getErrors() { + return $this->error; + } + + /** + * Load default step values + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function loadDefaults() { + return ''; + } + + /** + * Return default step values + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return array + */ + public function getDefaults() { + return array(); + } + + /** + * Checks if edit button has been clicked + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + public function edit() { + if(isset($_POST['Edit'])) { + return true; + } + + return false; + } + + /** + * Checks if next button has been clicked + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + public function next() { + if(isset($_POST['Next'])) { + return true; + } + + return false; + } + + /** + * Checks if previous button has been clicked + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + public function previous() { + if(isset($_POST['Previous'])) { + return true; + } + + return false; + } + + /** + * Checks if Confirm button has been clicked + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + function confirm() { + if(isset($_POST['Confirm'])) { + return true; + } + + return false; + } + + /** + * Checks if Confirm button has been clicked + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + function install() { + if(isset($_POST['Install'])) { + return true; + } + + return false; + } + + /** + * Checks if we are currently in this class step + * + * @author KnowledgeTree Team + * @param string + * @access public + * @return boolean + */ + public function inStep($name) { + if($_GET['step_name'] == $name) + return true; + return false; + } + + /** + * Load session data to post + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return boolean + */ + public function setDataFromSession($class) { + if(empty($_SESSION[$class])) { + return false; + } + $_POST = $_SESSION[$class]; + + return true; + } + + public function getDataFromSession($class) { + if(empty($_SESSION[$class])) { + return false; + } + + return $_SESSION[$class]; + } + + /** + * Safer way to return post data helper + * + * @author KnowledgeTree Team + * @params SimpleXmlObject $simplexml + * @access public + * @return void + */ + public function getPostSafe($key) { + return isset($_POST[$key]) ? $_POST[$key] : ""; + } + + /** + * Runs step install if required + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function installStep() { + return ''; + } + + public function storeInSession() { + return $this->storeInSession; + } + + public function runInstall() { + return $this->runInstall; + } + + public function setDBConfig() { + return ''; + } +} + +?> \ No newline at end of file diff --git a/setup/wizard/step_action.php b/setup/wizard/step_action.php new file mode 100755 index 0000000..b2d12ca --- /dev/null +++ b/setup/wizard/step_action.php @@ -0,0 +1,433 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + +class stepAction { + /** + * Step class name + * + * @author KnowledgeTree Team + * @access protected + * @var string + */ + protected $stepName = ''; + + /** + * Step names for classes + * + * @author KnowledgeTree Team + * @access protected + * @var array + */ + protected $stepClassNames = array(); + + /** + * Flag if step needs confirmation + * + * @author KnowledgeTree Team + * @access protected + * @var boolean + */ + protected $displayConfirm = false; + + /** + * Reference to session object + * + * @author KnowledgeTree Team + * @access protected + * @var object Session + */ + protected $session = null; + + /** + * Reference to current step object + * + * @author KnowledgeTree Team + * @access protected + * @var object class Step + */ + protected $action = null; + + /** + * Constructs step action object + * + * @author KnowledgeTree Team + * @access public + * @param string class name of the current step + */ + public function __construct($step) { + $this->stepName = $step; + } + + /** + * Main control to handle the steps actions + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function doAction() { + if($this->stepName != '') { + $this->action = $this->createStep(); + //secho $this->stepName; + $response = $this->action->doStep(); + if($this->action->storeInSession()) { // Check if class values need to be stored in session + $this->loadStepToSession($this->stepName); // Send class to session + } + if ($response == 'error') { + $this->handleErrors(); // Send Errors to session + } else { + $this->clearErrors($this->stepName); // Send Errors to session + } + return $response; + } else { + die("Class Files Missing"); + } + } + + /** + * Instantiate a step. + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return object Step + */ + public function createStep() { + require_once(STEP_DIR."{$this->stepName}.php"); + $step_class = $this->makeCamelCase($this->stepName); + return new $step_class(); + } + + /** + * Converts string to camel case + * + * @author KnowledgeTree Team + * @param string + * @access public + * @return string + */ + public function makeCamelCase($str) { + $upper=ucwords($str); + $str=str_replace('_', '', $upper); + + return $str; + } + + /** + * Converts string to human readable heading + * + * @author KnowledgeTree Team + * @param string + * @access public + * @return string + */ + public function makeHeading($str) { + $str = str_replace('_', ' ', $str); + $str = ucwords($str); + + return $str; + } + + /** + * Sets steps class names in string format + * + * @author KnowledgeTree Team + * @param array + * @access public + * @return void + */ + public function setSteps($stepClassNames) { + $this->stepClassNames = $stepClassNames; + } + + /** + * Sets steps in human readable string format + * + * @author KnowledgeTree Team + * @param array + * @access public + * @return void + */ + public function setStepNames($step_names) { + $this->step_names = $step_names; + } + + /** + * Returns a message to display at the top of template + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function getTop() { + return ''.$this->getCurrentStepName().''; + } + + /** + * Returns current step name + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + function getCurrentStepName() { + return$this->step_names[$this->stepName]; + } + + /** + * Returns left menu + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function getLeftMenu() + { + if($this->stepName == 'welcome'){ + return ''; + } + + $menu = ''; + return $menu; + } + + /** + * Returns confirmation page flag + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + function displayConfirm() { + // TODO:No other way I can think of doing this + return $this->displayConfirm; + } + + /** + * Sets confirmation page flag + * + * @author KnowledgeTree Team + * @param boolean + * @access public + * @return void + */ + function setDisplayConfirm($displayConfirm) { + $this->displayConfirm = $displayConfirm; + } + + /** + * Sets session object + * + * @author KnowledgeTree Team + * @param object Session + * @access public + * @return void + */ + function loadSession($ses) { + $this->session = $ses; + } + + /** + * Returns session object + * + * @author KnowledgeTree Team + * @param object Session + * @access public + * @return void + */ + function getSession() { + return $this->session; + } + + /** + * Returns step tenplate content + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + function paintAction() { + $left = $this->getLeftMenu(); + $top = $this->getTop(); + $step_errors = $this->action->getErrors(); // Get errors + if($this->displayConfirm()) // Check if theres a confirm step + $template = "templates/{$this->stepName}_confirm.tpl"; + else + $template = "templates/{$this->stepName}.tpl"; + $step_tpl = new Template($template); + $step_tpl->set("errors", $step_errors); // Set template errors + $step_vars = $this->action->getStepVars(); // Get template variables + foreach ($step_vars as $key => $value) { // Set template variables + $step_tpl->set($key, $value); // Load values to session + if($this->action->storeInSession()) { // Check if class values need to be stored in session + $this->loadValueToSession($this->stepName, $key, $value); + } + } + + $content = $step_tpl->fetch(); + $tpl = new Template("templates/wizard.tpl"); + $tpl->set('content', $content); + $tpl->set('left', $left); + echo $tpl->fetch(); + } + + /** + * Load class to session + * + * @author KnowledgeTree Team + * @param string $class name of class + * @param array $v array of values + * @param boolean $overwrite whether or not to overwrite existing + * @access private + * @return void + */ + private function loadStepToSession($class, $v = array(), $overwrite = false) { + if($this->session != null) { + if($overwrite) { + $this->session->set($class , $v); + } else { + if(!$this->session->is_set($class)) + $this->session->set($class , $v); + } + } else { + die("Where is the session?"); + } + } + + /** + * Load class value to session + * + * @author KnowledgeTree Team + * @param string $class name of class + * @param string $k key value + * @param string $v value to store + * @param boolean $overwrite whether or not to overwrite existing + * @access private + * @return void + */ + private function loadValueToSession($class, $k, $v, $overwrite = false) { + if($this->session != null) { + $this->session->setClass($class, $k, $v); + } else { + die("Where is the session?"); + } + } + + /** + * Load all class errors value to session + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return void + */ + private function handleErrors() {// TODO: handle multiple errors + $step_errors = $this->action->getErrors(); // Get errors + foreach ($step_errors as $key => $value) { + $this->loadErrorToSession($this->stepName, $key, $value); // Load values session + } + } + + /** + * Remove all class errors value to session + * + * @author KnowledgeTree Team + * @param none + * @access private + * @return void + */ + private function clearErrors($class) { + $this->session->clearErrors($class); + } + + /** + * Load class error value to session + * + * @author KnowledgeTree Team + * @param string $class name of class + * @param string $k key value + * @param string $v value to store + * @param boolean $overwrite whether or not to overwrite existing + * @access private + * @return void + */ + private function loadErrorToSession($class, $k, $v, $overwrite = false) { + $k = "errors"; + if($this->session != null) { + $this->session->setClassError($class, $k, $v); + } else { + die("Where is the session?"); + } + } + +} + +?> \ No newline at end of file diff --git a/setup/wizard/steps/complete.php b/setup/wizard/steps/complete.php new file mode 100755 index 0000000..5562b27 --- /dev/null +++ b/setup/wizard/steps/complete.php @@ -0,0 +1,52 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class complete extends Step +{ + + function configure() { + $this->temp_variables = array("step_name"=>"complete"); + } + +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/configuration.php b/setup/wizard/steps/configuration.php new file mode 100755 index 0000000..1ad7180 --- /dev/null +++ b/setup/wizard/steps/configuration.php @@ -0,0 +1,212 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class configuration extends Step +{ + private $host; + private $port; + private $root_url; + private $file_system_root; + private $ssl_enabled; + private $done; + public $temp_variables = array("step_name"=>"configuration"); + /** + * Flag to store class information in session + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + protected $storeInSession = true; + + public function __construct() + { + $this->done = true; + } + + private function setDetails() { + $conf = $this->getDataFromSession("configuration"); + if($conf) { + $this->temp_variables['server'] = $conf['server']; + $this->temp_variables['paths'] = $conf['paths']; + } + } + + public function doStep() { + if($this->next()) { + if($this->doRun()){ + return 'confirm'; + } + return 'error'; + /* + if($this->doRun()) + return 'next'; + else + return 'error'; + */ + } else if($this->previous()) { + $this->setDetails(); + return 'previous'; + } else if($this->confirm()) { + return 'next'; + } else if($this->edit()) { + $this->setDetails(); + return 'landing'; + } + + $this->doRun(); + return 'landing'; + } + + public function doRun() + { + $server = $this->getServerInfo(); + $this->temp_variables['server'] = $server; + + $paths = $this->getPathInfo($server['file_system_root']); + $this->temp_variables['paths'] = $paths; + + // Running user + // Logging + + return $this->done; + } + + private function getServerInfo() + { + $script = $_SERVER['SCRIPT_NAME']; + $file_system_root = $_SERVER['DOCUMENT_ROOT']; + $host = $_SERVER['SERVER_NAME']; + $port = $_SERVER['SERVER_PORT']; + $ssl_enabled = isset($_SERVER['HTTPS']) ? (strtolower($_SERVER['HTTPS']) === 'on' ? 'yes' : 'no') : true; + + $pos = strpos($script, '/wizard/'); + $root_url = substr($script, 0, $pos); + + $server = array(); + $server['root_url'] = (isset($_POST['root_url'])) ? $_POST['root_url'] : $root_url; + $server['file_system_root'] = (isset($_POST['file_system_root'])) ? $_POST['file_system_root'] : $file_system_root.$root_url; + $server['host'] = (isset($_POST['host'])) ? $_POST['host'] : $host; + $server['port'] = (isset($_POST['port'])) ? $_POST['port'] : $port; + $server['ssl_enabled'] = (isset($_POST['ssl_enabled'])) ? $_POST['ssl_enabled'] : $ssl_enabled; + + if(empty($server['host'])) + $this->error[] = 'Please enter the server\'s host name'; + + if(empty($server['port'])) + $this->error[] = 'Please enter the server\'s port'; + + if(empty($server['file_system_root'])) + $this->error[] = 'Please enter the file system root'; + + return $server; + } + + private function getPathInfo($fileSystemRoot) + { + $dirs = $this->getDirectories(); + $varDirectory = $fileSystemRoot . DIRECTORY_SEPARATOR . 'var'; + + foreach ($dirs as $key => $dir){ + $path = (isset($_POST[$dir['setting']])) ? $_POST[$dir['setting']] : $dir['path']; + + while(preg_match('/\$\{([^}]+)\}/', $path, $matches)){ + $path = str_replace($matches[0], $$matches[1], $path); + } + + $dirs[$key]['path'] = $path; + $class = $this->checkPermission($path, $dir['create']); + $dirs[$key] = array_merge($dirs[$key], $class); + } + + return $dirs; + } + + private function checkPermission($dir, $create=false) + { + $exist = 'Directory does not exist'; + $write = 'Directory is not writable'; + $ret = array('class' => 'cross'); + + if(!file_exists($dir)){ + if($create === false){ + $this->done = false; + $ret['msg'] = $exist; + return $ret; + } + $par_dir = dirname($dir); + if(!file_exists($par_dir)){ + $this->done = false; + $ret['msg'] = $exist; + return $ret; + } + if(!is_writable($par_dir)){ + $this->done = false; + $ret['msg'] = $exist; + return $ret; + } + @mkdir($dir, '0755'); + } + + if(is_writable($dir)){ + $ret['class'] = 'tick'; + return $ret; + } + + $this->done = false; + $ret['msg'] = $write; + return $ret; + } + + private function getDirectories() + { + return array( + array('name' => 'Var Directory', 'setting' => 'varDirectory', 'path' => '${fileSystemRoot}/var', 'create' => false), + array('name' => 'Document Directory', 'setting' => 'documentRoot', 'path' => '${varDirectory}/Documents', 'create' => true), + array('name' => 'Log Directory', 'setting' => 'logDirectory', 'path' => '${varDirectory}/log', 'create' => true), + array('name' => 'Temporary Directory', 'setting' => 'tmpDirectory', 'path' => '${varDirectory}/tmp', 'create' => true), + array('name' => 'Uploads Directory', 'setting' => 'uploadDirectory', 'path' => '${varDirectory}/uploads', 'create' => true), + ); + } +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/database.php b/setup/wizard/steps/database.php new file mode 100755 index 0000000..e523030 --- /dev/null +++ b/setup/wizard/steps/database.php @@ -0,0 +1,684 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class database extends Step +{ + /** + * Database type + * + * @author KnowledgeTree Team + * @access private + * @var array + */ + private $dtype = ''; + + /** + * Database types + * + * @author KnowledgeTree Team + * @access private + * @var array + */ + private $dtypes = array(); + + /** + * Database host + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dhost = ''; + + /** + * Database port + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dport = ''; + + /** + * Database name + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dname = ''; + + /** + * Database root username + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $duname = ''; + + /** + * Database root password + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dpassword = ''; + + /** + * Database dms username + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dmsname = ''; + + /** + * Database dms password + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $dmspassword = ''; + + /** + * Database table prefix + * + * @author KnowledgeTree Team + * @access private + * @var string + */ + private $tprefix = ''; + + /** + * Flag to drop database + * + * @author KnowledgeTree Team + * @access private + * @var boolean + */ + private $ddrop = false; + + /** + * List of variables needed + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + public $temp_variables = array("step_name"=>"database"); + + /** + * List of errors encountered + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + public $error = array(); + + /** + * Flag to store class information in session + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + public $storeInSession = true; + + /** + * Flag if step needs to be installed + * + * @author KnowledgeTree Team + * @access public + * @var array + */ + protected $runInstall = true; + + /** + * Constructs database object + * + * @author KnowledgeTree Team + * @access public + * @param none + */ + public function __construct() { + } + + /** + * Main control of database setup + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function doStep() { + $this->setErrorsFromSession(); + if($this->inStep("database")) { + $res = $this->doProcess(); + if($res) { // If theres a response, return it + return $res; + } + } + if($this->setDataFromSession("database")) { // Attempt to set values from session + + $this->setDetails(); // Set any posted variables + } else { + + $this->loadDefaults($this->readXml()); // Load default variables from file + } + + return 'landing'; + } + + /** + * Controls setup helper + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return string + */ + public function doProcess() { + if($this->next()) { + $this->setDBConfig(); // Set any posted variables + $this->setDetails(); + return 'confirm'; + } else if($this->previous()) { + return 'previous'; + } else if($this->confirm()) { + $this->setDataFromSession("database"); // Set Session Information + $this->setDBConfig(); // Set any posted variables + if($this->doTest()) { // Test + return 'next'; + } else { + return 'error'; + } + } else if($this->edit()) { + $this->setDataFromSession("database"); // Set Session Information, since its an edit + return 'landing'; + } + } + + /** + * Test database connectivity + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return boolean + */ + public function doTest() { + $con = @mysql_connect($this->dhost, $this->duname, $this->dpassword); + if (!$con) { + $this->error = array("1"=>"Could not connect: " . mysql_error()); + return false; + } else { + return true; + } + } + + /** + * Check if theres a database type + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return boolean database type or false + */ + private function getType() { + if(isset($_POST['dtype'])) { + return $_POST['dtype']; + } + + return false; + } + + /** + * Set Errors if any were encountered + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return boolean + */ + private function setErrorsFromSession() { + if(isset($_SESSION['database']['errors'])) { + $this->error[] = $_SESSION['database']['errors']; + + return true; + } + + return false; + } + + /** + * Set POST information + * + * @author KnowledgeTree Team + * @params none + * @access public + * @return void + */ + public function setDBConfig() { + $this->dtype = $this->getPostSafe("dtype"); + $this->dtypes = array("0"=>"mysql");//$this->getPostSafe("dtypes"); + $this->dhost = $this->getPostSafe("dhost"); + $this->dport = $this->getPostSafe("dport"); + $this->dname = $this->getPostSafe("dname"); + $this->duname = $this->getPostSafe("duname"); + $this->dpassword = $this->getPostSafe("dpassword"); + $this->dmsname = $this->getPostSafe("dmsname"); + $this->dmspassword = $this->getPostSafe("dmspassword"); + $this->tprefix = $this->getPostSafe("tprefix"); + $this->ddrop = $this->getPostSafe("ddrop"); + } + + /** + * Load default options on template from xml file + * + * @author KnowledgeTree Team + * @params simple xml object $simplexml + * @access public + * @return void + */ + public function loadDefaults($simplexml) { + if($simplexml) { + $this->temp_variables['dtype'] = ""; + $this->temp_variables['dtypes'] = array("0"=>"mysql");//$this->getTypes($simplexml->dtypes); + $this->temp_variables['dname'] = (string) $simplexml->dname; + $this->temp_variables['duname'] = (string) $simplexml->duname; + $this->temp_variables['dhost'] = (string) $simplexml->dhost; + $this->temp_variables['dport'] = (string) $simplexml->dport; + $this->temp_variables['dpassword'] = ''; + $this->temp_variables['dmsname'] = ''; + $this->temp_variables['dmspassword'] = ''; + $this->temp_variables['tprefix'] = ''; + $this->temp_variables['ddrop'] = 0; + } + } + + /** + * Store options + * + * @author KnowledgeTree Team + * @params SimpleXmlObject $simplexml + * @access private + * @return void + */ + private function setDetails() { + $this->temp_variables['dtype'] = $this->getPostSafe('dtype'); + $this->temp_variables['dtypes'] = array("0"=>"mysql");//$this->getPostSafe('dtypes'); + $this->temp_variables['dhost'] = $this->getPostSafe('dhost'); + $this->temp_variables['dport'] = $this->getPostSafe('dport'); + $this->temp_variables['dname'] = $this->getPostSafe('dname'); + $this->temp_variables['duname'] = $this->getPostSafe('duname'); + $this->temp_variables['dpassword'] = $this->getPostSafe('dpassword'); + $this->temp_variables['dmsname'] = $this->getPostSafe('dmsname'); + $this->temp_variables['dmspassword'] = $this->getPostSafe('dmspassword'); + $this->temp_variables['tprefix'] = $this->getPostSafe('tprefix'); + $this->temp_variables['ddrop'] = $this->getPostSafe('ddrop'); + } + + /** + * Extract database types + * + * @author KnowledgeTree Team + * @access private + * @params simple xml object $simplexml + * @return array + */ + private function getTypes($xmlTypes) { + $t = array(); + foreach ($xmlTypes->dtype as $key=>$val) { + $t[] = (string) $val; + } + return $t; + } + + /** + * Read xml config file + * + * @author KnowledgeTree Team + * @access private + * @params none + * @return object SimpleXmlObject + */ + private function readXml() { + $simplexml = simplexml_load_file(CONF_DIR."databases.xml"); + + return $simplexml; + } + + /** + * Stores varibles used by template + * + * @author KnowledgeTree Team + * @params none + * @access public + * @return array + */ + public function getStepVars() { + return $this->temp_variables; + } + + /** + * Runs step install if required + * + * @author KnowledgeTree Team + * @param none + * @access public + * @return void + */ + public function installStep() { + return $this->installDatabase(); + } + + /** + * Helper + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return void + */ + private function installDatabase() { + $this->{$this->dtype}(); + } + + /** + * Helper + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return void + */ + private function mysql() { + $con = $this->connectMysql(); + if($con) { + $this->createDB($con); + $this->closeMysql($con); + } + } + + /** + * Connect to mysql + * + * @author KnowledgeTree Team + * @params none + * @access private + * @return object mysql connection + */ + private function connectMysql() { + $con = @mysql_connect($this->dhost, $this->duname, $this->dpassword); + if (!$con) { + $this->error = array("2"=>"Could not connect: " . mysql_error()); + + return false; + } + + return $con; + } + + /** + * Helper + * + * @author KnowledgeTree Team + * @params object mysql connection object $con + * @access private + * @return object mysql connection + */ + private function createDB($con) { + if($this->usedb($con)) { // attempt to use the db + if($this->dropdb($con)) { // attempt to drop the db + if($this->create($con)) { // attempt to create the db + + } + } + } else { + if($this->create($con)) { // attempt to create the db + + } + } + + $this->createDmsUser($con); + $this->createSchema($con); + $this->populateSchema($con); + + return $con; + } + + /** + * Create database + * + * @author KnowledgeTree Team + * @params object mysql connection object $con + * @access private + * @return boolean + */ + private function create($con) { + $sql = "CREATE DATABASE {$this->dname}"; + if (@mysql_query($sql, $con)) { + + return true; + } + + return false; + } + + /** + * Attempts to use a db + * + * @author KnowledgeTree Team + * @params mysql connection object $con + * @access private + * @return boolean + */ + private function usedb($con) { + $sql = "USE {$this->dname};"; + if (@mysql_query($sql, $con)) { + return true; + } else { + $this->error = array("4"=>"Error using database: ".mysql_error().""); + return false; + } + } + + /** + * Attempts to drop table + * + * @author KnowledgeTree Team + * @access private + * @params mysql connection object $con + * @return boolean + */ + private function dropdb($con) { + if($this->ddrop) { + $sql = "DROP DATABASE {$this->dname};"; + if (!@mysql_query($sql, $con)) { + $this->error = array("5"=>"Cannot drop database: ".mysql_error().""); + + return false; + } + } else { + $this->error = array("6"=>"Cannot drop database: ".mysql_error().""); + + return false; + } + } + + /** + * Attempts to use a db + * + * @author KnowledgeTree Team + * @params mysql connection object $con + * @access private + * @return boolean + */ + private function usedb2($con) { + $sql = "USE {$this->dname};"; + if (@mysql_query($sql, $con)) { + return $con; + } else { + $this->error = array("4"=>"Error using database: ".mysql_error().""); + return false; + } + } + + /** + * Create dms user + * + * @author KnowledgeTree Team + * @access private + * @params none + * @return boolean + */ + private function createDmsUser($con) { + //TODO + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/user.sql"; + exec($com, $output); +// $sql = @file_get_contents("sql/user.sql"); +// if($sql) { +// if (@mysql_query($sql, $con)) { +// return true; +// } else { +// $this->error = array("7"=>"Error populating database : ".mysql_error().""); +// return false; +// } +// } else { +// $this->error = array("8"=>"Error Reading sql File : ".mysql_error().""); +// return false; +// } + } + + /** + * Create schema + * + * @author KnowledgeTree Team + * @access private + * @params none + * @return boolean + */ + private function createSchema($con) { + // TODO : + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/structure.sql"; + exec($com, $output); +// $sql = "USE {$this->dname};"; +// $sql .= file_get_contents("sql/structure.sql"); +// echo $sql;die; +// if($sql) { +// if (mysql_query($sql, $con)) { +// +// return true; +// } else { +// +// $this->error = array("9"=>"Error creating database schema : ".mysql_error().""); +// return false; +// } +// } else { +// $this->error = array("10"=>"Error Reading sql File : ".mysql_error().""); +// return false; +// } + } + + /** + * Populate database + * + * @author KnowledgeTree Team + * @access private + * @params none + * @return boolean + */ + private function populateSchema($con) { + // TODO : + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/data.sql"; + exec($com, $output); +// $sql = @file_get_contents("sql/data.sql"); +// if($sql) { +// if (@mysql_query($sql, $con)) { +// return true; +// } else { +// $this->error = array("11"=>"Error populating database : ".mysql_error().""); +// return false; +// } +// } else { +// $this->error = array("12"=>"Error Reading sql File : ".mysql_error().""); +// return false; +// } + } + + /** + * Close connection if it exists + * + * @author KnowledgeTree Team + * @access private + * @params mysql connection object $con + * @return void + */ + private function closeMysql($con) { + try { + @mysql_close($con); + } catch (Exeption $e) { + $this->error = array("13"=>"Could not close: " . $e); + } + } + + /** + * Returns database errors + * + * @author KnowledgeTree Team + * @access public + * @params none + * @return array + */ + public function getErrors() { + + return $this->error; + } +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/dependency_check.php b/setup/wizard/steps/dependency_check.php new file mode 100755 index 0000000..31b9978 --- /dev/null +++ b/setup/wizard/steps/dependency_check.php @@ -0,0 +1,248 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class dependencyCheck extends Step +{ + private $maxPHPVersion = '6.0.0'; + private $minPHPVersion = '5.0.0'; + + /** + * Constructor + * + */ + public function __construct() + { + $this->temp_variables = array("step_name"=>"dependency_check"); + } + + public function doStep() { + $passed = $this->doRun(); // Check dependencies + if($this->next()) { + if($passed) + return 'next'; + else + return 'error'; + } else if($this->previous()) { + + + return 'previous'; + } + + return 'landing'; + } + + public function doRun() + { + $check = $this->checkPhpVersion(); + $this->temp_variables['version'] = $check; + $configs = $this->checkPhpConfiguration(); + $this->temp_variables['configurations'] = $configs; + $list = $this->getRequiredExtensions(); // get the list of extensions + $extensions = array(); + foreach($list as $ext){ + $ext['available'] = 'no'; + if($this->checkExtension($ext['extension'])){ + $ext['available'] = 'yes'; + }else { + if($ext['required'] == 'no'){ + $ext['available'] = 'optional'; + } + } + + $extensions[] = $ext; + } + + $this->temp_variables['extensions'] = $extensions; + + return true; + } + + public function getErrors() { + return array(); + } + + public function getStepVars() + { + return $this->temp_variables; + } + + private function checkPhpConfiguration() + { + $configs = $this->getConfigurations(); + + foreach($configs as $key => $config) { + $setting = ini_get($config['configuration']); + + switch($config['type']){ + case 'bool': + $value = ($setting == 1) ? 'ON' : 'OFF'; + break; + + case 'empty': + $value = ($setting === false || $setting === '') ? 'unset' : $setting; + break; + + default: + $value = $setting; + } + + $class = ($value == $config['recommended']) ? 'green' : 'orange'; + $configs[$key]['setting'] = $value; + $configs[$key]['class'] = $class; + } + + $limits = $this->getLimits(); + + foreach($limits as $key => $limit) { + $setting = ini_get($limit['configuration']); + + $setting = $this->prettySizeToActualSize($setting); + $recommended = $this->prettySizeToActualSize($limit['recommended']); + $class = ($recommended < $setting || $setting = -1) ? 'green' : 'orange'; + + $limits[$key]['setting'] = $this->prettySize($setting); + $limits[$key]['class'] = $class; + } + $configs = array_merge($configs, $limits); + + return $configs; + } + + private function checkPhpVersion() + { + $phpversion = phpversion(); + + $phpversion5 = version_compare($phpversion, $this->minPHPVersion, '>='); + $phpversion6 = version_compare($phpversion, $this->maxPHPVersion, '<'); + + $check['class'] = 'cross'; + if($phpversion5 != 1){ + $this->continue = false; + $check['version'] = "Your PHP version needs to be PHP 5.0 or higher. You are running version {$phpversion}."; + return $check; + } + + if($phpversion6 != 1){ + $this->continue = false; + $check['version'] = "KnowledgeTree is not supported on PHP 6.0 and higher. You are running version {$phpversion}."; + return $check; + } + $check['class'] = 'tick'; + $check['version'] = "You are running version {$phpversion}."; + return $check; + } + + private function checkExtension($extension) + { + if(extension_loaded($extension)){ + return true; + } + $this->continue = false; + return false; + } + + private function prettySizeToActualSize($pretty) { + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'G') { + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024 * 1024; + } + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'M') { + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024; + } + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'K') { + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024; + } + return (int)$pretty; + } + + private function prettySize($v) { + $v = (float)$v; + foreach (array('B', 'K', 'M', 'G') as $unit) { + if ($v < 1024) { + return $v . $unit; + } + $v = $v / 1024; + } + } + + private function getRequiredExtensions() + { + return array( + array('extension' => 'fileinfo', 'required' => 'no', 'name' => 'Fileinfo', 'details' => 'Provides better file identification support - not necessary if you use file extensions'), + array('extension' => 'iconv', 'required' => 'no', 'name' => 'IconV', 'details' => ''), + array('extension' => 'mysql', 'required' => 'yes', 'name' => 'MySQL', 'details' => ''), + array('extension' => 'curl', 'required' => 'yes', 'name' => 'cURL', 'details' => ''), + array('extension' => 'xmlrpc', 'required' => 'yes', 'name' => 'XMLRPC', 'details' => ''), + array('extension' => 'win32', 'required' => 'no', 'name' => 'Win32', 'details' => 'Allows control of Microsoft Windows services'), + array('extension' => 'mbstring', 'required' => 'no', 'name' => 'Multi Byte Strings', 'details' => ''), + ); + } + + private function getConfigurations() + { + return array( + array('name' => 'Safe Mode', 'configuration' => 'safe_mode', 'recommended' => 'ON', 'type' => 'bool'), + array('name' => 'Display Errors', 'configuration' => 'display_errors', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Display Startup Errors', 'configuration' => 'display_startup_errors', 'recommended' => 'ON', 'type' => 'bool'), + array('name' => 'File Uploads', 'configuration' => 'file_uploads', 'recommended' => 'ON', 'type' => 'bool'), + array('name' => 'Magic Quotes GPC', 'configuration' => 'magic_quotes_gpc', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Magic Quotes Runtime', 'configuration' => 'magic_quotes_runtime', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Register Globals', 'configuration' => 'register_globals', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Output Buffering', 'configuration' => 'output_buffering', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Session auto start', 'configuration' => 'session.auto_start', 'recommended' => 'OFF', 'type' => 'bool'), + array('name' => 'Automatic prepend file', 'configuration' => 'auto_prepend_file', 'recommended' => 'unset', 'type' => 'empty'), + array('name' => 'Automatic append file', 'configuration' => 'auto_append_file', 'recommended' => 'unset', 'type' => 'empty'), + array('name' => 'Open base directory', 'configuration' => 'open_basedir', 'recommended' => 'unset', 'type' => 'empty'), + array('name' => 'Default MIME type', 'configuration' => 'default_mimetype', 'recommended' => 'text/html', 'type' => 'string'), + ); + } + + private function getLimits() + { + return array( + array('name' => 'Maximum POST size', 'configuration' => 'post_max_size', 'recommended' => '32M', 'type' => 'int'), + array('name' => 'Maximum upload size', 'configuration' => 'upload_max_filesize', 'recommended' => '32M', 'type' => 'int'), + array('name' => 'Memory limit', 'configuration' => 'memory_limit', 'recommended' => '32M', 'type' => 'int'), + ); + } +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/install.php b/setup/wizard/steps/install.php new file mode 100755 index 0000000..17b873a --- /dev/null +++ b/setup/wizard/steps/install.php @@ -0,0 +1,73 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + +require_once(WIZARD_DIR.'step.php'); + +class install extends step +{ + + function __construct() { + $this->temp_variables = array("step_name"=>"install"); + } + + public function doStep() { + if($this->install()) { + + return 'install'; + } else if($this->previous()) { + + return 'previous'; + } + + return 'landing'; + } + + public function getStepVars() + { + return $this->temp_variables; + } + + public function getErrors() { + return $this->error; + } +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/license.php b/setup/wizard/steps/license.php new file mode 100755 index 0000000..e361f1e --- /dev/null +++ b/setup/wizard/steps/license.php @@ -0,0 +1,88 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class license extends step { + + function __construct() { + $this->temp_variables = array("step_name"=>"license"); + } + + public function doStep() { + if($this->next()) { + if($this->doRun()) + + return 'next'; + else + return 'error'; + } else if($this->previous()) { + + return 'previous'; + } + + return 'landing'; // Just a welcome, so return "next" action + } + + public function doRun() { + if(isset($_POST['license'])) { + // check if agree + if($_POST['license']) { + + return true; + } else { + $this->error = array("Error"=>"Please accept license agreement"); + + return false; + } + } + } + + public function getStepVars() + { + return $this->temp_variables; + } + + public function getErrors() { + return $this->error; + } +} +?> \ No newline at end of file diff --git a/setup/wizard/steps/welcome.php b/setup/wizard/steps/welcome.php new file mode 100755 index 0000000..d00605e --- /dev/null +++ b/setup/wizard/steps/welcome.php @@ -0,0 +1,61 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ +require_once(WIZARD_DIR.'step.php'); + +class welcome extends step { + + + function __construct() { + $this->temp_variables = array("step_name"=>"license"); + } + + function doStep() { + if($this->next()) { + return 'next'; // Just a welcome, so return "next" action + } + + return 'landing'; + } + +} + +?> \ No newline at end of file diff --git a/setup/wizard/template.inc b/setup/wizard/template.inc new file mode 100755 index 0000000..0364044 --- /dev/null +++ b/setup/wizard/template.inc @@ -0,0 +1,110 @@ +. +* +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, +* California 94120-7775, or email info@knowledgetree.com. +* +* The interactive user interfaces in modified source and object code versions +* of this program must display Appropriate Legal Notices, as required under +* Section 5 of the GNU General Public License version 3. +* +* In accordance with Section 7(b) of the GNU General Public License version 3, +* these Appropriate Legal Notices must retain the display of the "Powered by +* KnowledgeTree" logo and retain the original copyright notice. If the display of the +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices +* must display the words "Powered by KnowledgeTree" and retain the original +* copyright notice. +* +* @copyright 2008-2009, KnowledgeTree Inc. +* @license GNU General Public License version 3 +* @author KnowledgeTree Team +* @package Installer +* @version Version 0.1 +*/ + +class Template +{ + /** + * Hold all the variables that are going to be imported into the template file + * @var array + */ + var $template_vars = Array(); + + + /** + * Constructor + * + * @author KnowledgeTree Team + * @param string $file the file name you want to load + * @access public + * @return void + */ + public function Template($file = null) + { + $this->file = $file; + } + + + /** + * Set a variable into the template + * If the variable is a template object, go and call its template::fetch() method + * + * @author KnowledgeTree Team + * @param string $name The name for this value in the template file + * @param string $value The value to show in the template file + * @access public + * @return void + */ + public function set($name, $value) + { + if(is_a($value, 'Template')) { + $value = $value->fetch(); + } + $this->template_vars[$name] = $value; + } + + + /** + * Create the template and import its variables + * + * @author KnowledgeTree Team + * @param string $file The file to use as the template + * @access public + * @return string The parsed template + */ + public function fetch($file = null) + { + if (is_null($file)) $file = $this->file; + + if (!file_exists($file)) { + trigger_error('Template file '.$file.' does not exist ', E_USER_ERROR); + } + extract($this->template_vars); // Extract the vars to local namespace + ob_start(); + include($file); + $contents = ob_get_contents(); + ob_end_clean(); + return $contents; + + } + +} +?> \ No newline at end of file diff --git a/setup/wizard/templates/complete.tpl b/setup/wizard/templates/complete.tpl new file mode 100755 index 0000000..2ff0229 --- /dev/null +++ b/setup/wizard/templates/complete.tpl @@ -0,0 +1,8 @@ +complete +
+
+ +
\ No newline at end of file diff --git a/setup/wizard/templates/configuration.tpl b/setup/wizard/templates/configuration.tpl new file mode 100755 index 0000000..b48b17b --- /dev/null +++ b/setup/wizard/templates/configuration.tpl @@ -0,0 +1,67 @@ +

System Configuration

+ +
+ +

Server Settings

+ +
+ '; + } + ?> +
+ + + + + + + + + + + + + + + + + + + + + + +
' />
' />
' />
' />
+ />   + /> +
+ +
+

Paths and Permissions

+ + + $path){ + $row = ''; + + $row .= "\n"; + $row .= "\n"; + $row .= "\n"; + $row .= '\n"; + + $row .= "\n"; + + echo $row; + } +?> +
'; + $row .= (isset($path['msg'])) ? $path['msg'] : ''; + $row .= "
+ +
+ + +
+
\ No newline at end of file diff --git a/setup/wizard/templates/configuration_confirm.tpl b/setup/wizard/templates/configuration_confirm.tpl new file mode 100755 index 0000000..cd7a7f5 --- /dev/null +++ b/setup/wizard/templates/configuration_confirm.tpl @@ -0,0 +1,55 @@ +

System Configuration

+ +

Server Settings

+ + + + + + + + + + + + + + + + + + + + + + +
Host:
Port:
Root Url:
File System Root:
SSL Enabled:
+ +
+

Paths and Permissions

+ + + $path){ + $row = ''; + + $row .= "\n"; + $row .= "\n"; + $row .= "\n"; + + $row .= "\n"; + + echo $row; + } +?> +
{$path['name']}:{$path['path']}
+ +
+ +
+ + + +
+
\ No newline at end of file diff --git a/setup/wizard/templates/database.tpl b/setup/wizard/templates/database.tpl new file mode 100755 index 0000000..f0c4602 --- /dev/null +++ b/setup/wizard/templates/database.tpl @@ -0,0 +1,64 @@ +
+
+$v) { + ?> + "/> + +
+ + + +
+Name: +
+Root Username: +
+Root Password: +
+
Advanced Options
+ +Drop table if it exists> +
+ + +
+
+ $e) { + echo $e; + } + }?> +
+
+ \ No newline at end of file diff --git a/setup/wizard/templates/database_confirm.tpl b/setup/wizard/templates/database_confirm.tpl new file mode 100755 index 0000000..19a515c --- /dev/null +++ b/setup/wizard/templates/database_confirm.tpl @@ -0,0 +1,24 @@ +
+DB Configuration Confirmation: +
+$v) { + ?> + /> +
+ +
+Name:
+Root Username:
+Root Password:
+Host:
+Port:
+Table Prefix:
+ You are about to drop the table if it exists +
+ + +
+
\ No newline at end of file diff --git a/setup/wizard/templates/dependency_check.tpl b/setup/wizard/templates/dependency_check.tpl new file mode 100755 index 0000000..c65098f --- /dev/null +++ b/setup/wizard/templates/dependency_check.tpl @@ -0,0 +1,69 @@ +

PHP Dependencies Check

+ +

PHP Version Check

+ +     {$version['version']}"; ?> +

+

PHP Extensions

+ + +'; + + switch($ext['available']){ + case 'yes': + $class = 'tick'; + break; + case 'optional': + $class = 'cross'; + break; + case 'no': + default: + $class = 'cross'; + } + $row .= ""; + $row .= ""; + $row .= ($ext['available'] != 'yes') ? "" : ''; + + $row .= ''; + + echo $row."\n"; + } + +?> +
{$ext['name']}{$ext['details']}
+

+

PHP Configuration

+ + + + + + + + + +'; + + $row .= ""; + $row .= ""; + $row .= ""; + + $row .= ''; + + echo $row."\n"; + } +?> + +
SettingRecommended valueCurrent value
{$config['name']}{$config['recommended']}{$config['setting']}
+
+ +
+ + +
+
\ No newline at end of file diff --git a/setup/wizard/templates/install.tpl b/setup/wizard/templates/install.tpl new file mode 100755 index 0000000..d04037f --- /dev/null +++ b/setup/wizard/templates/install.tpl @@ -0,0 +1,8 @@ +install +
+
+
+ + +
+
\ No newline at end of file diff --git a/setup/wizard/templates/license.tpl b/setup/wizard/templates/license.tpl new file mode 100755 index 0000000..fc7b100 --- /dev/null +++ b/setup/wizard/templates/license.tpl @@ -0,0 +1,260 @@ +
+
+ +
+ I accept the agreement +
+ I do not accept the agreement +
+
+ $e) { + echo $e; + } + }?> +
+
+ + +
+
+
\ No newline at end of file diff --git a/setup/wizard/templates/welcome.tpl b/setup/wizard/templates/welcome.tpl new file mode 100755 index 0000000..3784788 --- /dev/null +++ b/setup/wizard/templates/welcome.tpl @@ -0,0 +1,17 @@ +

Welcome to the KnowledgeTree Setup Wizard

+ +

+KnowledgeTreeTM is document management made simple - easily share, track, secure, and manage the documents and records your organization depends on. +

+

+KnowledgeTree provides an easy-to-use, production-ready, enterprise document management solution for use by corporations, government institutions, medium +to small businesses, and many other types of organizations. KnowledgeTree's open source architecture allows organizations to easily customize and +integrate the document management system with their existing infrastructure, providing a more flexible, cost-effective alternative to proprietary +applications. +

+ +
+
+ +
+
\ No newline at end of file diff --git a/setup/wizard/templates/wizard.tpl b/setup/wizard/templates/wizard.tpl new file mode 100755 index 0000000..36dc35a --- /dev/null +++ b/setup/wizard/templates/wizard.tpl @@ -0,0 +1,33 @@ + + + + + + + +
+
+ +
+
+ +
+ +
+
+ + + +
+
+ +
+ + \ No newline at end of file