Commit e600374a25ce1308424350b2917aeb3022625954
Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge
Showing
45 changed files
with
9280 additions
and
0 deletions
setup/wizard/config/config.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- | |
| 4 | + Document : config.xml | |
| 5 | + Created on : 01 July 2009, 9:57 AM | |
| 6 | + Author : jarrett | |
| 7 | + Description: | |
| 8 | + Purpose of the document follows. | |
| 9 | +--> | |
| 10 | + | |
| 11 | +<install version="3.3"> | |
| 12 | + <steps> | |
| 13 | + <step name="Welcome">welcome</step> | |
| 14 | + <step name="License Agreement">license</step> | |
| 15 | + <step name="Pre Check">dependency_check</step> | |
| 16 | + <step name="System Values">configuration</step> | |
| 17 | + <step name="Database Configuration">database</step> | |
| 18 | + <step name="Install">install</step> | |
| 19 | + <step name="Complete">complete</step> | |
| 20 | + </steps> | |
| 21 | + </install> | ... | ... |
setup/wizard/config/databases.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- | |
| 4 | + Document : database.xml | |
| 5 | + Created on : 01 July 2009, 1:13 PM | |
| 6 | + Author : jarrett | |
| 7 | + Description: | |
| 8 | + Purpose of the document follows. | |
| 9 | +--> | |
| 10 | + | |
| 11 | +<database> | |
| 12 | + <dtypes> | |
| 13 | + <dtype>mysql</dtype> | |
| 14 | + </dtypes> | |
| 15 | + <dhost>localhost</dhost> | |
| 16 | + <dport>3306</dport> | |
| 17 | + <dname>dms</dname> | |
| 18 | + <duname>root</duname> | |
| 19 | +</database> | ... | ... |
setup/wizard/config/mysql.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- | |
| 4 | + Document : mysql.xml | |
| 5 | + Created on : 01 July 2009, 1:56 PM | |
| 6 | + Author : jarrett | |
| 7 | + Description: | |
| 8 | + Purpose of the document follows. | |
| 9 | +--> | |
| 10 | + | |
| 11 | +<mysql version="3.6"> | |
| 12 | + <host>localhost</host> | |
| 13 | + <name>dms</name> | |
| 14 | + <username>root</username> | |
| 15 | + <password></password> | |
| 16 | + <port>3306</port> | |
| 17 | + <adminu>dmsadmin</adminu> | |
| 18 | + <adminp></adminp> | |
| 19 | +</mysql> | ... | ... |
setup/wizard/config/oracle.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- | |
| 4 | + Document : oracle.xml | |
| 5 | + Created on : 01 July 2009, 1:57 PM | |
| 6 | + Author : jarrett | |
| 7 | + Description: | |
| 8 | + Purpose of the document follows. | |
| 9 | +--> | |
| 10 | + | |
| 11 | +<oracle> | |
| 12 | + <host></host> | |
| 13 | + <name></name> | |
| 14 | + <username></username> | |
| 15 | + <password></password> | |
| 16 | + <port></port> | |
| 17 | + <adminu></adminu> | |
| 18 | + <adminp></adminp> | |
| 19 | +</oracle> | ... | ... |
setup/wizard/config/postgres.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- | |
| 4 | + Document : postgres.xml | |
| 5 | + Created on : 01 July 2009, 1:57 PM | |
| 6 | + Author : jarrett | |
| 7 | + Description: | |
| 8 | + Purpose of the document follows. | |
| 9 | +--> | |
| 10 | + | |
| 11 | +<postgres> | |
| 12 | + <host></host> | |
| 13 | + <name></name> | |
| 14 | + <username></username> | |
| 15 | + <password></password> | |
| 16 | + <port></port> | |
| 17 | + <adminu></adminu> | |
| 18 | + <adminp></adminp> | |
| 19 | +</postgres> | ... | ... |
setup/wizard/index.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Installer Index. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright (C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + require("installer.php"); | |
| 43 | +?> | |
| 0 | 44 | \ No newline at end of file | ... | ... |
setup/wizard/installer.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Installer Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright (C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + | |
| 43 | +include("path.php"); | |
| 44 | +include("session.php"); | |
| 45 | +require_once("template.inc"); | |
| 46 | +require_once("step_action.php"); | |
| 47 | + | |
| 48 | +class Installer { | |
| 49 | + /** | |
| 50 | + * Reference to simple xml object | |
| 51 | + * | |
| 52 | + * @author KnowledgeTree Team | |
| 53 | + * @access protected | |
| 54 | + * @var object SimpleXMLElement | |
| 55 | + */ | |
| 56 | + protected $simpleXmlObj = null; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * Reference to step action object | |
| 60 | + * | |
| 61 | + * @author KnowledgeTree Team | |
| 62 | + * @access protected | |
| 63 | + * @var object StepAction | |
| 64 | + */ | |
| 65 | + protected $stepAction = null; | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * List of installation steps as strings | |
| 69 | + * | |
| 70 | + * @author KnowledgeTree Team | |
| 71 | + * @access protected | |
| 72 | + * @var array string | |
| 73 | + */ | |
| 74 | + protected $stepClassNames = array(); | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * List of installation steps as human readable strings | |
| 78 | + * | |
| 79 | + * @author KnowledgeTree Team | |
| 80 | + * @access protected | |
| 81 | + * @var array string | |
| 82 | + */ | |
| 83 | + protected $stepNames = array(); | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * Flag if a step object needs confirmation | |
| 87 | + * | |
| 88 | + * @author KnowledgeTree Team | |
| 89 | + * @access protected | |
| 90 | + * @var array boolean | |
| 91 | + */ | |
| 92 | + protected $stepConfirmation = false; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * List of installation steps as human readable strings | |
| 96 | + * | |
| 97 | + * @author KnowledgeTree Team | |
| 98 | + * @access protected | |
| 99 | + * @var array string | |
| 100 | + */ | |
| 101 | + protected $stepObjects = array(); | |
| 102 | + | |
| 103 | + /** | |
| 104 | + * Reference to session object | |
| 105 | + * | |
| 106 | + * @author KnowledgeTree Team | |
| 107 | + * @access protected | |
| 108 | + * @var object Session | |
| 109 | + */ | |
| 110 | + protected $session = null; | |
| 111 | + | |
| 112 | + /** | |
| 113 | + * Constructs installation object | |
| 114 | + * | |
| 115 | + * @author KnowledgeTree Team | |
| 116 | + * @access public | |
| 117 | + * @param object Session $session Instance of the Session object | |
| 118 | + */ | |
| 119 | + public function __construct($session) { | |
| 120 | + $this->session = $session; | |
| 121 | + } | |
| 122 | + | |
| 123 | + /** | |
| 124 | + * Main control to handle the flow of install | |
| 125 | + * | |
| 126 | + * @author KnowledgeTree Team | |
| 127 | + * @param none | |
| 128 | + * @access public | |
| 129 | + * @return void | |
| 130 | + */ | |
| 131 | + public function step() { | |
| 132 | + $this->setXmlSteps(); // Xml steps | |
| 133 | + $this->setSteps(); // String steps | |
| 134 | + $response = $this->landing(); | |
| 135 | + switch($response) { | |
| 136 | + case 'next': | |
| 137 | + $this->proceed(); // Load next window | |
| 138 | + break; | |
| 139 | + | |
| 140 | + case 'previous': | |
| 141 | + $this->backward(); // Load previous window | |
| 142 | + break; | |
| 143 | + | |
| 144 | + case 'confirm': | |
| 145 | + $this->stepConfirmation = true; | |
| 146 | + $this->landing(); | |
| 147 | + break; | |
| 148 | + | |
| 149 | + case 'error': | |
| 150 | + $this->landing(); // Load landing with errors | |
| 151 | + break; | |
| 152 | + | |
| 153 | + case 'landing': | |
| 154 | + $this->landing(); // Load landing | |
| 155 | + break; | |
| 156 | + | |
| 157 | + case 'install': | |
| 158 | + $this->runStepsInstallers(); // Load landing | |
| 159 | + break; | |
| 160 | + | |
| 161 | + default: | |
| 162 | + die("That was unexpected!"); // No class response | |
| 163 | + break; | |
| 164 | + } | |
| 165 | + $this->stepAction->paintAction(); // Display step | |
| 166 | + } | |
| 167 | + | |
| 168 | + /** | |
| 169 | + * Install steps | |
| 170 | + * | |
| 171 | + * @author KnowledgeTree Team | |
| 172 | + * @param none | |
| 173 | + * @access public | |
| 174 | + * @return void | |
| 175 | + */ | |
| 176 | + function runStepsInstallers() { | |
| 177 | + foreach ($this->getSteps() as $className) { | |
| 178 | + $stepAction = new stepAction($className); // Instantiate a step action | |
| 179 | + $class = $stepAction->createStep(); // Get step class | |
| 180 | + if($class->runInstall()) { // Check if step needs to be installed | |
| 181 | + $class->setDataFromSession($className); // Set Session Information | |
| 182 | + $class->setDBConfig(); // Set any posted variables | |
| 183 | + $class->installStep(); // Run install step | |
| 184 | + } | |
| 185 | + } | |
| 186 | + } | |
| 187 | + | |
| 188 | + /** | |
| 189 | + * Read xml configuration file | |
| 190 | + * | |
| 191 | + * @author KnowledgeTree Team | |
| 192 | + * @param string $name of config file | |
| 193 | + * @access public | |
| 194 | + * @return simple xml object $simplexml | |
| 195 | + */ | |
| 196 | + public function readXml($name = "config.xml") { | |
| 197 | + try { | |
| 198 | + $simplexml = @simplexml_load_file(CONF_DIR.$name); | |
| 199 | + | |
| 200 | + return $simplexml; | |
| 201 | + } catch (Exception $e) { | |
| 202 | + return "Error loading file : $e"; | |
| 203 | + } | |
| 204 | + } | |
| 205 | + | |
| 206 | + /** | |
| 207 | + * Checks if first step of installer | |
| 208 | + * | |
| 209 | + * @author KnowledgeTree Team | |
| 210 | + * @param none | |
| 211 | + * @access public | |
| 212 | + * @return boolean | |
| 213 | + */ | |
| 214 | + public function _firstStep() { | |
| 215 | + if(isset($_GET['step_name'])) { | |
| 216 | + return false; | |
| 217 | + } | |
| 218 | + return true; | |
| 219 | + } | |
| 220 | + | |
| 221 | + /** | |
| 222 | + * Returns next step | |
| 223 | + * | |
| 224 | + * @author KnowledgeTree Team | |
| 225 | + * @param none | |
| 226 | + * @access public | |
| 227 | + * @return string | |
| 228 | + */ | |
| 229 | + public function getNextStep() { | |
| 230 | + return $this->getStepName(1); | |
| 231 | + } | |
| 232 | + | |
| 233 | + /** | |
| 234 | + * Returns previous step | |
| 235 | + * | |
| 236 | + * @author KnowledgeTree Team | |
| 237 | + * @param none | |
| 238 | + * @access public | |
| 239 | + * @return string | |
| 240 | + */ | |
| 241 | + public function getPreviousStep() { | |
| 242 | + return $this->getStepName(-1); | |
| 243 | + } | |
| 244 | + | |
| 245 | + /** | |
| 246 | + * Returns the step name, given a position | |
| 247 | + * | |
| 248 | + * @author KnowledgeTree Team | |
| 249 | + * @param integer $pos current position | |
| 250 | + * @access public | |
| 251 | + * @return string $name | |
| 252 | + */ | |
| 253 | + public function getStepName($pos = 0) { | |
| 254 | + if($this->_firstStep()) { | |
| 255 | + $step = (string) $this->simpleXmlObj->steps->step[0]; | |
| 256 | + } else { | |
| 257 | + $pos += $this->getStepPosition(); | |
| 258 | + $step = (string) $this->simpleXmlObj->steps->step[$pos]; | |
| 259 | + } | |
| 260 | + | |
| 261 | + return $step; | |
| 262 | + } | |
| 263 | + | |
| 264 | + /** | |
| 265 | + * Returns the step number | |
| 266 | + * | |
| 267 | + * @author KnowledgeTree Team | |
| 268 | + * @param none | |
| 269 | + * @access public | |
| 270 | + * @return integer $pos | |
| 271 | + */ | |
| 272 | + public function getStepPosition() { | |
| 273 | + $pos = 0; | |
| 274 | + foreach($this->simpleXmlObj->steps->step as $d_step) { | |
| 275 | + $step = (string) $d_step; | |
| 276 | + if ($step == $_GET['step_name']) { | |
| 277 | + break; | |
| 278 | + } | |
| 279 | + $pos++; | |
| 280 | + } | |
| 281 | + if(isset($_GET['step'])) { | |
| 282 | + if($_GET['step'] == "next") | |
| 283 | + $pos = $pos+1; | |
| 284 | + else | |
| 285 | + $pos = $pos-1; | |
| 286 | + } | |
| 287 | + | |
| 288 | + return $pos; | |
| 289 | + } | |
| 290 | + | |
| 291 | + /** | |
| 292 | + * Returns the step names for classes | |
| 293 | + * | |
| 294 | + * @author KnowledgeTree Team | |
| 295 | + * @param none | |
| 296 | + * @access public | |
| 297 | + * @return array | |
| 298 | + */ | |
| 299 | + public function getSteps() { | |
| 300 | + return $this->stepClassNames; | |
| 301 | + } | |
| 302 | + | |
| 303 | + /** | |
| 304 | + * Returns the steps as human readable string | |
| 305 | + * | |
| 306 | + * @author KnowledgeTree Team | |
| 307 | + * @param none | |
| 308 | + * @access public | |
| 309 | + * @return array | |
| 310 | + */ | |
| 311 | + public function getStepNames() { | |
| 312 | + return $this->stepNames; | |
| 313 | + } | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * Dump of SESSION | |
| 317 | + * | |
| 318 | + * @author KnowledgeTree Team | |
| 319 | + * @param none | |
| 320 | + * @access public | |
| 321 | + * @return array | |
| 322 | + */ | |
| 323 | + public function showSession() { | |
| 324 | + echo '<pre>'; | |
| 325 | + print_r($_SESSION); | |
| 326 | + echo '</pre>'; | |
| 327 | + } | |
| 328 | + | |
| 329 | + /** | |
| 330 | + * Executes next step | |
| 331 | + * | |
| 332 | + * @author KnowledgeTree Team | |
| 333 | + * @param none | |
| 334 | + * @access private | |
| 335 | + * @return string | |
| 336 | + */ | |
| 337 | + private function proceed() { | |
| 338 | + $step_name = $this->getNextStep(); | |
| 339 | + | |
| 340 | + return $this->runStepAction($step_name); | |
| 341 | + } | |
| 342 | + | |
| 343 | + /** | |
| 344 | + * Executes previous step | |
| 345 | + * | |
| 346 | + * @author KnowledgeTree Team | |
| 347 | + * @param none | |
| 348 | + * @access private | |
| 349 | + * @return string | |
| 350 | + */ | |
| 351 | + private function backward() { | |
| 352 | + $step_name = $this->getPreviousStep(); | |
| 353 | + | |
| 354 | + return $this->runStepAction($step_name); | |
| 355 | + } | |
| 356 | + | |
| 357 | + /** | |
| 358 | + * Executes step landing | |
| 359 | + * | |
| 360 | + * @author KnowledgeTree Team | |
| 361 | + * @param none | |
| 362 | + * @access private | |
| 363 | + * @return string | |
| 364 | + */ | |
| 365 | + private function landing() { | |
| 366 | + $step_name = $this->getStepName(); | |
| 367 | + | |
| 368 | + return $this->runStepAction($step_name); | |
| 369 | + } | |
| 370 | + | |
| 371 | + /** | |
| 372 | + * Executes step based on step class name | |
| 373 | + * | |
| 374 | + * @author KnowledgeTree Team | |
| 375 | + * @param string $step_name | |
| 376 | + * @access private | |
| 377 | + * @return string | |
| 378 | + */ | |
| 379 | + private function runStepAction($stepName) { | |
| 380 | + $this->stepAction = new stepAction($stepName); | |
| 381 | + $this->stepAction->setSteps($this->getSteps()); | |
| 382 | + $this->stepAction->setStepNames($this->getStepNames()); | |
| 383 | + $this->stepAction->setDisplayConfirm($this->stepConfirmation); | |
| 384 | + $this->stepAction->loadSession($this->session); | |
| 385 | + | |
| 386 | + return $this->stepAction->doAction(); | |
| 387 | + } | |
| 388 | + | |
| 389 | + /** | |
| 390 | + * Set steps in xml format | |
| 391 | + * | |
| 392 | + * @author KnowledgeTree Team | |
| 393 | + * @param none | |
| 394 | + * @access private | |
| 395 | + * @return void | |
| 396 | + */ | |
| 397 | + private function setXmlSteps() { | |
| 398 | + $this->simpleXmlObj = $this->readXml(); | |
| 399 | + } | |
| 400 | + | |
| 401 | + /** | |
| 402 | + * Set steps class names in string format | |
| 403 | + * | |
| 404 | + * @author KnowledgeTree Team | |
| 405 | + * @param none | |
| 406 | + * @access private | |
| 407 | + * @return void | |
| 408 | + */ | |
| 409 | + private function setSteps() { | |
| 410 | + $this->stepClassNames = $this->xmlStepsToArray(); | |
| 411 | + } | |
| 412 | + | |
| 413 | + | |
| 414 | + /** | |
| 415 | + * Set steps as names | |
| 416 | + * | |
| 417 | + * @author KnowledgeTree Team | |
| 418 | + * @param none | |
| 419 | + * @access private | |
| 420 | + * @return array $steps | |
| 421 | + */ | |
| 422 | + private function xmlStepsToArray() { | |
| 423 | + $steps = array(); | |
| 424 | + foreach($this->simpleXmlObj->steps->step as $d_step) { | |
| 425 | + $step_name = (string) $d_step[0]; | |
| 426 | + $steps[] = $step_name; | |
| 427 | + $this->stepNames[$step_name] = (string) $d_step['name']; | |
| 428 | + } | |
| 429 | + | |
| 430 | + return $steps; | |
| 431 | + } | |
| 432 | + | |
| 433 | +} | |
| 434 | +$ins = new installer(new Session()); // Instantiate the installer | |
| 435 | +$ins->step(); // Run step | |
| 436 | +//$ins->showSession(); | |
| 437 | +?> | |
| 0 | 438 | \ No newline at end of file | ... | ... |
setup/wizard/path.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Installer Paths. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright (C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + define('DS', '/'); | |
| 43 | + define('WIZARD_DIR', dirname(__FILE__).DS); | |
| 44 | + define('SQL_DIR', WIZARD_DIR.DS."sql".DS); | |
| 45 | + define('CONF_DIR', WIZARD_DIR.DS."config".DS); | |
| 46 | + define('RES_DIR', WIZARD_DIR.DS."resources".DS); | |
| 47 | + define('STEP_DIR', WIZARD_DIR.DS."steps".DS); | |
| 48 | + define('TEMP_DIR', WIZARD_DIR.DS."templates".DS); | |
| 49 | +?> | ... | ... |
setup/wizard/resources/graphics/active.png
0 → 100755
1.25 KB
setup/wizard/resources/graphics/cross.png
0 → 100755
846 Bytes
setup/wizard/resources/graphics/footer.png
0 → 100755
1.04 KB
setup/wizard/resources/graphics/gradient.png
0 → 100755
1.82 KB
setup/wizard/resources/graphics/inactive.png
0 → 100755
1.2 KB
setup/wizard/resources/graphics/indicator.png
0 → 100755
1.22 KB
setup/wizard/resources/graphics/indicator.pxm
0 → 100755
No preview for this file type
setup/wizard/resources/graphics/left.png
0 → 100755
1.08 KB
setup/wizard/resources/graphics/logo.png
0 → 100755
1.36 KB
setup/wizard/resources/graphics/powered-by-kt.png
0 → 100755
8.27 KB
setup/wizard/resources/graphics/tick.png
0 → 100755
917 Bytes
setup/wizard/resources/graphics/tree.jpg
0 → 100755
2.2 KB
setup/wizard/resources/wizard.css
0 → 100755
| 1 | +* { margin:0; padding:0; } | |
| 2 | + | |
| 3 | +body { | |
| 4 | + background: white; | |
| 5 | + text-align: center; | |
| 6 | + font-family: Arial, sans-serif; | |
| 7 | + line-height: 1.5; | |
| 8 | + font-size: 80%; | |
| 9 | + color: #000; | |
| 10 | +} | |
| 11 | + | |
| 12 | +h1 { | |
| 13 | + font-size: 3em; | |
| 14 | + font-weight: normal; | |
| 15 | + padding: 10px 0; | |
| 16 | + color: #555; | |
| 17 | +} | |
| 18 | + | |
| 19 | +h2 { | |
| 20 | + font-size: 2em; | |
| 21 | + font-weight: normal; | |
| 22 | + padding: 10px 0; | |
| 23 | + color: #555; | |
| 24 | +} | |
| 25 | + | |
| 26 | +h3 { | |
| 27 | + font-size: 1.5em; | |
| 28 | + font-weight: normal; | |
| 29 | + padding: 10px 0; | |
| 30 | + color: #555; | |
| 31 | +} | |
| 32 | + | |
| 33 | +a { | |
| 34 | + color: #EC7725; | |
| 35 | +} | |
| 36 | + | |
| 37 | +th { | |
| 38 | + font-weight: bold; | |
| 39 | + font-size: 1.1em; | |
| 40 | + padding: 5px 5px; | |
| 41 | +} | |
| 42 | + | |
| 43 | +td { | |
| 44 | + padding: 2px 5px; | |
| 45 | +} | |
| 46 | + | |
| 47 | +.container { | |
| 48 | + border: solid 1px #A1A1A1; | |
| 49 | + margin: 50px; | |
| 50 | + margin-top: 20px; | |
| 51 | + text-align: left; | |
| 52 | +} | |
| 53 | + | |
| 54 | +.header { | |
| 55 | + background: url("graphics/gradient.png") repeat-y; | |
| 56 | + background-position: top right; | |
| 57 | + height: 60px; | |
| 58 | +} | |
| 59 | + | |
| 60 | +.logo { | |
| 61 | + background: url("graphics/logo.png") no-repeat; | |
| 62 | + background-position: top left; | |
| 63 | + height: inherit; | |
| 64 | + width: 200px; | |
| 65 | + margin-left: 10px; | |
| 66 | +} | |
| 67 | + | |
| 68 | +.content { | |
| 69 | +} | |
| 70 | + | |
| 71 | +.left { | |
| 72 | + float: left; | |
| 73 | + width: 200px; | |
| 74 | + text-align: center; | |
| 75 | + /*background: url("graphics/left.png") repeat-y;*/ | |
| 76 | + background-position: top left; | |
| 77 | + height: inherit; | |
| 78 | + padding-bottom: 20px; | |
| 79 | + padding-top: 40px; | |
| 80 | +} | |
| 81 | + | |
| 82 | +.right { | |
| 83 | + float: left; | |
| 84 | + padding: 20px; | |
| 85 | +} | |
| 86 | + | |
| 87 | +.menu { | |
| 88 | + color: #616161; | |
| 89 | + text-align: left; | |
| 90 | + line-height: 3; | |
| 91 | + padding-left: 20px; | |
| 92 | +} | |
| 93 | + | |
| 94 | +.indicator { | |
| 95 | + background: url("graphics/indicator.png") no-repeat; | |
| 96 | + height: 15px; | |
| 97 | + width: 15px; | |
| 98 | + padding-left: 20px; | |
| 99 | +} | |
| 100 | + | |
| 101 | +.indicator a { | |
| 102 | + text-decoration: none; | |
| 103 | +} | |
| 104 | + | |
| 105 | +.active { | |
| 106 | + background: url("graphics/active.png") no-repeat; | |
| 107 | + height: 15px; | |
| 108 | + width: 15px; | |
| 109 | + padding-left: 20px; | |
| 110 | +} | |
| 111 | + | |
| 112 | +.inactive { | |
| 113 | + background: url("graphics/inactive.png") no-repeat; | |
| 114 | + height: 15px; | |
| 115 | + width: 15px; | |
| 116 | + padding-left: 20px; | |
| 117 | +} | |
| 118 | + | |
| 119 | +.tick { | |
| 120 | + background: url("graphics/tick.png") no-repeat; | |
| 121 | + height: 15px; | |
| 122 | + width: 15px; | |
| 123 | +} | |
| 124 | + | |
| 125 | +.cross { | |
| 126 | + background: url("graphics/cross.png") no-repeat; | |
| 127 | + height: 15px; | |
| 128 | + width: 15px; | |
| 129 | +} | |
| 130 | + | |
| 131 | +.green { | |
| 132 | + color: green; | |
| 133 | + align: center; | |
| 134 | +} | |
| 135 | + | |
| 136 | +.orange { | |
| 137 | + color: orange; | |
| 138 | + align: center; | |
| 139 | +} | |
| 140 | + | |
| 141 | +.buttons { | |
| 142 | + margin-top: 20px; | |
| 143 | + position: relative; | |
| 144 | +} | |
| 145 | + | |
| 146 | +.buttons input { | |
| 147 | + background: #DDDDDD; | |
| 148 | + border: solid 1px #888; | |
| 149 | + padding: 2px 8px 2px 5px; | |
| 150 | + text-decoration: none; | |
| 151 | + color: #EC7725; | |
| 152 | +} | |
| 153 | + | |
| 154 | +.footer { | |
| 155 | + background: url("graphics/footer.png") repeat-x; | |
| 156 | + height: 50px; | |
| 157 | + clear: both; | |
| 158 | +} | |
| 159 | + | |
| 160 | +.powered-by { | |
| 161 | + background: url("graphics/powered-by-kt.png") no-repeat; | |
| 162 | + background-position: center left; | |
| 163 | + height: inherit; | |
| 164 | + width: 140px; | |
| 165 | + margin-left: 10px; | |
| 166 | +} | |
| 167 | + | |
| 168 | +.adv_options { | |
| 169 | + | |
| 170 | +} | |
| 171 | + | |
| 172 | +.description { | |
| 173 | + color:#898989; | |
| 174 | + line-height:150%; | |
| 175 | + margin-bottom:0.75em; | |
| 176 | +} | |
| 177 | + | |
| 178 | +.top { | |
| 179 | + color:#EC7725; | |
| 180 | +} | |
| 181 | + | |
| 182 | +.right_top { | |
| 183 | + height:45px; | |
| 184 | +} | |
| 0 | 185 | \ No newline at end of file | ... | ... |
setup/wizard/session.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Session Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +class Session | |
| 43 | +{ | |
| 44 | + /** | |
| 45 | + * Constructs session object | |
| 46 | + * | |
| 47 | + * @author KnowledgeTree Team | |
| 48 | + * @access public | |
| 49 | + * @param none | |
| 50 | + */ | |
| 51 | + public function __construct() { | |
| 52 | + $this->startSession(); | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Starts a session if one does not exist | |
| 57 | + * | |
| 58 | + * @author KnowledgeTree Team | |
| 59 | + * @param none | |
| 60 | + * @access public | |
| 61 | + * @return void | |
| 62 | + */ | |
| 63 | + public function startSession() { | |
| 64 | + if(!isset($_SESSION['ready'])) { | |
| 65 | + session_start(); | |
| 66 | + $_SESSION ['ready'] = TRUE; | |
| 67 | + } | |
| 68 | + } | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Sets a value key pair in session | |
| 72 | + * | |
| 73 | + * @author KnowledgeTree Team | |
| 74 | + * @param string $fld | |
| 75 | + * @param string $val | |
| 76 | + * @access public | |
| 77 | + * @return void | |
| 78 | + */ | |
| 79 | + public function set($fld, $val) { | |
| 80 | + $this->startSession(); | |
| 81 | + $_SESSION [$fld] = $val; | |
| 82 | + } | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * Sets a value key pair in a class in session | |
| 86 | + * | |
| 87 | + * @author KnowledgeTree Team | |
| 88 | + * @param string $class | |
| 89 | + * @param string $fld | |
| 90 | + * @param string $val | |
| 91 | + * @access public | |
| 92 | + * @return void | |
| 93 | + */ | |
| 94 | + public function setClass($class , $k, $v) { | |
| 95 | + $this->startSession(); | |
| 96 | + $classArray = $this->get($class); | |
| 97 | + if(isset($classArray[$k])) { | |
| 98 | + if($classArray[$k] != $v) { | |
| 99 | + $classArray[$k] = $v; | |
| 100 | + } | |
| 101 | + } else { | |
| 102 | + $classArray[$k] = $v; | |
| 103 | + } | |
| 104 | + $_SESSION [ $class] = $classArray; | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Sets a error value key pair in a class in session | |
| 109 | + * | |
| 110 | + * @author KnowledgeTree Team | |
| 111 | + * @param string $class | |
| 112 | + * @param string $fld | |
| 113 | + * @param string $val | |
| 114 | + * @access public | |
| 115 | + * @return void | |
| 116 | + */ | |
| 117 | + public function setClassError($class, $k, $v) { | |
| 118 | + $this->startSession(); | |
| 119 | + $classArray = $this->get($class); | |
| 120 | + if(isset($classArray[$k])) { | |
| 121 | + if($classArray[$k] != $v) { | |
| 122 | + $classArray[$k] = $v; | |
| 123 | + } | |
| 124 | + } else { | |
| 125 | + $classArray[$k] = $v; | |
| 126 | + } | |
| 127 | + $_SESSION [ $class] = $classArray; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Clear error values in a class session | |
| 132 | + * | |
| 133 | + * @author KnowledgeTree Team | |
| 134 | + * @param string $class | |
| 135 | + * @param string $fld | |
| 136 | + * @param string $val | |
| 137 | + * @access public | |
| 138 | + * @return void | |
| 139 | + */ | |
| 140 | + public function clearErrors($class) { | |
| 141 | + $classArray = $this->get($class); | |
| 142 | + unset($classArray['errors']); | |
| 143 | + $_SESSION [ $class] = $classArray; | |
| 144 | + } | |
| 145 | + | |
| 146 | + /** | |
| 147 | + * Unset a value in session | |
| 148 | + * | |
| 149 | + * @author KnowledgeTree Team | |
| 150 | + * @param string $fld | |
| 151 | + * @access public | |
| 152 | + * @return void | |
| 153 | + */ | |
| 154 | + public function un_set($fld) { | |
| 155 | + $this->startSession(); | |
| 156 | + unset($_SESSION [$fld]); | |
| 157 | + } | |
| 158 | + | |
| 159 | + /** | |
| 160 | + * Unset a class value in session | |
| 161 | + * | |
| 162 | + * @author KnowledgeTree Team | |
| 163 | + * @param string $class | |
| 164 | + * @access public | |
| 165 | + * @return void | |
| 166 | + */ | |
| 167 | + public function un_setClass($class) { | |
| 168 | + $this->startSession(); | |
| 169 | + unset($_SESSION [$class]); | |
| 170 | + } | |
| 171 | + | |
| 172 | + /** | |
| 173 | + * Destroy the session | |
| 174 | + * | |
| 175 | + * @author KnowledgeTree Team | |
| 176 | + * @param none | |
| 177 | + * @access public | |
| 178 | + * @return void | |
| 179 | + */ | |
| 180 | + public function destroy() { | |
| 181 | + $this->startSession(); | |
| 182 | + unset($_SESSION); | |
| 183 | + session_destroy(); | |
| 184 | + } | |
| 185 | + | |
| 186 | + /** | |
| 187 | + * Get a session value | |
| 188 | + * | |
| 189 | + * @author KnowledgeTree Team | |
| 190 | + * @param string $fld | |
| 191 | + * @access public | |
| 192 | + * @return string | |
| 193 | + */ | |
| 194 | + public function get($fld) { | |
| 195 | + $this->startSession(); | |
| 196 | + return $_SESSION [$fld]; | |
| 197 | + } | |
| 198 | + | |
| 199 | + /** | |
| 200 | + * Check if a field exists in session | |
| 201 | + * | |
| 202 | + * @author KnowledgeTree Team | |
| 203 | + * @param string $fld | |
| 204 | + * @access public | |
| 205 | + * @return string | |
| 206 | + */ | |
| 207 | + public function is_set($fld) { | |
| 208 | + $this->startSession(); | |
| 209 | + return isset($_SESSION [$fld]); | |
| 210 | + } | |
| 211 | + | |
| 212 | + /** | |
| 213 | + * Return a class from session | |
| 214 | + * | |
| 215 | + * @author KnowledgeTree Team | |
| 216 | + * @param string $fld | |
| 217 | + * @access public | |
| 218 | + * @return string | |
| 219 | + */ | |
| 220 | + public function getClass($class) { | |
| 221 | + return $_SESSION[$class]; | |
| 222 | + } | |
| 223 | +} | |
| 224 | +?> | |
| 0 | 225 | \ No newline at end of file | ... | ... |
setup/wizard/sql/data.sql
0 → 100755
| 1 | +-- | |
| 2 | +-- $Id$ | |
| 3 | +-- | |
| 4 | +-- KnowledgeTree Community Edition | |
| 5 | +-- Document Management Made Simple | |
| 6 | +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. | |
| 7 | +-- Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 8 | +-- | |
| 9 | +-- This program is free software; you can redistribute it and/or modify it under | |
| 10 | +-- the terms of the GNU General Public License version 3 as published by the | |
| 11 | +-- Free Software Foundation. | |
| 12 | +-- | |
| 13 | +-- This program is distributed in the hope that it will be useful, but WITHOUT | |
| 14 | +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 15 | +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 16 | +-- details. | |
| 17 | +-- | |
| 18 | +-- You should have received a copy of the GNU General Public License | |
| 19 | +-- along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 20 | +-- | |
| 21 | +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 22 | +-- California 94120-7775, or email info@knowledgetree.com. | |
| 23 | +-- | |
| 24 | +-- The interactive user interfaces in modified source and object code versions | |
| 25 | +-- of this program must display Appropriate Legal Notices, as required under | |
| 26 | +-- Section 5 of the GNU General Public License version 3. | |
| 27 | +-- | |
| 28 | +-- In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 29 | +-- these Appropriate Legal Notices must retain the display of the "Powered by | |
| 30 | +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 31 | +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 32 | +-- must display the words "Powered by KnowledgeTree" and retain the original | |
| 33 | +-- copyright notice. | |
| 34 | +-- Contributor( s): ______________________________________ | |
| 35 | +-- | |
| 36 | +-- MySQL dump 10.11 | |
| 37 | +-- | |
| 38 | +-- Host: localhost Database: ktdms | |
| 39 | +-- ------------------------------------------------------ | |
| 40 | +-- Server version 5.0.41-log | |
| 41 | + | |
| 42 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| 43 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| 44 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| 45 | +/*!40101 SET NAMES utf8 */; | |
| 46 | +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
| 47 | +/*!40103 SET TIME_ZONE='+00:00' */; | |
| 48 | +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
| 49 | +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
| 50 | +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
| 51 | +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
| 52 | + | |
| 53 | +-- | |
| 54 | +-- Dumping data for table `active_sessions` | |
| 55 | +-- | |
| 56 | + | |
| 57 | +LOCK TABLES `active_sessions` WRITE; | |
| 58 | +/*!40000 ALTER TABLE `active_sessions` DISABLE KEYS */; | |
| 59 | +/*!40000 ALTER TABLE `active_sessions` ENABLE KEYS */; | |
| 60 | +UNLOCK TABLES; | |
| 61 | + | |
| 62 | +-- | |
| 63 | +-- Dumping data for table `archive_restoration_request` | |
| 64 | +-- | |
| 65 | + | |
| 66 | +LOCK TABLES `archive_restoration_request` WRITE; | |
| 67 | +/*!40000 ALTER TABLE `archive_restoration_request` DISABLE KEYS */; | |
| 68 | +/*!40000 ALTER TABLE `archive_restoration_request` ENABLE KEYS */; | |
| 69 | +UNLOCK TABLES; | |
| 70 | + | |
| 71 | +-- | |
| 72 | +-- Dumping data for table `archiving_settings` | |
| 73 | +-- | |
| 74 | + | |
| 75 | +LOCK TABLES `archiving_settings` WRITE; | |
| 76 | +/*!40000 ALTER TABLE `archiving_settings` DISABLE KEYS */; | |
| 77 | +/*!40000 ALTER TABLE `archiving_settings` ENABLE KEYS */; | |
| 78 | +UNLOCK TABLES; | |
| 79 | + | |
| 80 | +-- | |
| 81 | +-- Dumping data for table `archiving_type_lookup` | |
| 82 | +-- | |
| 83 | + | |
| 84 | +LOCK TABLES `archiving_type_lookup` WRITE; | |
| 85 | +/*!40000 ALTER TABLE `archiving_type_lookup` DISABLE KEYS */; | |
| 86 | +INSERT INTO `archiving_type_lookup` VALUES | |
| 87 | +(1,'Date'), | |
| 88 | +(2,'Utilisation'); | |
| 89 | +/*!40000 ALTER TABLE `archiving_type_lookup` ENABLE KEYS */; | |
| 90 | +UNLOCK TABLES; | |
| 91 | + | |
| 92 | +-- | |
| 93 | +-- Dumping data for table `authentication_sources` | |
| 94 | +-- | |
| 95 | + | |
| 96 | +LOCK TABLES `authentication_sources` WRITE; | |
| 97 | +/*!40000 ALTER TABLE `authentication_sources` DISABLE KEYS */; | |
| 98 | +/*!40000 ALTER TABLE `authentication_sources` ENABLE KEYS */; | |
| 99 | +UNLOCK TABLES; | |
| 100 | + | |
| 101 | +-- | |
| 102 | +-- Dumping data for table `column_entries` | |
| 103 | +-- | |
| 104 | + | |
| 105 | +LOCK TABLES `column_entries` WRITE; | |
| 106 | +/*!40000 ALTER TABLE `column_entries` DISABLE KEYS */; | |
| 107 | +INSERT INTO `column_entries` VALUES | |
| 108 | +(1,'ktcore.columns.selection','ktcore.views.browse','',0,1), | |
| 109 | +(2,'ktcore.columns.title','ktcore.views.browse','',1,1), | |
| 110 | +(3,'ktcore.columns.download','ktcore.views.browse','',2,0), | |
| 111 | +(4,'ktcore.columns.creationdate','ktcore.views.browse','',3,0), | |
| 112 | +(5,'ktcore.columns.modificationdate','ktcore.views.browse','',4,0), | |
| 113 | +(6,'ktcore.columns.creator','ktcore.views.browse','',5,0), | |
| 114 | +(7,'ktcore.columns.workflow_state','ktcore.views.browse','',6,0), | |
| 115 | +(8,'ktcore.columns.selection','ktcore.views.search','',0,1), | |
| 116 | +(9,'ktcore.columns.title','ktcore.views.search','',1,1), | |
| 117 | +(10,'ktcore.columns.download','ktcore.views.search','',2,0), | |
| 118 | +(11,'ktcore.columns.creationdate','ktcore.views.search','',3,0), | |
| 119 | +(12,'ktcore.columns.modificationdate','ktcore.views.search','',4,0), | |
| 120 | +(13,'ktcore.columns.creator','ktcore.views.search','',5,0), | |
| 121 | +(14,'ktcore.columns.workflow_state','ktcore.views.search','',6,0), | |
| 122 | +(15,'ktcore.columns.preview','ktcore.views.browse','a:0:{}',2,0); | |
| 123 | +/*!40000 ALTER TABLE `column_entries` ENABLE KEYS */; | |
| 124 | +UNLOCK TABLES; | |
| 125 | + | |
| 126 | +-- | |
| 127 | +-- Dumping data for table `comment_searchable_text` | |
| 128 | +-- | |
| 129 | + | |
| 130 | +LOCK TABLES `comment_searchable_text` WRITE; | |
| 131 | +/*!40000 ALTER TABLE `comment_searchable_text` DISABLE KEYS */; | |
| 132 | +/*!40000 ALTER TABLE `comment_searchable_text` ENABLE KEYS */; | |
| 133 | +UNLOCK TABLES; | |
| 134 | + | |
| 135 | +-- | |
| 136 | +-- Dumping data for table `config_groups` | |
| 137 | +-- | |
| 138 | + | |
| 139 | +LOCK TABLES `config_groups` WRITE; | |
| 140 | +/*!40000 ALTER TABLE `config_groups` DISABLE KEYS */; | |
| 141 | +INSERT INTO `config_groups` VALUES | |
| 142 | +(1, 'browse', 'Browse View', 'Configurable options for working in Browse View', 'User Interface Settings'), | |
| 143 | +(2, 'cache', 'Cache', 'Configure settings for the KnowledgeTree cache. Only advanced users should change these settings.', 'General Settings'), | |
| 144 | +(3, 'CustomErrorMessages', 'Custom Error Messages', 'Configuration settings for custom error messages. Only advanced users should change these settings.', 'User Interface Settings'), | |
| 145 | +(4, 'dashboard', 'Dashboard', 'Configures Dashboard Settings', 'General Settings'), | |
| 146 | +(5, 'DiskUsage', 'Disk Usage Dashlet', 'Configures the Disk Usage dashlet ', 'General Settings'), | |
| 147 | +(6, 'email', 'Email', 'Enables Email on your KnowledgeTree installation and configures Email settings. Note that several KnowledgeTree features use these settings. ', 'Email Settings'), | |
| 148 | +(7, 'export', 'Export', 'Configures KnowledgeTree''s ''Bulk Export'' feature.', 'General Settings'), | |
| 149 | +(8, 'externalBinary', 'External Binaries', 'KnowledgeTree uses various external binaries. This section defines the paths to these binaries. <br>Only advanced users should change these settings.', 'General Settings'), | |
| 150 | +(9, 'i18n', 'Internationalization', 'Configures settings for Internationalization.', 'Internationalisation Settings'), | |
| 151 | +(10, 'import', 'Import', 'Configures settings on Bulk Import.', 'General Settings'), | |
| 152 | +(11, 'indexer', 'Document Indexer', 'Configures the Document Indexer. Only advanced users should change these settings.', 'Search and Indexing Settings'), | |
| 153 | +(12, 'KnowledgeTree', 'KnowledgeTree', 'Configures general settings for your KnowledgeTree server installation.', 'General Settings'), | |
| 154 | +(13, 'KTWebDAVSettings', 'WebDAV', 'Configuration options for third-party WebDAV clients', 'Client Tools Settings'), | |
| 155 | +(14, 'openoffice', 'OpenOffice.org Service', 'Configuration options for the OpenOffice.org service. Note that several KnowledgeTree features use this service.', 'Search and Indexing Settings'), | |
| 156 | +(15, 'search', 'Search', 'Configures settings for KnowledgeTree''s Search function.', 'Search and Indexing Settings'), | |
| 157 | +(16, 'session', 'Session Management', 'Session management configuration.', 'General Settings'), | |
| 158 | +(17, 'storage', 'Storage', 'Configure the KnowledgeTree storage manager.', 'General Settings'), | |
| 159 | +(18, 'tweaks', 'Tweaks', 'Small configuration tweaks', 'General Settings'), | |
| 160 | +(19, 'ui', 'User Interface', 'General user interface configuration', 'User Interface Settings'), | |
| 161 | +(20, 'urls', 'Urls', 'The paths to the KnowledgeTree server and filesystem. <br>Full values are specific to your installation (Windows or Linux). Only advanced users should change these settings.', 'General Settings'), | |
| 162 | +(21, 'user_prefs', 'User Preferences', 'Configures user preferences.', 'General Settings'), | |
| 163 | +(22, 'webservice', 'Web Services', 'KnowledgeTree Web Service Interface configuration. Note that a number of KnowledgeTree Tools rely on this service.', 'Client Tools Settings'), | |
| 164 | +(23, 'ldapAuthentication', 'LDAP Authentication', 'Configures LDAP Authentication', 'General Settings'), | |
| 165 | +(24, 'server', 'Server Settings', 'Configuration settings for the server', 'General Settings'); | |
| 166 | +/*!40000 ALTER TABLE `config_groups` ENABLE KEYS */; | |
| 167 | +UNLOCK TABLES; | |
| 168 | + | |
| 169 | +-- | |
| 170 | +-- Dumping data for table `config_settings` | |
| 171 | +-- | |
| 172 | + | |
| 173 | +LOCK TABLES `config_settings` WRITE; | |
| 174 | +/*!40000 ALTER TABLE `config_settings` DISABLE KEYS */; | |
| 175 | +INSERT INTO `config_settings` VALUES | |
| 176 | +(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), | |
| 177 | +(2, 'KnowledgeTree', 'Scheduler Interval', 'Defines the frequency, in seconds, at which the Scheduler is set to run.', 'schedulerInterval', 'default', '30', 'numeric_string', NULL, 1), | |
| 178 | +(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), | |
| 179 | +(4, 'urls', 'Graphics Url', 'The path to the user interface graphics.', 'graphicsUrl', 'default', '${rootUrl}/graphics', 'string', NULL, 1), | |
| 180 | +(5, 'urls', 'User Interface Url', 'The path to the core user interface libraries.', 'uiUrl', 'default', '${rootUrl}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1), | |
| 181 | +(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), | |
| 182 | +(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), | |
| 183 | +(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), | |
| 184 | +(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), | |
| 185 | +(10, 'email', 'Email Server', 'The address of the SMTP server. If the host name fails, try the IP address.', 'emailServer', 'none', 'none', '', NULL, 1), | |
| 186 | +(11, 'email', 'Email Port', 'The port of the SMTP server. The default is 25.', 'emailPort', 'default', '', 'numeric_string', NULL, 1), | |
| 187 | +(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), | |
| 188 | +(13, 'email', 'Email Username', 'The user name of the SMTP (email) server.', 'emailUsername', 'default', 'username', 'string', NULL, 1), | |
| 189 | +(14, 'email', 'Email Password', 'The password for the Email server. ', 'emailPassword', 'default', 'password', 'string', NULL, 1), | |
| 190 | +(15, 'email', 'Email From', 'Defines the sending email address for emails sent from KnowledgeTree.', 'emailFrom', 'default', 'kt@example.org', 'string', NULL, 1), | |
| 191 | +(16, 'email', 'Email From Name', 'The name used by KnowledgeTree for system-generated emails.', 'emailFromName', 'default', 'KnowledgeTree Document Management System', 'string', NULL, 1), | |
| 192 | +(17, 'email', 'Allow Attachment', 'Defines whether to allow users to send attachments from within KnowledgeTree. Default is \'False\'.', 'allowAttachment', 'default', 'false', 'boolean', NULL, 1), | |
| 193 | +(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), | |
| 194 | +(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), | |
| 195 | +(20, 'email', 'Only Own Groups', 'Defines whether to restrict users to sending emails only within their KnowledgeTree user group. <br>Default is \'False\'. <br>Set to \'True\' to disable sending of emails outside of the user\'s group.', 'onlyOwnGroups', 'default', 'false', 'boolean', NULL, 1), | |
| 196 | +(21, 'user_prefs', 'Password Length', 'Defines the minimum password length on password-setting. ', 'passwordLength', 'default', '6', 'numeric_string', NULL, 1), | |
| 197 | +(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), | |
| 198 | +(23, 'user_prefs', 'Restrict Preferences', 'Defines whether to restrict users from accessing the Preferences menu. Default is \'False\'.', 'restrictPreferences', 'default', 'false', 'boolean', NULL, 1), | |
| 199 | +(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), | |
| 200 | +(25, 'session', 'Anonymous Login', 'Defines whether to allow anonymous users to log in automatically. Default is \'False\'. <br>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), | |
| 201 | +(26, 'ui', 'Company Logo', 'Specifies the path (relative to the KnowledgeTree directory) to the custom logo for the KnowledgeTree user interface. <br>The logo must be 50px tall, and on a white background.', 'companyLogo', 'default', '${rootUrl}/resources/companylogo.png', 'string', NULL, 1), | |
| 202 | +(27, 'ui', 'Company Logo Width', 'Defines the width, in pixels, of your custom logo.', 'companyLogoWidth', 'default', '313px', 'string', NULL, 1), | |
| 203 | +(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), | |
| 204 | +(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), | |
| 205 | +(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), | |
| 206 | +(31, 'ui', 'Fake Mimetype', 'Defines whether browsers may provide the option to \'open\' a document from download. Default is \'False\'.<br>Change to \'True\' to prevent (most) browsers from giving users the \'Open\' option.', 'fakeMimetype', 'default', 'false', 'boolean', NULL, 1), | |
| 207 | +(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), | |
| 208 | +(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), | |
| 209 | +(34, 'export', 'zip', 'The location of the zip binary. <br>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), | |
| 210 | +(35, 'externalBinary', 'xls2csv', 'Path to binary', 'xls2csv', 'default', 'xls2csv', 'string', NULL, 1), | |
| 211 | +(36, 'externalBinary', 'pdftotext', 'Path to binary', 'pdftotext', 'default', 'pdftotext', 'string', NULL, 1), | |
| 212 | +(37, 'externalBinary', 'catppt', 'Path to binary', 'catppt', 'default', 'catppt', 'string', NULL, 1), | |
| 213 | +(38, 'externalBinary', 'pstotext', 'Path to binary', 'pstotext', 'default', 'pstotext', 'string', NULL, 1), | |
| 214 | +(39, 'externalBinary', 'catdoc', 'Path to binary', 'catdoc', 'default', 'catdoc', 'string', NULL, 1), | |
| 215 | +(40, 'externalBinary', 'antiword', 'Path to binary', 'antiword', 'default', 'antiword', 'string', NULL, 1), | |
| 216 | +(41, 'externalBinary', 'python', 'Path to binary', 'python', 'default', 'python', 'string', NULL, 1), | |
| 217 | +(42, 'externalBinary', 'java', 'Path to binary', 'java', 'default', 'java', 'string', NULL, 1), | |
| 218 | +(43, 'externalBinary', 'php', 'Path to binary', 'php', 'default', 'php', 'string', NULL, 1), | |
| 219 | +(44, 'externalBinary', 'df', 'Path to binary', 'df', 'default', 'df', 'string', NULL, 1), | |
| 220 | +(45, 'cache', 'Proxy Cache Path', 'The path to the proxy cache. Default is <var directory>/cache.', 'proxyCacheDirectory', 'default', '${varDirectory}/proxies', 'string', NULL, 1), | |
| 221 | +(46, 'cache', 'Proxy Cache Enabled', 'Enables proxy caching. Default is \'True\'. ', 'proxyCacheEnabled', 'default', 'true', 'boolean', NULL, 1), | |
| 222 | +(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), | |
| 223 | +(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), | |
| 224 | +(49, 'search', 'Search Base', 'The location of the Search and Indexing libraries.', 'searchBasePath', 'default', '${fileSystemRoot}/search2', 'string', NULL, 0), | |
| 225 | +(50, 'search', 'Fields Path', 'The location of the Search and Indexing fields.', 'fieldsPath', 'default', '${searchBasePath}/search/fields', 'string', NULL, 0), | |
| 226 | +(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), | |
| 227 | +(52, 'search', 'Results per Page', 'The number of results to display per page.', 'resultsPerPage', 'default', '25', 'numeric_string', NULL, 1), | |
| 228 | +(53, 'search', 'Date Format', 'The date format used when making queries using widgets.', 'dateFormat', 'default', 'Y-m-d', 'string', NULL, 0), | |
| 229 | +(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), | |
| 230 | +(55, 'indexer', 'Core Class', 'Defines the core indexing class. Options include: JavaXMLRPCLuceneIndexer or PHPLuceneIndexer.', 'coreClass', 'default', 'JavaXMLRPCLuceneIndexer', 'string', NULL, 0), | |
| 231 | +(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), | |
| 232 | +(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), | |
| 233 | +(58, 'indexer', 'Indexing Base ', 'The location of the Indexing engine.', 'indexingBasePath', 'default', '${searchBasePath}/indexing', 'string', NULL, 0), | |
| 234 | +(59, 'indexer', 'Lucene Directory', 'The location of the Lucene indexes.', 'luceneDirectory', 'default', '${varDirectory}/indexes', 'string', NULL, 0), | |
| 235 | +(60, 'indexer', 'Extractors ', 'The location of the text extractors.', 'extractorPath', 'default', '${indexingBasePath}/extractors', 'string', NULL, 0), | |
| 236 | +(61, 'indexer', 'Extractor Hook ', 'The location of the extractor hooks.', 'extractorHookPath', 'default', '${indexingBasePath}/extractorHooks', 'string', NULL, 0), | |
| 237 | +(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), | |
| 238 | +(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), | |
| 239 | +(64, 'openoffice', 'Port', 'Defines the port on which OpenOffice listens. ', 'port', 'default', '8100', 'numeric_string', NULL, 1), | |
| 240 | +(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), | |
| 241 | +(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), | |
| 242 | +(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), | |
| 243 | +(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), | |
| 244 | +(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), | |
| 245 | +(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), | |
| 246 | +(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), | |
| 247 | +(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), | |
| 248 | +(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), | |
| 249 | +(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), | |
| 250 | +(75, 'KnowledgeTree', 'Use AJAX Dashboard', 'Defines whether to use the AJAX dashboard, which allows users to drag the dashlets to change the Dashboard display.<br>Default is \'True\'. ', 'useNewDashboard', 'true', 'true', 'boolean', NULL, 1), | |
| 251 | +(76, 'i18n', 'Default Language', 'Defines the default language for the KnowledgeTree user interface. The default is English (en).', 'defaultLanguage', 'default', 'en', 'string', NULL, 1), | |
| 252 | +(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), | |
| 253 | +(78, 'CustomErrorMessages', 'Custom Error Page Path', 'The file name or URL of the custom error page.', 'customerrorpagepath', 'default', 'customerrorpage.php', 'string', NULL, 1), | |
| 254 | +(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), | |
| 255 | +(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), | |
| 256 | +(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), | |
| 257 | +(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), | |
| 258 | +(83, 'storage', 'Manager', 'Defines the storage manager to use for storing documents on the file system. ', 'manager', 'default', 'KTOnDiskHashedStorageManager', 'string', NULL, 1), | |
| 259 | +(84, 'ui', 'IE GIF Theme Overrides', 'Defines whether to use the additional IE-specific GIF theme overrides, which may restrict <br>the working of arbitrary theme packs without having GIF versions available. Default is \'False\'.', 'ieGIF', 'false', 'true', 'boolean', NULL, 1), | |
| 260 | +(85, 'ui', 'Automatic Refresh', 'Set to true to automatically refresh the page after the session would have expired.', 'automaticRefresh', 'default', 'false', 'boolean', NULL, 1), | |
| 261 | +(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), | |
| 262 | +(87, 'urls', 'Log Directory', 'The path to the Log directory.', 'logDirectory', 'default', '${varDirectory}/log', 'string', NULL, 1), | |
| 263 | +(88, 'urls', 'UI Directory', 'The path to the UI directory.', 'uiDirectory', 'default', '${fileSystemRoot}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1), | |
| 264 | +(89, 'urls', 'Temp Directory', 'The path to the temp directory.', 'tmpDirectory', 'default', '${varDirectory}/tmp', 'string', NULL, 1), | |
| 265 | +(90, 'urls', 'Stopwords File', 'The path to the stopword file.', 'stopwordsFile', 'default', '${fileSystemRoot}/config/stopwords.txt', 'string', NULL, 1), | |
| 266 | +(91, 'cache', 'Cache Enabled', 'Enables the KnowledgeTree cache. Default is \'False\'.', 'cacheEnabled', 'default', 'false', 'boolean', NULL, 1), | |
| 267 | +(92, 'cache', 'Cache Directory', 'The location of the KnowledgeTree cache.', 'cacheDirectory', 'default', '${varDirectory}/cache', 'string', NULL, 1), | |
| 268 | +(93, 'openoffice', 'Program Path', 'Defines the path to the OpenOffice program directory. ', 'programPath', 'default', '../openoffice/program', 'string', NULL, 1), | |
| 269 | +(94, 'urls', 'Document Directory', 'The path to the documents directory', 'documentRoot', 'default', '${varDirectory}/Documents', 'string', NULL, 1), | |
| 270 | +(95, 'KnowledgeTree', 'Redirect To Browse View', 'Defines whether to redirect to the Browse view (Browse Documemts) on login, instead of the Dashboard.<br>Default is \'False\'. ', 'redirectToBrowse', 'default', 'false', 'boolean', NULL, 1), | |
| 271 | +(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), | |
| 272 | +(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), | |
| 273 | +(98, 'ldapAuthentication', 'Create Groups Automatically', 'Defines whether to allow LDAP groups to be created automatically. Default is \'False\'.', 'autoGroupCreation', 'default', 'false', 'boolean', 'string', 1), | |
| 274 | +(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), | |
| 275 | +(100, 'import', 'Disable Bulk Import', 'Disable the bulk import plugin', 'disableBulkImport', 'default', 'false', 'string', NULL, 1), | |
| 276 | +(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), | |
| 277 | +(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), | |
| 278 | +(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), | |
| 279 | +(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), | |
| 280 | +(105, 'search', 'Maximum results from SQL query', 'The maximum results from an SQL query', 'maxSqlResults', 'default', '10000', 'numeric_string', NULL, 1), | |
| 281 | +(106, 'indexer', 'Enable the Document Indexer', 'Enables the indexing of document content for full text searching.', 'enableIndexing', 'default', 'true', 'boolean', NULL, 1), | |
| 282 | +(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), | |
| 283 | +(108, 'server', 'Internal Server port', 'The internal port for the server.', 'internal_server_port', 'default', '80', 'numeric_string', NULL, 1), | |
| 284 | +(109, 'server', 'External Server IP', 'The external IP for the server.', 'server_name', 'default', '', 'string', NULL, 1), | |
| 285 | +(110, 'server', 'External Server port', 'The external port for the server.', 'server_port', 'default', '', 'numeric_string', NULL, 1), | |
| 286 | +(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), | |
| 287 | +(112, 'urls', 'Var Directory', 'The path to the var directory.', 'varDirectory', 'default', '${fileSystemRoot}/var', 'string', NULL, 1), | |
| 288 | +(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), | |
| 289 | +(114, 'ui', 'System URL', 'The system url, used in the main logo.', 'systemUrl', 'default', 'http://www.knowledgetree.com', 'string', '', 1), | |
| 290 | +(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), | |
| 291 | +(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), | |
| 292 | +(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); | |
| 293 | +/*!40000 ALTER TABLE `config_settings` ENABLE KEYS */; | |
| 294 | +UNLOCK TABLES; | |
| 295 | + | |
| 296 | +-- | |
| 297 | +-- Dumping data for table `dashlet_disables` | |
| 298 | +-- | |
| 299 | + | |
| 300 | +LOCK TABLES `dashlet_disables` WRITE; | |
| 301 | +/*!40000 ALTER TABLE `dashlet_disables` DISABLE KEYS */; | |
| 302 | +/*!40000 ALTER TABLE `dashlet_disables` ENABLE KEYS */; | |
| 303 | +UNLOCK TABLES; | |
| 304 | + | |
| 305 | +-- | |
| 306 | +-- Dumping data for table `data_types` | |
| 307 | +-- | |
| 308 | + | |
| 309 | +LOCK TABLES `data_types` WRITE; | |
| 310 | +/*!40000 ALTER TABLE `data_types` DISABLE KEYS */; | |
| 311 | +INSERT INTO `data_types` VALUES | |
| 312 | +(1,'STRING'), | |
| 313 | +(2,'CHAR'), | |
| 314 | +(3,'TEXT'), | |
| 315 | +(4,'INT'), | |
| 316 | +(5,'FLOAT'); | |
| 317 | +/*!40000 ALTER TABLE `data_types` ENABLE KEYS */; | |
| 318 | +UNLOCK TABLES; | |
| 319 | + | |
| 320 | +-- | |
| 321 | +-- Dumping data for table `discussion_comments` | |
| 322 | +-- | |
| 323 | + | |
| 324 | +LOCK TABLES `discussion_comments` WRITE; | |
| 325 | +/*!40000 ALTER TABLE `discussion_comments` DISABLE KEYS */; | |
| 326 | +/*!40000 ALTER TABLE `discussion_comments` ENABLE KEYS */; | |
| 327 | +UNLOCK TABLES; | |
| 328 | + | |
| 329 | +-- | |
| 330 | +-- Dumping data for table `discussion_threads` | |
| 331 | +-- | |
| 332 | + | |
| 333 | +LOCK TABLES `discussion_threads` WRITE; | |
| 334 | +/*!40000 ALTER TABLE `discussion_threads` DISABLE KEYS */; | |
| 335 | +/*!40000 ALTER TABLE `discussion_threads` ENABLE KEYS */; | |
| 336 | +UNLOCK TABLES; | |
| 337 | + | |
| 338 | +-- | |
| 339 | +-- Dumping data for table `document_archiving_link` | |
| 340 | +-- | |
| 341 | + | |
| 342 | +LOCK TABLES `document_archiving_link` WRITE; | |
| 343 | +/*!40000 ALTER TABLE `document_archiving_link` DISABLE KEYS */; | |
| 344 | +/*!40000 ALTER TABLE `document_archiving_link` ENABLE KEYS */; | |
| 345 | +UNLOCK TABLES; | |
| 346 | + | |
| 347 | +-- | |
| 348 | +-- Dumping data for table `document_content_version` | |
| 349 | +-- | |
| 350 | + | |
| 351 | +LOCK TABLES `document_content_version` WRITE; | |
| 352 | +/*!40000 ALTER TABLE `document_content_version` DISABLE KEYS */; | |
| 353 | +/*!40000 ALTER TABLE `document_content_version` ENABLE KEYS */; | |
| 354 | +UNLOCK TABLES; | |
| 355 | + | |
| 356 | +-- | |
| 357 | +-- Dumping data for table `document_fields` | |
| 358 | +-- | |
| 359 | + | |
| 360 | +LOCK TABLES `document_fields` WRITE; | |
| 361 | +/*!40000 ALTER TABLE `document_fields` DISABLE KEYS */; | |
| 362 | +INSERT INTO `document_fields` VALUES | |
| 363 | +(2,'Tag','STRING',0,0,0,2,0,'Tag Words',0), | |
| 364 | +(3,'Document Author','STRING',0,0,0,3,0,'Please add a document author',0), | |
| 365 | +(4,'Category','STRING',0,1,0,3,0,'Please select a category',1), | |
| 366 | +(5,'Media Type','STRING',0,1,0,3,0,'Please select a media type',2); | |
| 367 | +/*!40000 ALTER TABLE `document_fields` ENABLE KEYS */; | |
| 368 | +UNLOCK TABLES; | |
| 369 | + | |
| 370 | +-- | |
| 371 | +-- Dumping data for table `document_fields_link` | |
| 372 | +-- | |
| 373 | + | |
| 374 | +LOCK TABLES `document_fields_link` WRITE; | |
| 375 | +/*!40000 ALTER TABLE `document_fields_link` DISABLE KEYS */; | |
| 376 | +/*!40000 ALTER TABLE `document_fields_link` ENABLE KEYS */; | |
| 377 | +UNLOCK TABLES; | |
| 378 | + | |
| 379 | +-- | |
| 380 | +-- Dumping data for table `document_incomplete` | |
| 381 | +-- | |
| 382 | + | |
| 383 | +LOCK TABLES `document_incomplete` WRITE; | |
| 384 | +/*!40000 ALTER TABLE `document_incomplete` DISABLE KEYS */; | |
| 385 | +/*!40000 ALTER TABLE `document_incomplete` ENABLE KEYS */; | |
| 386 | +UNLOCK TABLES; | |
| 387 | + | |
| 388 | +-- | |
| 389 | +-- Dumping data for table `document_link` | |
| 390 | +-- | |
| 391 | + | |
| 392 | +LOCK TABLES `document_link` WRITE; | |
| 393 | +/*!40000 ALTER TABLE `document_link` DISABLE KEYS */; | |
| 394 | +/*!40000 ALTER TABLE `document_link` ENABLE KEYS */; | |
| 395 | +UNLOCK TABLES; | |
| 396 | + | |
| 397 | +-- | |
| 398 | +-- Dumping data for table `document_link_types` | |
| 399 | +-- | |
| 400 | + | |
| 401 | +LOCK TABLES `document_link_types` WRITE; | |
| 402 | +/*!40000 ALTER TABLE `document_link_types` DISABLE KEYS */; | |
| 403 | +INSERT INTO `document_link_types` VALUES | |
| 404 | +(-1,'depended on','was depended on by','Depends relationship whereby one documents depends on another\'s creation to go through approval'), | |
| 405 | +(0,'Default','Default (reverse)','Default link type'), | |
| 406 | +(3,'Attachment','','Document Attachment'), | |
| 407 | +(4,'Reference','','Document Reference'), | |
| 408 | +(5,'Copy','','Document Copy'); | |
| 409 | +/*!40000 ALTER TABLE `document_link_types` ENABLE KEYS */; | |
| 410 | +UNLOCK TABLES; | |
| 411 | + | |
| 412 | +-- | |
| 413 | +-- Dumping data for table `document_metadata_version` | |
| 414 | +-- | |
| 415 | + | |
| 416 | +LOCK TABLES `document_metadata_version` WRITE; | |
| 417 | +/*!40000 ALTER TABLE `document_metadata_version` DISABLE KEYS */; | |
| 418 | +/*!40000 ALTER TABLE `document_metadata_version` ENABLE KEYS */; | |
| 419 | +UNLOCK TABLES; | |
| 420 | + | |
| 421 | +-- | |
| 422 | +-- Dumping data for table `document_role_allocations` | |
| 423 | +-- | |
| 424 | + | |
| 425 | +LOCK TABLES `document_role_allocations` WRITE; | |
| 426 | +/*!40000 ALTER TABLE `document_role_allocations` DISABLE KEYS */; | |
| 427 | +/*!40000 ALTER TABLE `document_role_allocations` ENABLE KEYS */; | |
| 428 | +UNLOCK TABLES; | |
| 429 | + | |
| 430 | +-- | |
| 431 | +-- Dumping data for table `document_searchable_text` | |
| 432 | +-- | |
| 433 | + | |
| 434 | +LOCK TABLES `document_searchable_text` WRITE; | |
| 435 | +/*!40000 ALTER TABLE `document_searchable_text` DISABLE KEYS */; | |
| 436 | +/*!40000 ALTER TABLE `document_searchable_text` ENABLE KEYS */; | |
| 437 | +UNLOCK TABLES; | |
| 438 | + | |
| 439 | +-- | |
| 440 | +-- Dumping data for table `document_subscriptions` | |
| 441 | +-- | |
| 442 | + | |
| 443 | +LOCK TABLES `document_subscriptions` WRITE; | |
| 444 | +/*!40000 ALTER TABLE `document_subscriptions` DISABLE KEYS */; | |
| 445 | +/*!40000 ALTER TABLE `document_subscriptions` ENABLE KEYS */; | |
| 446 | +UNLOCK TABLES; | |
| 447 | + | |
| 448 | +-- | |
| 449 | +-- Dumping data for table `document_tags` | |
| 450 | +-- | |
| 451 | + | |
| 452 | +LOCK TABLES `document_tags` WRITE; | |
| 453 | +/*!40000 ALTER TABLE `document_tags` DISABLE KEYS */; | |
| 454 | +/*!40000 ALTER TABLE `document_tags` ENABLE KEYS */; | |
| 455 | +UNLOCK TABLES; | |
| 456 | + | |
| 457 | +-- | |
| 458 | +-- Dumping data for table `document_text` | |
| 459 | +-- | |
| 460 | + | |
| 461 | +LOCK TABLES `document_text` WRITE; | |
| 462 | +/*!40000 ALTER TABLE `document_text` DISABLE KEYS */; | |
| 463 | +/*!40000 ALTER TABLE `document_text` ENABLE KEYS */; | |
| 464 | +UNLOCK TABLES; | |
| 465 | + | |
| 466 | +-- | |
| 467 | +-- Dumping data for table `document_transaction_text` | |
| 468 | +-- | |
| 469 | + | |
| 470 | +LOCK TABLES `document_transaction_text` WRITE; | |
| 471 | +/*!40000 ALTER TABLE `document_transaction_text` DISABLE KEYS */; | |
| 472 | +/*!40000 ALTER TABLE `document_transaction_text` ENABLE KEYS */; | |
| 473 | +UNLOCK TABLES; | |
| 474 | + | |
| 475 | +-- | |
| 476 | +-- Dumping data for table `document_transaction_types_lookup` | |
| 477 | +-- | |
| 478 | + | |
| 479 | +LOCK TABLES `document_transaction_types_lookup` WRITE; | |
| 480 | +/*!40000 ALTER TABLE `document_transaction_types_lookup` DISABLE KEYS */; | |
| 481 | +INSERT INTO `document_transaction_types_lookup` VALUES | |
| 482 | +(1,'Create','ktcore.transactions.create'), | |
| 483 | +(2,'Update','ktcore.transactions.update'), | |
| 484 | +(3,'Delete','ktcore.transactions.delete'), | |
| 485 | +(4,'Rename','ktcore.transactions.rename'), | |
| 486 | +(5,'Move','ktcore.transactions.move'), | |
| 487 | +(6,'Download','ktcore.transactions.download'), | |
| 488 | +(7,'Check In','ktcore.transactions.check_in'), | |
| 489 | +(8,'Check Out','ktcore.transactions.check_out'), | |
| 490 | +(9,'Collaboration Step Rollback','ktcore.transactions.collaboration_step_rollback'), | |
| 491 | +(10,'View','ktcore.transactions.view'), | |
| 492 | +(11,'Expunge','ktcore.transactions.expunge'), | |
| 493 | +(12,'Force CheckIn','ktcore.transactions.force_checkin'), | |
| 494 | +(13,'Email Link','ktcore.transactions.email_link'), | |
| 495 | +(14,'Collaboration Step Approve','ktcore.transactions.collaboration_step_approve'), | |
| 496 | +(15,'Email Attachment','ktcore.transactions.email_attachment'), | |
| 497 | +(16,'Workflow state transition','ktcore.transactions.workflow_state_transition'), | |
| 498 | +(17,'Permissions changed','ktcore.transactions.permissions_change'), | |
| 499 | +(18,'Role allocations changed','ktcore.transactions.role_allocations_change'), | |
| 500 | +(19,'Bulk Export','ktstandard.transactions.bulk_export'), | |
| 501 | +(20,'Copy','ktcore.transactions.copy'), | |
| 502 | +(21,'Delete Version','ktcore.transactions.delete_version'); | |
| 503 | +/*!40000 ALTER TABLE `document_transaction_types_lookup` ENABLE KEYS */; | |
| 504 | +UNLOCK TABLES; | |
| 505 | + | |
| 506 | +-- | |
| 507 | +-- Dumping data for table `document_transactions` | |
| 508 | +-- | |
| 509 | + | |
| 510 | +LOCK TABLES `document_transactions` WRITE; | |
| 511 | +/*!40000 ALTER TABLE `document_transactions` DISABLE KEYS */; | |
| 512 | +/*!40000 ALTER TABLE `document_transactions` ENABLE KEYS */; | |
| 513 | +UNLOCK TABLES; | |
| 514 | + | |
| 515 | +-- | |
| 516 | +-- Dumping data for table `document_type_fields_link` | |
| 517 | +-- | |
| 518 | + | |
| 519 | +LOCK TABLES `document_type_fields_link` WRITE; | |
| 520 | +/*!40000 ALTER TABLE `document_type_fields_link` DISABLE KEYS */; | |
| 521 | +/*!40000 ALTER TABLE `document_type_fields_link` ENABLE KEYS */; | |
| 522 | +UNLOCK TABLES; | |
| 523 | + | |
| 524 | +-- | |
| 525 | +-- Dumping data for table `document_type_fieldsets_link` | |
| 526 | +-- | |
| 527 | + | |
| 528 | +LOCK TABLES `document_type_fieldsets_link` WRITE; | |
| 529 | +/*!40000 ALTER TABLE `document_type_fieldsets_link` DISABLE KEYS */; | |
| 530 | +/*!40000 ALTER TABLE `document_type_fieldsets_link` ENABLE KEYS */; | |
| 531 | +UNLOCK TABLES; | |
| 532 | + | |
| 533 | +-- | |
| 534 | +-- Dumping data for table `document_types_lookup` | |
| 535 | +-- | |
| 536 | + | |
| 537 | +LOCK TABLES `document_types_lookup` WRITE; | |
| 538 | +/*!40000 ALTER TABLE `document_types_lookup` DISABLE KEYS */; | |
| 539 | +INSERT INTO `document_types_lookup` VALUES | |
| 540 | +(1,'Default',0); | |
| 541 | +/*!40000 ALTER TABLE `document_types_lookup` ENABLE KEYS */; | |
| 542 | +UNLOCK TABLES; | |
| 543 | + | |
| 544 | +-- | |
| 545 | +-- Dumping data for table `documents` | |
| 546 | +-- | |
| 547 | + | |
| 548 | +LOCK TABLES `documents` WRITE; | |
| 549 | +/*!40000 ALTER TABLE `documents` DISABLE KEYS */; | |
| 550 | +/*!40000 ALTER TABLE `documents` ENABLE KEYS */; | |
| 551 | +UNLOCK TABLES; | |
| 552 | + | |
| 553 | +-- | |
| 554 | +-- Dumping data for table `download_files` | |
| 555 | +-- | |
| 556 | + | |
| 557 | +LOCK TABLES `download_files` WRITE; | |
| 558 | +/*!40000 ALTER TABLE `download_files` DISABLE KEYS */; | |
| 559 | +/*!40000 ALTER TABLE `download_files` ENABLE KEYS */; | |
| 560 | +UNLOCK TABLES; | |
| 561 | + | |
| 562 | +-- | |
| 563 | +-- Dumping data for table `field_behaviour_options` | |
| 564 | +-- | |
| 565 | + | |
| 566 | +LOCK TABLES `field_behaviour_options` WRITE; | |
| 567 | +/*!40000 ALTER TABLE `field_behaviour_options` DISABLE KEYS */; | |
| 568 | +/*!40000 ALTER TABLE `field_behaviour_options` ENABLE KEYS */; | |
| 569 | +UNLOCK TABLES; | |
| 570 | + | |
| 571 | +-- | |
| 572 | +-- Dumping data for table `field_behaviours` | |
| 573 | +-- | |
| 574 | + | |
| 575 | +LOCK TABLES `field_behaviours` WRITE; | |
| 576 | +/*!40000 ALTER TABLE `field_behaviours` DISABLE KEYS */; | |
| 577 | +/*!40000 ALTER TABLE `field_behaviours` ENABLE KEYS */; | |
| 578 | +UNLOCK TABLES; | |
| 579 | + | |
| 580 | +-- | |
| 581 | +-- Dumping data for table `field_orders` | |
| 582 | +-- | |
| 583 | + | |
| 584 | +LOCK TABLES `field_orders` WRITE; | |
| 585 | +/*!40000 ALTER TABLE `field_orders` DISABLE KEYS */; | |
| 586 | +/*!40000 ALTER TABLE `field_orders` ENABLE KEYS */; | |
| 587 | +UNLOCK TABLES; | |
| 588 | + | |
| 589 | +-- | |
| 590 | +-- Dumping data for table `field_value_instances` | |
| 591 | +-- | |
| 592 | + | |
| 593 | +LOCK TABLES `field_value_instances` WRITE; | |
| 594 | +/*!40000 ALTER TABLE `field_value_instances` DISABLE KEYS */; | |
| 595 | +/*!40000 ALTER TABLE `field_value_instances` ENABLE KEYS */; | |
| 596 | +UNLOCK TABLES; | |
| 597 | + | |
| 598 | +-- | |
| 599 | +-- Dumping data for table `fieldsets` | |
| 600 | +-- | |
| 601 | + | |
| 602 | +LOCK TABLES `fieldsets` WRITE; | |
| 603 | +/*!40000 ALTER TABLE `fieldsets` DISABLE KEYS */; | |
| 604 | +INSERT INTO `fieldsets` VALUES | |
| 605 | +(2,'Tag Cloud','tagcloud',0,0,NULL,1,0,0,0,'Tag Cloud',0), | |
| 606 | +(3,'General information','generalinformation',0,0,NULL,1,0,0,0,'General document information',0); | |
| 607 | +/*!40000 ALTER TABLE `fieldsets` ENABLE KEYS */; | |
| 608 | +UNLOCK TABLES; | |
| 609 | + | |
| 610 | +-- | |
| 611 | +-- Dumping data for table `folder_descendants` | |
| 612 | +-- | |
| 613 | + | |
| 614 | +LOCK TABLES `folder_descendants` WRITE; | |
| 615 | +/*!40000 ALTER TABLE `folder_descendants` DISABLE KEYS */; | |
| 616 | +/*!40000 ALTER TABLE `folder_descendants` ENABLE KEYS */; | |
| 617 | +UNLOCK TABLES; | |
| 618 | + | |
| 619 | +-- | |
| 620 | +-- Dumping data for table `folder_doctypes_link` | |
| 621 | +-- | |
| 622 | + | |
| 623 | +LOCK TABLES `folder_doctypes_link` WRITE; | |
| 624 | +/*!40000 ALTER TABLE `folder_doctypes_link` DISABLE KEYS */; | |
| 625 | +INSERT INTO `folder_doctypes_link` VALUES | |
| 626 | +(1,1,1); | |
| 627 | +/*!40000 ALTER TABLE `folder_doctypes_link` ENABLE KEYS */; | |
| 628 | +UNLOCK TABLES; | |
| 629 | + | |
| 630 | +-- | |
| 631 | +-- Dumping data for table `folder_searchable_text` | |
| 632 | +-- | |
| 633 | + | |
| 634 | +LOCK TABLES `folder_searchable_text` WRITE; | |
| 635 | +/*!40000 ALTER TABLE `folder_searchable_text` DISABLE KEYS */; | |
| 636 | +INSERT INTO `folder_searchable_text` VALUES | |
| 637 | +(1,'Root Folder'); | |
| 638 | +/*!40000 ALTER TABLE `folder_searchable_text` ENABLE KEYS */; | |
| 639 | +UNLOCK TABLES; | |
| 640 | + | |
| 641 | +-- | |
| 642 | +-- Dumping data for table `folder_subscriptions` | |
| 643 | +-- | |
| 644 | + | |
| 645 | +LOCK TABLES `folder_subscriptions` WRITE; | |
| 646 | +/*!40000 ALTER TABLE `folder_subscriptions` DISABLE KEYS */; | |
| 647 | +/*!40000 ALTER TABLE `folder_subscriptions` ENABLE KEYS */; | |
| 648 | +UNLOCK TABLES; | |
| 649 | + | |
| 650 | +-- | |
| 651 | +-- Dumping data for table `folder_transactions` | |
| 652 | +-- | |
| 653 | + | |
| 654 | +LOCK TABLES `folder_transactions` WRITE; | |
| 655 | +/*!40000 ALTER TABLE `folder_transactions` DISABLE KEYS */; | |
| 656 | +/*!40000 ALTER TABLE `folder_transactions` ENABLE KEYS */; | |
| 657 | +UNLOCK TABLES; | |
| 658 | + | |
| 659 | +-- | |
| 660 | +-- Dumping data for table `folder_workflow_map` | |
| 661 | +-- | |
| 662 | + | |
| 663 | +LOCK TABLES `folder_workflow_map` WRITE; | |
| 664 | +/*!40000 ALTER TABLE `folder_workflow_map` DISABLE KEYS */; | |
| 665 | +/*!40000 ALTER TABLE `folder_workflow_map` ENABLE KEYS */; | |
| 666 | +UNLOCK TABLES; | |
| 667 | + | |
| 668 | +-- | |
| 669 | +-- Dumping data for table `folders` | |
| 670 | +-- | |
| 671 | + | |
| 672 | +LOCK TABLES `folders` WRITE; | |
| 673 | +/*!40000 ALTER TABLE `folders` DISABLE KEYS */; | |
| 674 | +INSERT INTO `folders` VALUES | |
| 675 | +(1,'Root Folder','Root Document Folder',NULL,1,0,NULL,NULL,1,5,0,1,NULL); | |
| 676 | +/*!40000 ALTER TABLE `folders` ENABLE KEYS */; | |
| 677 | +UNLOCK TABLES; | |
| 678 | + | |
| 679 | +-- | |
| 680 | +-- Dumping data for table `folders_users_roles_link` | |
| 681 | +-- | |
| 682 | + | |
| 683 | +LOCK TABLES `folders_users_roles_link` WRITE; | |
| 684 | +/*!40000 ALTER TABLE `folders_users_roles_link` DISABLE KEYS */; | |
| 685 | +/*!40000 ALTER TABLE `folders_users_roles_link` ENABLE KEYS */; | |
| 686 | +UNLOCK TABLES; | |
| 687 | + | |
| 688 | +-- | |
| 689 | +-- Dumping data for table `groups_groups_link` | |
| 690 | +-- | |
| 691 | + | |
| 692 | +LOCK TABLES `groups_groups_link` WRITE; | |
| 693 | +/*!40000 ALTER TABLE `groups_groups_link` DISABLE KEYS */; | |
| 694 | +/*!40000 ALTER TABLE `groups_groups_link` ENABLE KEYS */; | |
| 695 | +UNLOCK TABLES; | |
| 696 | + | |
| 697 | +-- | |
| 698 | +-- Dumping data for table `groups_lookup` | |
| 699 | +-- | |
| 700 | + | |
| 701 | +LOCK TABLES `groups_lookup` WRITE; | |
| 702 | +/*!40000 ALTER TABLE `groups_lookup` DISABLE KEYS */; | |
| 703 | +INSERT INTO `groups_lookup` VALUES | |
| 704 | +(1,'System Administrators',1,0,NULL,NULL,NULL,NULL); | |
| 705 | +/*!40000 ALTER TABLE `groups_lookup` ENABLE KEYS */; | |
| 706 | +UNLOCK TABLES; | |
| 707 | + | |
| 708 | +-- | |
| 709 | +-- Dumping data for table `help` | |
| 710 | +-- | |
| 711 | + | |
| 712 | +LOCK TABLES `help` WRITE; | |
| 713 | +/*!40000 ALTER TABLE `help` DISABLE KEYS */; | |
| 714 | +INSERT INTO `help` VALUES | |
| 715 | +(1,'browse','dochelp.html'), | |
| 716 | +(2,'dashboard','dashboardHelp.html'), | |
| 717 | +(3,'addFolder','addFolderHelp.html'), | |
| 718 | +(4,'editFolder','editFolderHelp.html'), | |
| 719 | +(5,'addFolderCollaboration','addFolderCollaborationHelp.html'), | |
| 720 | +(6,'modifyFolderCollaboration','addFolderCollaborationHelp.html'), | |
| 721 | +(7,'addDocument','addDocumentHelp.html'), | |
| 722 | +(8,'viewDocument','viewDocumentHelp.html'), | |
| 723 | +(9,'modifyDocument','modifyDocumentHelp.html'), | |
| 724 | +(10,'modifyDocumentRouting','modifyDocumentRoutingHelp.html'), | |
| 725 | +(11,'emailDocument','emailDocumentHelp.html'), | |
| 726 | +(12,'deleteDocument','deleteDocumentHelp.html'), | |
| 727 | +(13,'administration','administrationHelp.html'), | |
| 728 | +(14,'addGroup','addGroupHelp.html'), | |
| 729 | +(15,'editGroup','editGroupHelp.html'), | |
| 730 | +(16,'removeGroup','removeGroupHelp.html'), | |
| 731 | +(17,'assignGroupToUnit','assignGroupToUnitHelp.html'), | |
| 732 | +(18,'removeGroupFromUnit','removeGroupFromUnitHelp.html'), | |
| 733 | +(19,'addUnit','addUnitHelp.html'), | |
| 734 | +(20,'editUnit','editUnitHelp.html'), | |
| 735 | +(21,'removeUnit','removeUnitHelp.html'), | |
| 736 | +(22,'addOrg','addOrgHelp.html'), | |
| 737 | +(23,'editOrg','editOrgHelp.html'), | |
| 738 | +(24,'removeOrg','removeOrgHelp.html'), | |
| 739 | +(25,'addRole','addRoleHelp.html'), | |
| 740 | +(26,'editRole','editRoleHelp.html'), | |
| 741 | +(27,'removeRole','removeRoleHelp.html'), | |
| 742 | +(28,'addLink','addLinkHelp.html'), | |
| 743 | +(29,'addLinkSuccess','addLinkHelp.html'), | |
| 744 | +(30,'editLink','editLinkHelp.html'), | |
| 745 | +(31,'removeLink','removeLinkHelp.html'), | |
| 746 | +(32,'systemAdministration','systemAdministrationHelp.html'), | |
| 747 | +(33,'deleteFolder','deleteFolderHelp.html'), | |
| 748 | +(34,'editDocType','editDocTypeHelp.html'), | |
| 749 | +(35,'removeDocType','removeDocTypeHelp.html'), | |
| 750 | +(36,'addDocType','addDocTypeHelp.html'), | |
| 751 | +(37,'addDocTypeSuccess','addDocTypeHelp.html'), | |
| 752 | +(38,'manageSubscriptions','manageSubscriptionsHelp.html'), | |
| 753 | +(39,'addSubscription','addSubscriptionHelp.html'), | |
| 754 | +(40,'removeSubscription','removeSubscriptionHelp.html'), | |
| 755 | +(41,'preferences','preferencesHelp.html'), | |
| 756 | +(42,'editPrefsSuccess','preferencesHelp.html'), | |
| 757 | +(43,'modifyDocumentGenericMetaData','modifyDocumentGenericMetaDataHelp.html'), | |
| 758 | +(44,'viewHistory','viewHistoryHelp.html'), | |
| 759 | +(45,'checkInDocument','checkInDocumentHelp.html'), | |
| 760 | +(46,'checkOutDocument','checkOutDocumentHelp.html'), | |
| 761 | +(47,'advancedSearch','advancedSearchHelp.html'), | |
| 762 | +(48,'deleteFolderCollaboration','deleteFolderCollaborationHelp.html'), | |
| 763 | +(49,'addFolderDocType','addFolderDocTypeHelp.html'), | |
| 764 | +(50,'deleteFolderDocType','deleteFolderDocTypeHelp.html'), | |
| 765 | +(51,'addGroupFolderLink','addGroupFolderLinkHelp.html'), | |
| 766 | +(52,'deleteGroupFolderLink','deleteGroupFolderLinkHelp.html'), | |
| 767 | +(53,'addWebsite','addWebsiteHelp.html'), | |
| 768 | +(54,'addWebsiteSuccess','addWebsiteHelp.html'), | |
| 769 | +(55,'editWebsite','editWebsiteHelp.html'), | |
| 770 | +(56,'removeWebSite','removeWebSiteHelp.html'), | |
| 771 | +(57,'standardSearch','standardSearchHelp.html'), | |
| 772 | +(58,'modifyDocumentTypeMetaData','modifyDocumentTypeMetaDataHelp.html'), | |
| 773 | +(59,'addDocField','addDocFieldHelp.html'), | |
| 774 | +(60,'editDocField','editDocFieldHelp.html'), | |
| 775 | +(61,'removeDocField','removeDocFieldHelp.html'), | |
| 776 | +(62,'addMetaData','addMetaDataHelp.html'), | |
| 777 | +(63,'editMetaData','editMetaDataHelp.html'), | |
| 778 | +(64,'removeMetaData','removeMetaDataHelp.html'), | |
| 779 | +(65,'addUser','addUserHelp.html'), | |
| 780 | +(66,'editUser','editUserHelp.html'), | |
| 781 | +(67,'removeUser','removeUserHelp.html'), | |
| 782 | +(68,'addUserToGroup','addUserToGroupHelp.html'), | |
| 783 | +(69,'removeUserFromGroup','removeUserFromGroupHelp.html'), | |
| 784 | +(70,'viewDiscussion','viewDiscussionThread.html'), | |
| 785 | +(71,'addComment','addDiscussionComment.html'), | |
| 786 | +(72,'listNews','listDashboardNewsHelp.html'), | |
| 787 | +(73,'editNews','editDashboardNewsHelp.html'), | |
| 788 | +(74,'previewNews','previewDashboardNewsHelp.html'), | |
| 789 | +(75,'addNews','addDashboardNewsHelp.html'), | |
| 790 | +(76,'modifyDocumentArchiveSettings','modifyDocumentArchiveSettingsHelp.html'), | |
| 791 | +(77,'addDocumentArchiveSettings','addDocumentArchiveSettingsHelp.html'), | |
| 792 | +(78,'listDocFields','listDocumentFieldsAdmin.html'), | |
| 793 | +(79,'editDocFieldLookups','editDocFieldLookups.html'), | |
| 794 | +(80,'addMetaDataForField','addMetaDataForField.html'), | |
| 795 | +(81,'editMetaDataForField','editMetaDataForField.html'), | |
| 796 | +(82,'removeMetaDataFromField','removeMetaDataFromField.html'), | |
| 797 | +(83,'listDocs','listDocumentsCheckoutHelp.html'), | |
| 798 | +(84,'editDocCheckout','editDocCheckoutHelp.html'), | |
| 799 | +(85,'listDocTypes','listDocTypesHelp.html'), | |
| 800 | +(86,'editDocTypeFields','editDocFieldHelp.html'), | |
| 801 | +(87,'addDocTypeFieldsLink','addDocTypeFieldHelp.html'), | |
| 802 | +(88,'listGroups','listGroupsHelp.html'), | |
| 803 | +(89,'editGroupUnit','editGroupUnitHelp.html'), | |
| 804 | +(90,'listOrg','listOrgHelp.html'), | |
| 805 | +(91,'listRole','listRolesHelp.html'), | |
| 806 | +(92,'listUnits','listUnitHelp.html'), | |
| 807 | +(93,'editUnitOrg','editUnitOrgHelp.html'), | |
| 808 | +(94,'removeUnitFromOrg','removeUnitFromOrgHelp.html'), | |
| 809 | +(95,'addUnitToOrg','addUnitToOrgHelp.html'), | |
| 810 | +(96,'listUsers','listUsersHelp.html'), | |
| 811 | +(97,'editUserGroups','editUserGroupsHelp.html'), | |
| 812 | +(98,'listWebsites','listWebsitesHelp.html'), | |
| 813 | +(99,'loginDisclaimer','loginDisclaimer.html'), | |
| 814 | +(100,'pageDisclaimer','pageDisclaimer.html'); | |
| 815 | +/*!40000 ALTER TABLE `help` ENABLE KEYS */; | |
| 816 | +UNLOCK TABLES; | |
| 817 | + | |
| 818 | +-- | |
| 819 | +-- Dumping data for table `help_replacement` | |
| 820 | +-- | |
| 821 | + | |
| 822 | +LOCK TABLES `help_replacement` WRITE; | |
| 823 | +/*!40000 ALTER TABLE `help_replacement` DISABLE KEYS */; | |
| 824 | +/*!40000 ALTER TABLE `help_replacement` ENABLE KEYS */; | |
| 825 | +UNLOCK TABLES; | |
| 826 | + | |
| 827 | +-- | |
| 828 | +-- Dumping data for table `index_files` | |
| 829 | +-- | |
| 830 | + | |
| 831 | +LOCK TABLES `index_files` WRITE; | |
| 832 | +/*!40000 ALTER TABLE `index_files` DISABLE KEYS */; | |
| 833 | +/*!40000 ALTER TABLE `index_files` ENABLE KEYS */; | |
| 834 | +UNLOCK TABLES; | |
| 835 | + | |
| 836 | +-- | |
| 837 | +-- Dumping data for table `interceptor_instances` | |
| 838 | +-- | |
| 839 | + | |
| 840 | +LOCK TABLES `interceptor_instances` WRITE; | |
| 841 | +/*!40000 ALTER TABLE `interceptor_instances` DISABLE KEYS */; | |
| 842 | +/*!40000 ALTER TABLE `interceptor_instances` ENABLE KEYS */; | |
| 843 | +UNLOCK TABLES; | |
| 844 | + | |
| 845 | +-- | |
| 846 | +-- Dumping data for table `links` | |
| 847 | +-- | |
| 848 | + | |
| 849 | +LOCK TABLES `links` WRITE; | |
| 850 | +/*!40000 ALTER TABLE `links` DISABLE KEYS */; | |
| 851 | +/*!40000 ALTER TABLE `links` ENABLE KEYS */; | |
| 852 | +UNLOCK TABLES; | |
| 853 | + | |
| 854 | +-- | |
| 855 | +-- Dumping data for table `metadata_lookup` | |
| 856 | +-- | |
| 857 | + | |
| 858 | +LOCK TABLES `metadata_lookup` WRITE; | |
| 859 | +/*!40000 ALTER TABLE `metadata_lookup` DISABLE KEYS */; | |
| 860 | +INSERT INTO `metadata_lookup` VALUES | |
| 861 | +(2,4,'Technical',NULL,0,0), | |
| 862 | +(3,4,'Financial',NULL,0,0), | |
| 863 | +(4,4,'Legal',NULL,0,0), | |
| 864 | +(5,4,'Administrative',NULL,0,0), | |
| 865 | +(6,4,'Miscellaneous',NULL,0,0), | |
| 866 | +(7,4,'Sales',NULL,0,0), | |
| 867 | +(8,5,'Text',NULL,0,0), | |
| 868 | +(9,5,'Image',NULL,0,0), | |
| 869 | +(10,5,'Audio',NULL,0,0), | |
| 870 | +(11,5,'Video',NULL,0,0); | |
| 871 | +/*!40000 ALTER TABLE `metadata_lookup` ENABLE KEYS */; | |
| 872 | +UNLOCK TABLES; | |
| 873 | + | |
| 874 | +-- | |
| 875 | +-- Dumping data for table `metadata_lookup_tree` | |
| 876 | +-- | |
| 877 | + | |
| 878 | +LOCK TABLES `metadata_lookup_tree` WRITE; | |
| 879 | +/*!40000 ALTER TABLE `metadata_lookup_tree` DISABLE KEYS */; | |
| 880 | +/*!40000 ALTER TABLE `metadata_lookup_tree` ENABLE KEYS */; | |
| 881 | +UNLOCK TABLES; | |
| 882 | + | |
| 883 | +-- | |
| 884 | +-- Dumping data for table `mime_document_mapping` | |
| 885 | +-- | |
| 886 | + | |
| 887 | +LOCK TABLES `mime_document_mapping` WRITE; | |
| 888 | +/*!40000 ALTER TABLE `mime_document_mapping` DISABLE KEYS */; | |
| 889 | +/*!40000 ALTER TABLE `mime_document_mapping` ENABLE KEYS */; | |
| 890 | +UNLOCK TABLES; | |
| 891 | + | |
| 892 | +-- | |
| 893 | +-- Dumping data for table `mime_documents` | |
| 894 | +-- | |
| 895 | + | |
| 896 | +LOCK TABLES `mime_documents` WRITE; | |
| 897 | +/*!40000 ALTER TABLE `mime_documents` DISABLE KEYS */; | |
| 898 | +/*!40000 ALTER TABLE `mime_documents` ENABLE KEYS */; | |
| 899 | +UNLOCK TABLES; | |
| 900 | + | |
| 901 | +-- | |
| 902 | +-- Dumping data for table `mime_extractors` | |
| 903 | +-- | |
| 904 | + | |
| 905 | +LOCK TABLES `mime_extractors` WRITE; | |
| 906 | +/*!40000 ALTER TABLE `mime_extractors` DISABLE KEYS */; | |
| 907 | +/*!40000 ALTER TABLE `mime_extractors` ENABLE KEYS */; | |
| 908 | +UNLOCK TABLES; | |
| 909 | + | |
| 910 | +-- | |
| 911 | +-- Dumping data for table `mime_types` | |
| 912 | +-- | |
| 913 | + | |
| 914 | +LOCK TABLES `mime_types` WRITE; | |
| 915 | +/*!40000 ALTER TABLE `mime_types` DISABLE KEYS */; | |
| 916 | +INSERT INTO `mime_types` VALUES | |
| 917 | +(1,'ai','application/ai','image','Adobe Illustrator Vector Graphic',NULL,NULL), | |
| 918 | +(2,'aif','audio/x-aiff',NULL,'',NULL,NULL), | |
| 919 | +(3,'aifc','audio/x-aiff',NULL,'',NULL,NULL), | |
| 920 | +(4,'aiff','audio/x-aiff',NULL,'',NULL,NULL), | |
| 921 | +(5,'asc','text/plain','text','Plain Text',NULL,NULL), | |
| 922 | +(6,'au','audio/basic',NULL,'',NULL,NULL), | |
| 923 | +(7,'avi','video/x-msvideo',NULL,'Video File',NULL,NULL), | |
| 924 | +(8,'bcpio','application/x-bcpio',NULL,'',NULL,NULL), | |
| 925 | +(9,'bin','application/octet-stream',NULL,'Binary File',NULL,NULL), | |
| 926 | +(10,'bmp','image/bmp','image','BMP Image',NULL,NULL), | |
| 927 | +(11,'cdf','application/x-netcdf',NULL,'',NULL,NULL), | |
| 928 | +(12,'class','application/octet-stream',NULL,'',NULL,NULL), | |
| 929 | +(13,'cpio','application/x-cpio',NULL,'',NULL,NULL), | |
| 930 | +(14,'cpt','application/mac-compactpro',NULL,'',NULL,NULL), | |
| 931 | +(15,'csh','application/x-csh',NULL,'',NULL,NULL), | |
| 932 | +(16,'css','text/css',NULL,'',NULL,NULL), | |
| 933 | +(17,'dcr','application/x-director',NULL,'',NULL,NULL), | |
| 934 | +(18,'dir','application/x-director',NULL,'',NULL,NULL), | |
| 935 | +(19,'dms','application/octet-stream',NULL,'',NULL,NULL), | |
| 936 | +(20,'doc','application/msword','word','Word Document',NULL,NULL), | |
| 937 | +(21,'dvi','application/x-dvi',NULL,'',NULL,NULL), | |
| 938 | +(22,'dxr','application/x-director',NULL,'',NULL,NULL), | |
| 939 | +(23,'eps','application/eps','image','Encapsulated Postscript',NULL,NULL), | |
| 940 | +(24,'etx','text/x-setext',NULL,'',NULL,NULL), | |
| 941 | +(25,'exe','application/octet-stream',NULL,'',NULL,NULL), | |
| 942 | +(26,'ez','application/andrew-inset',NULL,'',NULL,NULL), | |
| 943 | +(27,'gif','image/gif','image','GIF Image',NULL,NULL), | |
| 944 | +(28,'gtar','application/x-gtar','compressed','',NULL,NULL), | |
| 945 | +(29,'hdf','application/x-hdf',NULL,'',NULL,NULL), | |
| 946 | +(30,'hqx','application/mac-binhex40',NULL,'',NULL,NULL), | |
| 947 | +(31,'htm','text/html','html','HTML Webpage',NULL,NULL), | |
| 948 | +(32,'html','text/html','html','HTML Webpage',NULL,NULL), | |
| 949 | +(33,'ice','x-conference/x-cooltalk',NULL,'',NULL,NULL), | |
| 950 | +(34,'ief','image/ief','image','',NULL,NULL), | |
| 951 | +(35,'iges','model/iges',NULL,'',NULL,NULL), | |
| 952 | +(36,'igs','model/iges',NULL,'',NULL,NULL), | |
| 953 | +(37,'jpe','image/jpeg','image','JPEG Image',NULL,NULL), | |
| 954 | +(38,'jpeg','image/jpeg','image','JPEG Image',NULL,NULL), | |
| 955 | +(39,'jpg','image/jpeg','image','JPEG Image',NULL,NULL), | |
| 956 | +(40,'js','application/x-javascript','html','',NULL,NULL), | |
| 957 | +(41,'kar','audio/midi',NULL,'',NULL,NULL), | |
| 958 | +(42,'latex','application/x-latex',NULL,'',NULL,NULL), | |
| 959 | +(43,'lha','application/octet-stream',NULL,'',NULL,NULL), | |
| 960 | +(44,'lzh','application/octet-stream',NULL,'',NULL,NULL), | |
| 961 | +(45,'man','application/x-troff-man',NULL,'',NULL,NULL), | |
| 962 | +(46,'mdb','application/access','database','Access Database',NULL,NULL), | |
| 963 | +(47,'mdf','application/access','database','Access Database',NULL,NULL), | |
| 964 | +(48,'me','application/x-troff-me',NULL,'',NULL,NULL), | |
| 965 | +(49,'mesh','model/mesh',NULL,'',NULL,NULL), | |
| 966 | +(50,'mid','audio/midi',NULL,'',NULL,NULL), | |
| 967 | +(51,'midi','audio/midi',NULL,'',NULL,NULL), | |
| 968 | +(52,'mif','application/vnd.mif',NULL,'',NULL,NULL), | |
| 969 | +(53,'mov','video/quicktime',NULL,'Video File',NULL,NULL), | |
| 970 | +(54,'movie','video/x-sgi-movie',NULL,'Video File',NULL,NULL), | |
| 971 | +(55,'mp2','audio/mpeg',NULL,'',NULL,NULL), | |
| 972 | +(56,'mp3','audio/mpeg',NULL,'',NULL,NULL), | |
| 973 | +(57,'mpe','video/mpeg',NULL,'Video File',NULL,NULL), | |
| 974 | +(58,'mpeg','video/mpeg',NULL,'Video File',NULL,NULL), | |
| 975 | +(59,'mpg','video/mpeg',NULL,'Video File',NULL,NULL), | |
| 976 | +(60,'mpga','audio/mpeg',NULL,'',NULL,NULL), | |
| 977 | +(61,'mpp','application/vnd.ms-project','office','',NULL,NULL), | |
| 978 | +(62,'ms','application/x-troff-ms',NULL,'',NULL,NULL), | |
| 979 | +(63,'msh','model/mesh',NULL,'',NULL,NULL), | |
| 980 | +(64,'nc','application/x-netcdf',NULL,'',NULL,NULL), | |
| 981 | +(65,'oda','application/oda',NULL,'',NULL,NULL), | |
| 982 | +(66,'pbm','image/x-portable-bitmap','image','',NULL,NULL), | |
| 983 | +(67,'pdb','chemical/x-pdb',NULL,'',NULL,NULL), | |
| 984 | +(68,'pdf','application/pdf','pdf','Acrobat PDF',NULL,NULL), | |
| 985 | +(69,'pgm','image/x-portable-graymap','image','',NULL,NULL), | |
| 986 | +(70,'pgn','application/x-chess-pgn',NULL,'',NULL,NULL), | |
| 987 | +(71,'png','image/png','image','PNG Image',NULL,NULL), | |
| 988 | +(72,'pnm','image/x-portable-anymap','image','',NULL,NULL), | |
| 989 | +(73,'ppm','image/x-portable-pixmap','image','',NULL,NULL), | |
| 990 | +(74,'ppt','application/vnd.ms-powerpoint','office','Powerpoint Presentation',NULL,NULL), | |
| 991 | +(75,'ps','application/postscript','pdf','Postscript Document',NULL,NULL), | |
| 992 | +(76,'qt','video/quicktime',NULL,'Video File',NULL,NULL), | |
| 993 | +(77,'ra','audio/x-realaudio',NULL,'',NULL,NULL), | |
| 994 | +(78,'ram','audio/x-pn-realaudio',NULL,'',NULL,NULL), | |
| 995 | +(79,'ras','image/x-cmu-raster','image','',NULL,NULL), | |
| 996 | +(80,'rgb','image/x-rgb','image','',NULL,NULL), | |
| 997 | +(81,'rm','audio/x-pn-realaudio',NULL,'',NULL,NULL), | |
| 998 | +(82,'roff','application/x-troff',NULL,'',NULL,NULL), | |
| 999 | +(83,'rpm','audio/x-pn-realaudio-plugin',NULL,'',NULL,NULL), | |
| 1000 | +(84,'rtf','text/rtf',NULL,'',NULL,NULL), | |
| 1001 | +(85,'rtx','text/richtext',NULL,'',NULL,NULL), | |
| 1002 | +(86,'sgm','text/sgml',NULL,'',NULL,NULL), | |
| 1003 | +(87,'sgml','text/sgml',NULL,'',NULL,NULL), | |
| 1004 | +(88,'sh','application/x-sh',NULL,'',NULL,NULL), | |
| 1005 | +(89,'shar','application/x-shar',NULL,'',NULL,NULL), | |
| 1006 | +(90,'silo','model/mesh',NULL,'',NULL,NULL), | |
| 1007 | +(91,'sit','application/x-stuffit',NULL,'',NULL,NULL), | |
| 1008 | +(92,'skd','application/x-koan',NULL,'',NULL,NULL), | |
| 1009 | +(93,'skm','application/x-koan',NULL,'',NULL,NULL), | |
| 1010 | +(94,'skp','application/x-koan',NULL,'',NULL,NULL), | |
| 1011 | +(95,'skt','application/x-koan',NULL,'',NULL,NULL), | |
| 1012 | +(96,'smi','application/smil',NULL,'',NULL,NULL), | |
| 1013 | +(97,'smil','application/smil',NULL,'',NULL,NULL), | |
| 1014 | +(98,'snd','audio/basic',NULL,'',NULL,NULL), | |
| 1015 | +(99,'spl','application/x-futuresplash',NULL,'',NULL,NULL), | |
| 1016 | +(100,'src','application/x-wais-source',NULL,'',NULL,NULL), | |
| 1017 | +(101,'sv4cpio','application/x-sv4cpio',NULL,'',NULL,NULL), | |
| 1018 | +(102,'sv4crc','application/x-sv4crc',NULL,'',NULL,NULL), | |
| 1019 | +(103,'swf','application/x-shockwave-flash',NULL,'',NULL,NULL), | |
| 1020 | +(104,'t','application/x-troff',NULL,'',NULL,NULL), | |
| 1021 | +(105,'tar','application/x-tar','compressed','Tar or Compressed Tar File',NULL,NULL), | |
| 1022 | +(106,'tcl','application/x-tcl',NULL,'',NULL,NULL), | |
| 1023 | +(107,'tex','application/x-tex',NULL,'',NULL,NULL), | |
| 1024 | +(108,'texi','application/x-texinfo',NULL,'',NULL,NULL), | |
| 1025 | +(109,'texinfo','application/x-texinfo',NULL,'',NULL,NULL), | |
| 1026 | +(110,'tif','image/tiff','image','TIFF Image',NULL,NULL), | |
| 1027 | +(111,'tiff','image/tiff','image','TIFF Image',NULL,NULL), | |
| 1028 | +(112,'tr','application/x-troff',NULL,'',NULL,NULL), | |
| 1029 | +(113,'tsv','text/tab-separated-values',NULL,'',NULL,NULL), | |
| 1030 | +(114,'txt','text/plain','text','Plain Text',NULL,NULL), | |
| 1031 | +(115,'ustar','application/x-ustar',NULL,'',NULL,NULL), | |
| 1032 | +(116,'vcd','application/x-cdlink',NULL,'',NULL,NULL), | |
| 1033 | +(117,'vrml','model/vrml',NULL,'',NULL,NULL), | |
| 1034 | +(118,'vsd','application/vnd.visio','office','',NULL,NULL), | |
| 1035 | +(119,'wav','audio/x-wav',NULL,'',NULL,NULL), | |
| 1036 | +(120,'wrl','model/vrml',NULL,'',NULL,NULL), | |
| 1037 | +(121,'xbm','image/x-xbitmap','image','',NULL,NULL), | |
| 1038 | +(122,'xls','application/vnd.ms-excel','excel','Excel Spreadsheet',NULL,NULL), | |
| 1039 | +(123,'xml','text/xml',NULL,'',NULL,NULL), | |
| 1040 | +(124,'xpm','image/x-xpixmap','image','',NULL,NULL), | |
| 1041 | +(125,'xwd','image/x-xwindowdump','image','',NULL,NULL), | |
| 1042 | +(126,'xyz','chemical/x-pdb',NULL,'',NULL,NULL), | |
| 1043 | +(127,'zip','application/zip','compressed','ZIP Compressed File',NULL,NULL), | |
| 1044 | +(128,'gz','application/x-gzip','compressed','GZIP Compressed File',NULL,NULL), | |
| 1045 | +(129,'tgz','application/x-gzip','compressed','Tar or Compressed Tar File',NULL,NULL), | |
| 1046 | +(130,'sxw','application/vnd.sun.xml.writer','openoffice','OpenOffice.org Writer Document',NULL,NULL), | |
| 1047 | +(131,'stw','application/vnd.sun.xml.writer.template','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1048 | +(132,'sxc','application/vnd.sun.xml.calc','openoffice','OpenOffice.org Spreadsheet',NULL,NULL), | |
| 1049 | +(133,'stc','application/vnd.sun.xml.calc.template','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1050 | +(134,'sxd','application/vnd.sun.xml.draw','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1051 | +(135,'std','application/vnd.sun.xml.draw.template','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1052 | +(136,'sxi','application/vnd.sun.xml.impress','openoffice','OpenOffice.org Presentation',NULL,NULL), | |
| 1053 | +(137,'sti','application/vnd.sun.xml.impress.template','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1054 | +(138,'sxg','application/vnd.sun.xml.writer.global','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1055 | +(139,'sxm','application/vnd.sun.xml.math','openoffice','OpenOffice.org File',NULL,NULL), | |
| 1056 | +(140,'xlt','application/vnd.ms-excel','excel','Excel Template',NULL,NULL), | |
| 1057 | +(141,'dot','application/msword','word','Word Template',NULL,NULL), | |
| 1058 | +(142,'bz2','application/x-bzip2','compressed','BZIP2 Compressed File',NULL,NULL), | |
| 1059 | +(143,'diff','text/plain','text','Source Diff File',NULL,NULL), | |
| 1060 | +(144,'patch','text/plain','text','Patch File',NULL,NULL), | |
| 1061 | +(145,'odt','application/vnd.oasis.opendocument.text','opendocument','OpenDocument Text',NULL,NULL), | |
| 1062 | +(146,'ott','application/vnd.oasis.opendocument.text-template','opendocument','OpenDocument Text Template',NULL,NULL), | |
| 1063 | +(147,'oth','application/vnd.oasis.opendocument.text-web','opendocument','HTML Document Template',NULL,NULL), | |
| 1064 | +(148,'odm','application/vnd.oasis.opendocument.text-master','opendocument','OpenDocument Master Document',NULL,NULL), | |
| 1065 | +(149,'odg','application/vnd.oasis.opendocument.graphics','opendocument','OpenDocument Drawing',NULL,NULL), | |
| 1066 | +(150,'otg','application/vnd.oasis.opendocument.graphics-template','opendocument','OpenDocument Drawing Template',NULL,NULL), | |
| 1067 | +(151,'odp','application/vnd.oasis.opendocument.presentation','opendocument','OpenDocument Presentation',NULL,NULL), | |
| 1068 | +(152,'otp','application/vnd.oasis.opendocument.presentation-template','opendocument','OpenDocument Presentation Template',NULL,NULL), | |
| 1069 | +(153,'ods','application/vnd.oasis.opendocument.spreadsheet','opendocument','OpenDocument Spreadsheet',NULL,NULL), | |
| 1070 | +(154,'ots','application/vnd.oasis.opendocument.spreadsheet-template','opendocument','OpenDocument Spreadsheet Template',NULL,NULL), | |
| 1071 | +(155,'odc','application/vnd.oasis.opendocument.chart','opendocument','OpenDocument Chart',NULL,NULL), | |
| 1072 | +(156,'odf','application/vnd.oasis.opendocument.formula','opendocument','OpenDocument Formula',NULL,NULL), | |
| 1073 | +(157,'odb','application/vnd.oasis.opendocument.database','opendocument','OpenDocument Database',NULL,NULL), | |
| 1074 | +(158,'odi','application/vnd.oasis.opendocument.image','opendocument','OpenDocument Image',NULL,NULL), | |
| 1075 | +(159,'zip','application/x-zip','compressed','ZIP Compressed File',NULL,NULL), | |
| 1076 | +(160,'csv','text/csv','excel','Comma delimited spreadsheet',NULL,NULL), | |
| 1077 | +(161,'msi','application/x-msi','compressed','MSI Installer file',NULL,NULL), | |
| 1078 | +(162,'pps','application/vnd.ms-powerpoint','office','Powerpoint Presentation',NULL,NULL), | |
| 1079 | +(163,'docx','application/vnd.openxmlformats-officedocument.wordprocessingml.document','word','Word Document',NULL,NULL), | |
| 1080 | +(164,'dotx','application/vnd.openxmlformats-officedocument.wordprocessingml.template','word','Word Document',NULL,NULL), | |
| 1081 | +(165,'potx','application/vnd.openxmlformats-officedocument.presentationml.template','office','Powerpoint Presentation',NULL,NULL), | |
| 1082 | +(166,'ppsx','application/vnd.openxmlformats-officedocument.presentationml.slideshow','office','Powerpoint Presentation',NULL,NULL), | |
| 1083 | +(167,'pptx','application/vnd.openxmlformats-officedocument.presentationml.presentation','office','Powerpoint Presentation',NULL,NULL), | |
| 1084 | +(168,'xlsx','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','excel','Excel Spreadsheet',NULL,NULL), | |
| 1085 | +(169,'xltx','application/vnd.openxmlformats-officedocument.spreadsheetml.template','excel','Excel Spreadsheet',NULL,NULL), | |
| 1086 | +(170,'msg','application/vnd.ms-outlook','office','Outlook Item',NULL,NULL), | |
| 1087 | +(171,'db','application/db','','Misc DB file',NULL,NULL); | |
| 1088 | +/*!40000 ALTER TABLE `mime_types` ENABLE KEYS */; | |
| 1089 | +UNLOCK TABLES; | |
| 1090 | + | |
| 1091 | +-- | |
| 1092 | +-- Dumping data for table `news` | |
| 1093 | +-- | |
| 1094 | + | |
| 1095 | +LOCK TABLES `news` WRITE; | |
| 1096 | +/*!40000 ALTER TABLE `news` DISABLE KEYS */; | |
| 1097 | +/*!40000 ALTER TABLE `news` ENABLE KEYS */; | |
| 1098 | +UNLOCK TABLES; | |
| 1099 | + | |
| 1100 | +-- | |
| 1101 | +-- Dumping data for table `notifications` | |
| 1102 | +-- | |
| 1103 | + | |
| 1104 | +LOCK TABLES `notifications` WRITE; | |
| 1105 | +/*!40000 ALTER TABLE `notifications` DISABLE KEYS */; | |
| 1106 | +/*!40000 ALTER TABLE `notifications` ENABLE KEYS */; | |
| 1107 | +UNLOCK TABLES; | |
| 1108 | + | |
| 1109 | +-- | |
| 1110 | +-- Dumping data for table `organisations_lookup` | |
| 1111 | +-- | |
| 1112 | + | |
| 1113 | +LOCK TABLES `organisations_lookup` WRITE; | |
| 1114 | +/*!40000 ALTER TABLE `organisations_lookup` DISABLE KEYS */; | |
| 1115 | +INSERT INTO `organisations_lookup` VALUES | |
| 1116 | +(1,'Default Organisation'); | |
| 1117 | +/*!40000 ALTER TABLE `organisations_lookup` ENABLE KEYS */; | |
| 1118 | +UNLOCK TABLES; | |
| 1119 | + | |
| 1120 | +-- | |
| 1121 | +-- Dumping data for table `permission_assignments` | |
| 1122 | +-- | |
| 1123 | + | |
| 1124 | +LOCK TABLES `permission_assignments` WRITE; | |
| 1125 | +/*!40000 ALTER TABLE `permission_assignments` DISABLE KEYS */; | |
| 1126 | +INSERT INTO `permission_assignments` VALUES | |
| 1127 | +(1,1,1,2), | |
| 1128 | +(2,2,1,2), | |
| 1129 | +(3,3,1,2), | |
| 1130 | +(4,4,1,2), | |
| 1131 | +(5,5,1,2), | |
| 1132 | +(6,6,1,2), | |
| 1133 | +(7,7,1,2), | |
| 1134 | +(8,8,1,2); | |
| 1135 | +/*!40000 ALTER TABLE `permission_assignments` ENABLE KEYS */; | |
| 1136 | +UNLOCK TABLES; | |
| 1137 | + | |
| 1138 | +-- | |
| 1139 | +-- Dumping data for table `permission_descriptor_groups` | |
| 1140 | +-- | |
| 1141 | + | |
| 1142 | +LOCK TABLES `permission_descriptor_groups` WRITE; | |
| 1143 | +/*!40000 ALTER TABLE `permission_descriptor_groups` DISABLE KEYS */; | |
| 1144 | +INSERT INTO `permission_descriptor_groups` VALUES | |
| 1145 | +(2,1); | |
| 1146 | +/*!40000 ALTER TABLE `permission_descriptor_groups` ENABLE KEYS */; | |
| 1147 | +UNLOCK TABLES; | |
| 1148 | + | |
| 1149 | +-- | |
| 1150 | +-- Dumping data for table `permission_descriptor_roles` | |
| 1151 | +-- | |
| 1152 | + | |
| 1153 | +LOCK TABLES `permission_descriptor_roles` WRITE; | |
| 1154 | +/*!40000 ALTER TABLE `permission_descriptor_roles` DISABLE KEYS */; | |
| 1155 | +/*!40000 ALTER TABLE `permission_descriptor_roles` ENABLE KEYS */; | |
| 1156 | +UNLOCK TABLES; | |
| 1157 | + | |
| 1158 | +-- | |
| 1159 | +-- Dumping data for table `permission_descriptor_users` | |
| 1160 | +-- | |
| 1161 | + | |
| 1162 | +LOCK TABLES `permission_descriptor_users` WRITE; | |
| 1163 | +/*!40000 ALTER TABLE `permission_descriptor_users` DISABLE KEYS */; | |
| 1164 | +/*!40000 ALTER TABLE `permission_descriptor_users` ENABLE KEYS */; | |
| 1165 | +UNLOCK TABLES; | |
| 1166 | + | |
| 1167 | +-- | |
| 1168 | +-- Dumping data for table `permission_descriptors` | |
| 1169 | +-- | |
| 1170 | + | |
| 1171 | +LOCK TABLES `permission_descriptors` WRITE; | |
| 1172 | +/*!40000 ALTER TABLE `permission_descriptors` DISABLE KEYS */; | |
| 1173 | +INSERT INTO `permission_descriptors` VALUES | |
| 1174 | +(1,'d41d8cd98f00b204e9800998ecf8427e',''), | |
| 1175 | +(2,'a689e7c4dc953de8d93b1ed4843b2dfe','group(1)'); | |
| 1176 | +/*!40000 ALTER TABLE `permission_descriptors` ENABLE KEYS */; | |
| 1177 | +UNLOCK TABLES; | |
| 1178 | + | |
| 1179 | +-- | |
| 1180 | +-- Dumping data for table `permission_dynamic_assignments` | |
| 1181 | +-- | |
| 1182 | + | |
| 1183 | +LOCK TABLES `permission_dynamic_assignments` WRITE; | |
| 1184 | +/*!40000 ALTER TABLE `permission_dynamic_assignments` DISABLE KEYS */; | |
| 1185 | +/*!40000 ALTER TABLE `permission_dynamic_assignments` ENABLE KEYS */; | |
| 1186 | +UNLOCK TABLES; | |
| 1187 | + | |
| 1188 | +-- | |
| 1189 | +-- Dumping data for table `permission_dynamic_conditions` | |
| 1190 | +-- | |
| 1191 | + | |
| 1192 | +LOCK TABLES `permission_dynamic_conditions` WRITE; | |
| 1193 | +/*!40000 ALTER TABLE `permission_dynamic_conditions` DISABLE KEYS */; | |
| 1194 | +/*!40000 ALTER TABLE `permission_dynamic_conditions` ENABLE KEYS */; | |
| 1195 | +UNLOCK TABLES; | |
| 1196 | + | |
| 1197 | +-- | |
| 1198 | +-- Dumping data for table `permission_lookup_assignments` | |
| 1199 | +-- | |
| 1200 | + | |
| 1201 | +LOCK TABLES `permission_lookup_assignments` WRITE; | |
| 1202 | +/*!40000 ALTER TABLE `permission_lookup_assignments` DISABLE KEYS */; | |
| 1203 | +INSERT INTO `permission_lookup_assignments` VALUES | |
| 1204 | +(1,1,1,1), | |
| 1205 | +(2,2,1,1), | |
| 1206 | +(3,3,1,1), | |
| 1207 | +(4,1,2,2), | |
| 1208 | +(5,2,2,2), | |
| 1209 | +(6,3,2,2), | |
| 1210 | +(7,1,3,2), | |
| 1211 | +(8,2,3,2), | |
| 1212 | +(9,3,3,2), | |
| 1213 | +(10,4,3,2), | |
| 1214 | +(11,5,3,2), | |
| 1215 | +(12,1,4,2), | |
| 1216 | +(13,2,4,2), | |
| 1217 | +(14,3,4,2), | |
| 1218 | +(15,4,4,2), | |
| 1219 | +(16,5,4,2), | |
| 1220 | +(17,6,4,2), | |
| 1221 | +(18,1,5,2), | |
| 1222 | +(19,2,5,2), | |
| 1223 | +(20,3,5,2), | |
| 1224 | +(21,4,5,2), | |
| 1225 | +(22,5,5,2), | |
| 1226 | +(23,6,5,2), | |
| 1227 | +(24,7,5,2); | |
| 1228 | +/*!40000 ALTER TABLE `permission_lookup_assignments` ENABLE KEYS */; | |
| 1229 | +UNLOCK TABLES; | |
| 1230 | + | |
| 1231 | +-- | |
| 1232 | +-- Dumping data for table `permission_lookups` | |
| 1233 | +-- | |
| 1234 | + | |
| 1235 | +LOCK TABLES `permission_lookups` WRITE; | |
| 1236 | +/*!40000 ALTER TABLE `permission_lookups` DISABLE KEYS */; | |
| 1237 | +INSERT INTO `permission_lookups` VALUES | |
| 1238 | +(1), | |
| 1239 | +(2), | |
| 1240 | +(3), | |
| 1241 | +(4), | |
| 1242 | +(5); | |
| 1243 | +/*!40000 ALTER TABLE `permission_lookups` ENABLE KEYS */; | |
| 1244 | +UNLOCK TABLES; | |
| 1245 | + | |
| 1246 | +-- | |
| 1247 | +-- Dumping data for table `permission_objects` | |
| 1248 | +-- | |
| 1249 | + | |
| 1250 | +LOCK TABLES `permission_objects` WRITE; | |
| 1251 | +/*!40000 ALTER TABLE `permission_objects` DISABLE KEYS */; | |
| 1252 | +INSERT INTO `permission_objects` VALUES | |
| 1253 | +(1); | |
| 1254 | +/*!40000 ALTER TABLE `permission_objects` ENABLE KEYS */; | |
| 1255 | +UNLOCK TABLES; | |
| 1256 | + | |
| 1257 | +-- | |
| 1258 | +-- Dumping data for table `permissions` | |
| 1259 | +-- | |
| 1260 | + | |
| 1261 | +LOCK TABLES `permissions` WRITE; | |
| 1262 | +/*!40000 ALTER TABLE `permissions` DISABLE KEYS */; | |
| 1263 | +INSERT INTO `permissions` VALUES | |
| 1264 | +(1,'ktcore.permissions.read','Read',1), | |
| 1265 | +(2,'ktcore.permissions.write','Write',1), | |
| 1266 | +(3,'ktcore.permissions.addFolder','Add Folder',1), | |
| 1267 | +(4,'ktcore.permissions.security','Manage security',1), | |
| 1268 | +(5,'ktcore.permissions.delete','Delete',1), | |
| 1269 | +(6,'ktcore.permissions.workflow','Manage workflow',1), | |
| 1270 | +(7,'ktcore.permissions.folder_details','Folder Details',1), | |
| 1271 | +(8,'ktcore.permissions.folder_rename','Rename Folder',1); | |
| 1272 | +/*!40000 ALTER TABLE `permissions` ENABLE KEYS */; | |
| 1273 | +UNLOCK TABLES; | |
| 1274 | + | |
| 1275 | +-- | |
| 1276 | +-- Dumping data for table `plugin_helper` | |
| 1277 | +-- | |
| 1278 | + | |
| 1279 | +LOCK TABLES `plugin_helper` WRITE; | |
| 1280 | +/*!40000 ALTER TABLE `plugin_helper` DISABLE KEYS */; | |
| 1281 | +/*!40000 ALTER TABLE `plugin_helper` ENABLE KEYS */; | |
| 1282 | +UNLOCK TABLES; | |
| 1283 | + | |
| 1284 | +-- | |
| 1285 | +-- Dumping data for table `plugin_rss` | |
| 1286 | +-- | |
| 1287 | + | |
| 1288 | +LOCK TABLES `plugin_rss` WRITE; | |
| 1289 | +/*!40000 ALTER TABLE `plugin_rss` DISABLE KEYS */; | |
| 1290 | +/*!40000 ALTER TABLE `plugin_rss` ENABLE KEYS */; | |
| 1291 | +UNLOCK TABLES; | |
| 1292 | + | |
| 1293 | +-- | |
| 1294 | +-- Dumping data for table `plugins` | |
| 1295 | +-- | |
| 1296 | + | |
| 1297 | +LOCK TABLES `plugins` WRITE; | |
| 1298 | +/*!40000 ALTER TABLE `plugins` DISABLE KEYS */; | |
| 1299 | +INSERT INTO `plugins` VALUES | |
| 1300 | +(1,'ktcore.tagcloud.plugin','plugins/tagcloud/TagCloudPlugin.php',0,0,NULL,0,'Tag Cloud Plugin',0), | |
| 1301 | +(2,'ktcore.rss.plugin','plugins/rssplugin/RSSPlugin.php',0,0,NULL,0,'RSS Plugin',0), | |
| 1302 | +(3,'ktcore.language.plugin','plugins/ktcore/KTCoreLanguagePlugin.php',0,0,NULL,0,'Core Language Support',-75), | |
| 1303 | +(4,'ktcore.plugin','plugins/ktcore/KTCorePlugin.php',0,0,NULL,0,'Core Application Functionality',-25), | |
| 1304 | +(5,'ktstandard.ldapauthentication.plugin','plugins/ktstandard/KTLDAPAuthenticationPlugin.php',0,0,NULL,0,'LDAP Authentication Plugin',0), | |
| 1305 | +(6,'ktstandard.pdf.plugin','plugins/ktstandard/PDFGeneratorPlugin.php',0,0,NULL,0,'PDF Generator Plugin',0), | |
| 1306 | +(7,'ktstandard.bulkexport.plugin','plugins/ktstandard/KTBulkExportPlugin.php',0,0,NULL,0,'Bulk Export Plugin',0), | |
| 1307 | +(8,'ktstandard.immutableaction.plugin','plugins/ktstandard/ImmutableActionPlugin.php',0,0,NULL,0,'Immutable action plugin',0), | |
| 1308 | +(9,'ktstandard.subscriptions.plugin','plugins/ktstandard/KTSubscriptions.php',0,0,NULL,0,'Subscription Plugin',0), | |
| 1309 | +(10,'ktstandard.discussion.plugin','plugins/ktstandard/KTDiscussion.php',0,0,NULL,0,'Document Discussions Plugin',0), | |
| 1310 | +(11,'ktstandard.email.plugin','plugins/ktstandard/KTEmail.php',0,0,NULL,0,'Email Plugin',0), | |
| 1311 | +(12,'ktstandard.indexer.plugin','plugins/ktstandard/KTIndexer.php',0,0,NULL,0,'Full-text Content Indexing',0), | |
| 1312 | +(13,'ktstandard.documentlinks.plugin','plugins/ktstandard/KTDocumentLinks.php',0,0,NULL,0,'Inter-document linking',0), | |
| 1313 | +(14,'ktstandard.workflowassociation.plugin','plugins/ktstandard/KTWorkflowAssociation.php',0,0,NULL,0,'Workflow Association Plugin',0), | |
| 1314 | +(15,'ktstandard.workflowassociation.documenttype.plugin','plugins/ktstandard/workflow/TypeAssociator.php',0,0,NULL,0,'Workflow allocation by document type',0), | |
| 1315 | +(16,'ktstandard.workflowassociation.folder.plugin','plugins/ktstandard/workflow/FolderAssociator.php',0,0,NULL,0,'Workflow allocation by location',0), | |
| 1316 | +(17,'ktstandard.disclaimers.plugin','plugins/ktstandard/KTDisclaimers.php',0,0,NULL,0,'Disclaimers Plugin',0), | |
| 1317 | +(18,'nbm.browseable.plugin','plugins/browseabledashlet/BrowseableDashletPlugin.php',0,0,NULL,0,'Orphaned Folders Plugin',0), | |
| 1318 | +(19,'ktstandard.ktwebdavdashlet.plugin','plugins/ktstandard/KTWebDAVDashletPlugin.php',0,0,NULL,0,'WebDAV Dashlet Plugin',0), | |
| 1319 | +(20,'ktcore.housekeeper.plugin','plugins/housekeeper/HouseKeeperPlugin.php',0,0,NULL,0,'Housekeeper',0), | |
| 1320 | +(21,'ktstandard.preview.plugin','plugins/ktstandard/documentpreview/documentPreviewPlugin.php',0,0,NULL,0,'Property Preview Plugin',0), | |
| 1321 | +(22,'ktlive.mydropdocuments.plugin','plugins/MyDropDocumentsPlugin/MyDropDocumentsPlugin.php',0,0,NULL,0,'Drop Documents Plugin',0); | |
| 1322 | +/*!40000 ALTER TABLE `plugins` ENABLE KEYS */; | |
| 1323 | +UNLOCK TABLES; | |
| 1324 | + | |
| 1325 | +-- | |
| 1326 | +-- Dumping data for table `role_allocations` | |
| 1327 | +-- | |
| 1328 | + | |
| 1329 | +LOCK TABLES `role_allocations` WRITE; | |
| 1330 | +/*!40000 ALTER TABLE `role_allocations` DISABLE KEYS */; | |
| 1331 | +/*!40000 ALTER TABLE `role_allocations` ENABLE KEYS */; | |
| 1332 | +UNLOCK TABLES; | |
| 1333 | + | |
| 1334 | +-- | |
| 1335 | +-- Dumping data for table `roles` | |
| 1336 | +-- | |
| 1337 | + | |
| 1338 | +LOCK TABLES `roles` WRITE; | |
| 1339 | +/*!40000 ALTER TABLE `roles` DISABLE KEYS */; | |
| 1340 | +INSERT INTO `roles` VALUES | |
| 1341 | +(-4,'Authenticated Users'), | |
| 1342 | +(4,'Creator'), | |
| 1343 | +(-3,'Everyone'), | |
| 1344 | +(-2,'Owner'), | |
| 1345 | +(2,'Publisher'), | |
| 1346 | +(3,'Reviewer'); | |
| 1347 | +/*!40000 ALTER TABLE `roles` ENABLE KEYS */; | |
| 1348 | +UNLOCK TABLES; | |
| 1349 | + | |
| 1350 | +-- | |
| 1351 | +-- Dumping data for table `saved_searches` | |
| 1352 | +-- | |
| 1353 | + | |
| 1354 | +LOCK TABLES `saved_searches` WRITE; | |
| 1355 | +/*!40000 ALTER TABLE `saved_searches` DISABLE KEYS */; | |
| 1356 | +/*!40000 ALTER TABLE `saved_searches` ENABLE KEYS */; | |
| 1357 | +UNLOCK TABLES; | |
| 1358 | + | |
| 1359 | +-- | |
| 1360 | +-- Dumping data for table `scheduler_tasks` | |
| 1361 | +-- | |
| 1362 | + | |
| 1363 | +LOCK TABLES `scheduler_tasks` WRITE; | |
| 1364 | +/*!40000 ALTER TABLE `scheduler_tasks` DISABLE KEYS */; | |
| 1365 | +INSERT INTO `scheduler_tasks` VALUES | |
| 1366 | +(1,'Document Processor','search2/bin/cronDocumentProcessor.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'system'), | |
| 1367 | +(2,'Index Migration','search2/bin/cronMigration.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'system'), | |
| 1368 | +(3,'Index Optimization','search2/bin/cronOptimize.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'system'), | |
| 1369 | +(4,'Periodic Document Expunge','bin/expungeall.php','',0,'weekly','2007-10-01 00:00:00',NULL,0,'disabled'), | |
| 1370 | +(5,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01 00:00:00',NULL,0,'disabled'), | |
| 1371 | +(6,'OpenOffice test','bin/checkopenoffice.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), | |
| 1372 | +(7,'Cleanup Temporary Directory','search2/bin/cronCleanup.php','',0,'1min','2007-10-01 00:00:00',NULL,0,'enabled'), | |
| 1373 | +(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'enabled'), | |
| 1374 | +(9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'), | |
| 1375 | +(10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'), | |
| 1376 | +(11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'); | |
| 1377 | + | |
| 1378 | +/*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */; | |
| 1379 | +UNLOCK TABLES; | |
| 1380 | + | |
| 1381 | +-- | |
| 1382 | +-- Dumping data for table `search_document_user_link` | |
| 1383 | +-- | |
| 1384 | + | |
| 1385 | +LOCK TABLES `search_document_user_link` WRITE; | |
| 1386 | +/*!40000 ALTER TABLE `search_document_user_link` DISABLE KEYS */; | |
| 1387 | +/*!40000 ALTER TABLE `search_document_user_link` ENABLE KEYS */; | |
| 1388 | +UNLOCK TABLES; | |
| 1389 | + | |
| 1390 | +-- | |
| 1391 | +-- Dumping data for table `search_ranking` | |
| 1392 | +-- | |
| 1393 | + | |
| 1394 | +LOCK TABLES `search_ranking` WRITE; | |
| 1395 | +/*!40000 ALTER TABLE `search_ranking` DISABLE KEYS */; | |
| 1396 | +INSERT INTO `search_ranking` VALUES | |
| 1397 | +('Discussion','',150,'S'), | |
| 1398 | +('documents','checked_out_user_id',1,'T'), | |
| 1399 | +('documents','created',1,'T'), | |
| 1400 | +('documents','creator_id',1,'T'), | |
| 1401 | +('documents','id',1,'T'), | |
| 1402 | +('documents','immutable',1,'T'), | |
| 1403 | +('documents','is_checked_out',1,'T'), | |
| 1404 | +('documents','modified',1,'T'), | |
| 1405 | +('documents','modified_user_id',1,'T'), | |
| 1406 | +('documents','title',300,'T'), | |
| 1407 | +('DocumentText','',100,'S'), | |
| 1408 | +('document_content_version','filename',10,'T'), | |
| 1409 | +('document_content_version','filesize',1,'T'), | |
| 1410 | +('document_fields_link','value',1,'T'), | |
| 1411 | +('document_metadata_version','document_type_id',1,'T'), | |
| 1412 | +('document_metadata_version','name',300,'T'), | |
| 1413 | +('document_metadata_version','workflow_id',1,'T'), | |
| 1414 | +('document_metadata_version','workflow_state_id',1,'T'), | |
| 1415 | +('tag_words','tag',1,'T'); | |
| 1416 | +/*!40000 ALTER TABLE `search_ranking` ENABLE KEYS */; | |
| 1417 | +UNLOCK TABLES; | |
| 1418 | + | |
| 1419 | +-- | |
| 1420 | +-- Dumping data for table `search_saved` | |
| 1421 | +-- | |
| 1422 | + | |
| 1423 | +LOCK TABLES `search_saved` WRITE; | |
| 1424 | +/*!40000 ALTER TABLE `search_saved` DISABLE KEYS */; | |
| 1425 | +/*!40000 ALTER TABLE `search_saved` ENABLE KEYS */; | |
| 1426 | +UNLOCK TABLES; | |
| 1427 | + | |
| 1428 | +-- | |
| 1429 | +-- Dumping data for table `search_saved_events` | |
| 1430 | +-- | |
| 1431 | + | |
| 1432 | +LOCK TABLES `search_saved_events` WRITE; | |
| 1433 | +/*!40000 ALTER TABLE `search_saved_events` DISABLE KEYS */; | |
| 1434 | +/*!40000 ALTER TABLE `search_saved_events` ENABLE KEYS */; | |
| 1435 | +UNLOCK TABLES; | |
| 1436 | + | |
| 1437 | +-- | |
| 1438 | +-- Dumping data for table `status_lookup` | |
| 1439 | +-- | |
| 1440 | + | |
| 1441 | +LOCK TABLES `status_lookup` WRITE; | |
| 1442 | +/*!40000 ALTER TABLE `status_lookup` DISABLE KEYS */; | |
| 1443 | +INSERT INTO `status_lookup` VALUES | |
| 1444 | +(1,'Live'), | |
| 1445 | +(2,'Published'), | |
| 1446 | +(3,'Deleted'), | |
| 1447 | +(4,'Archived'), | |
| 1448 | +(5,'Incomplete'), | |
| 1449 | +(6,'Version Deleted'); | |
| 1450 | +/*!40000 ALTER TABLE `status_lookup` ENABLE KEYS */; | |
| 1451 | +UNLOCK TABLES; | |
| 1452 | + | |
| 1453 | +-- | |
| 1454 | +-- Dumping data for table `system_settings` | |
| 1455 | +-- | |
| 1456 | + | |
| 1457 | +LOCK TABLES `system_settings` WRITE; | |
| 1458 | +/*!40000 ALTER TABLE `system_settings` DISABLE KEYS */; | |
| 1459 | +INSERT INTO `system_settings` VALUES | |
| 1460 | +(1,'lastIndexUpdate','0'), | |
| 1461 | +(2,'knowledgeTreeVersion','3.6.1'), | |
| 1462 | +(3,'databaseVersion','3.6.1'), | |
| 1463 | +(4,'server_name','127.0.0.1'); | |
| 1464 | +/*!40000 ALTER TABLE `system_settings` ENABLE KEYS */; | |
| 1465 | +UNLOCK TABLES; | |
| 1466 | + | |
| 1467 | +-- | |
| 1468 | +-- Dumping data for table `tag_words` | |
| 1469 | +-- | |
| 1470 | + | |
| 1471 | +LOCK TABLES `tag_words` WRITE; | |
| 1472 | +/*!40000 ALTER TABLE `tag_words` DISABLE KEYS */; | |
| 1473 | +/*!40000 ALTER TABLE `tag_words` ENABLE KEYS */; | |
| 1474 | +UNLOCK TABLES; | |
| 1475 | + | |
| 1476 | +-- | |
| 1477 | +-- Dumping data for table `time_period` | |
| 1478 | +-- | |
| 1479 | + | |
| 1480 | +LOCK TABLES `time_period` WRITE; | |
| 1481 | +/*!40000 ALTER TABLE `time_period` DISABLE KEYS */; | |
| 1482 | +/*!40000 ALTER TABLE `time_period` ENABLE KEYS */; | |
| 1483 | +UNLOCK TABLES; | |
| 1484 | + | |
| 1485 | +-- | |
| 1486 | +-- Dumping data for table `time_unit_lookup` | |
| 1487 | +-- | |
| 1488 | + | |
| 1489 | +LOCK TABLES `time_unit_lookup` WRITE; | |
| 1490 | +/*!40000 ALTER TABLE `time_unit_lookup` DISABLE KEYS */; | |
| 1491 | +INSERT INTO `time_unit_lookup` VALUES | |
| 1492 | +(1,'Years'), | |
| 1493 | +(2,'Months'), | |
| 1494 | +(3,'Days'); | |
| 1495 | +/*!40000 ALTER TABLE `time_unit_lookup` ENABLE KEYS */; | |
| 1496 | +UNLOCK TABLES; | |
| 1497 | + | |
| 1498 | +-- | |
| 1499 | +-- Dumping data for table `trigger_selection` | |
| 1500 | +-- | |
| 1501 | + | |
| 1502 | +LOCK TABLES `trigger_selection` WRITE; | |
| 1503 | +/*!40000 ALTER TABLE `trigger_selection` DISABLE KEYS */; | |
| 1504 | +/*!40000 ALTER TABLE `trigger_selection` ENABLE KEYS */; | |
| 1505 | +UNLOCK TABLES; | |
| 1506 | + | |
| 1507 | +-- | |
| 1508 | +-- Dumping data for table `type_workflow_map` | |
| 1509 | +-- | |
| 1510 | + | |
| 1511 | +LOCK TABLES `type_workflow_map` WRITE; | |
| 1512 | +/*!40000 ALTER TABLE `type_workflow_map` DISABLE KEYS */; | |
| 1513 | +/*!40000 ALTER TABLE `type_workflow_map` ENABLE KEYS */; | |
| 1514 | +UNLOCK TABLES; | |
| 1515 | + | |
| 1516 | +-- | |
| 1517 | +-- Dumping data for table `units_lookup` | |
| 1518 | +-- | |
| 1519 | + | |
| 1520 | +LOCK TABLES `units_lookup` WRITE; | |
| 1521 | +/*!40000 ALTER TABLE `units_lookup` DISABLE KEYS */; | |
| 1522 | +/*!40000 ALTER TABLE `units_lookup` ENABLE KEYS */; | |
| 1523 | +UNLOCK TABLES; | |
| 1524 | + | |
| 1525 | +-- | |
| 1526 | +-- Dumping data for table `units_organisations_link` | |
| 1527 | +-- | |
| 1528 | + | |
| 1529 | +LOCK TABLES `units_organisations_link` WRITE; | |
| 1530 | +/*!40000 ALTER TABLE `units_organisations_link` DISABLE KEYS */; | |
| 1531 | +/*!40000 ALTER TABLE `units_organisations_link` ENABLE KEYS */; | |
| 1532 | +UNLOCK TABLES; | |
| 1533 | + | |
| 1534 | +-- | |
| 1535 | +-- Dumping data for table `upgrades` | |
| 1536 | +-- | |
| 1537 | + | |
| 1538 | +LOCK TABLES `upgrades` WRITE; | |
| 1539 | +/*!40000 ALTER TABLE `upgrades` DISABLE KEYS */; | |
| 1540 | +INSERT INTO `upgrades` VALUES | |
| 1541 | +(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'), | |
| 1542 | +(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'), | |
| 1543 | +(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'), | |
| 1544 | +(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'), | |
| 1545 | +(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'), | |
| 1546 | +(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'), | |
| 1547 | +(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'), | |
| 1548 | +(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'), | |
| 1549 | +(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'), | |
| 1550 | +(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'), | |
| 1551 | +(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'), | |
| 1552 | +(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'), | |
| 1553 | +(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'), | |
| 1554 | +(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'), | |
| 1555 | +(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'), | |
| 1556 | +(16,'sql*2.0.9*0*2.0.9/storagemanager.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1557 | +(17,'sql*2.0.9*0*2.0.9/metadata_tree.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1558 | +(18,'sql*2.0.9*0*2.0.9/document_incomplete.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1559 | +(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'), | |
| 1560 | +(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'), | |
| 1561 | +(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'), | |
| 1562 | +(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'), | |
| 1563 | +(24,'sql*2.99.2*0*2.99.2/saved_searches.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1564 | +(25,'sql*2.99.2*0*2.99.2/transactions.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1565 | +(26,'sql*2.99.2*0*2.99.2/field_mandatory.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1566 | +(27,'sql*2.99.2*0*2.99.2/fieldsets_system.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1567 | +(28,'sql*2.99.2*0*2.99.2/permission_by_user_and_roles.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1568 | +(29,'sql*2.99.2*0*2.99.2/disabled_metadata.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1569 | +(30,'sql*2.99.2*0*2.99.2/searchable_text.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1570 | +(31,'sql*2.99.2*0*2.99.2/workflow.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1571 | +(32,'sql*2.99.2*1*2.99.2/1-constraints.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1572 | +(33,'sql*2.99.3*0*2.99.3/notifications.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1573 | +(34,'sql*2.99.3*0*2.99.3/last_modified_user.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1574 | +(35,'sql*2.99.3*0*2.99.3/authentication_sources.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1575 | +(36,'sql*2.99.3*0*2.99.3/document_fields_constraints.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1576 | +(37,'sql*2.99.5*0*2.99.5/dashlet_disabling.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1577 | +(38,'sql*2.99.5*0*2.99.5/role_allocations.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1578 | +(39,'sql*2.99.5*0*2.99.5/transaction_namespaces.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1579 | +(40,'sql*2.99.5*0*2.99.5/fieldset_field_descriptions.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1580 | +(41,'sql*2.99.5*0*2.99.5/role_changes.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1581 | +(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'), | |
| 1582 | +(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'), | |
| 1583 | +(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'), | |
| 1584 | +(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'), | |
| 1585 | +(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'), | |
| 1586 | +(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'), | |
| 1587 | +(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'), | |
| 1588 | +(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'), | |
| 1589 | +(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'), | |
| 1590 | +(51,'sql*2.99.7*0*2.99.7/discussion.sql','','0000-00-00 00:00:00',1,NULL), | |
| 1591 | +(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'), | |
| 1592 | +(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'), | |
| 1593 | +(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'), | |
| 1594 | +(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'), | |
| 1595 | +(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'), | |
| 1596 | +(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'), | |
| 1597 | +(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'), | |
| 1598 | +(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'), | |
| 1599 | +(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'), | |
| 1600 | +(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'), | |
| 1601 | +(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'), | |
| 1602 | +(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'), | |
| 1603 | +(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'), | |
| 1604 | +(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'), | |
| 1605 | +(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'), | |
| 1606 | +(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'), | |
| 1607 | +(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'), | |
| 1608 | +(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'), | |
| 1609 | +(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'), | |
| 1610 | +(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'), | |
| 1611 | +(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'), | |
| 1612 | +(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'), | |
| 1613 | +(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'), | |
| 1614 | +(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'), | |
| 1615 | +(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'), | |
| 1616 | +(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'), | |
| 1617 | +(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'), | |
| 1618 | +(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'), | |
| 1619 | +(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'), | |
| 1620 | +(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'), | |
| 1621 | +(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'), | |
| 1622 | +(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'), | |
| 1623 | +(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'), | |
| 1624 | +(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'), | |
| 1625 | +(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'), | |
| 1626 | +(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'), | |
| 1627 | +(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'), | |
| 1628 | +(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'), | |
| 1629 | +(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'), | |
| 1630 | +(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'), | |
| 1631 | +(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'), | |
| 1632 | +(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'), | |
| 1633 | +(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'), | |
| 1634 | +(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'), | |
| 1635 | +(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'), | |
| 1636 | +(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'), | |
| 1637 | +(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'), | |
| 1638 | +(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'), | |
| 1639 | +(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'), | |
| 1640 | +(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'), | |
| 1641 | +(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'), | |
| 1642 | +(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'), | |
| 1643 | +(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'), | |
| 1644 | +(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'), | |
| 1645 | +(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'), | |
| 1646 | +(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'), | |
| 1647 | +(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'), | |
| 1648 | +(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'), | |
| 1649 | +(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'), | |
| 1650 | +(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'), | |
| 1651 | +(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'), | |
| 1652 | +(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'), | |
| 1653 | +(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'), | |
| 1654 | +(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'), | |
| 1655 | +(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'), | |
| 1656 | +(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'), | |
| 1657 | +(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'), | |
| 1658 | +(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'), | |
| 1659 | +(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'), | |
| 1660 | +(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'), | |
| 1661 | +(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'), | |
| 1662 | +(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'), | |
| 1663 | +(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'), | |
| 1664 | +(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'), | |
| 1665 | +(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'), | |
| 1666 | +(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'), | |
| 1667 | +(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'), | |
| 1668 | +(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'), | |
| 1669 | +(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'), | |
| 1670 | +(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'), | |
| 1671 | +(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'), | |
| 1672 | +(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'), | |
| 1673 | +(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'), | |
| 1674 | +(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'), | |
| 1675 | +(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'), | |
| 1676 | +(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'), | |
| 1677 | +(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'), | |
| 1678 | +(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'), | |
| 1679 | +(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'), | |
| 1680 | +(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'), | |
| 1681 | +(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'), | |
| 1682 | +(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'), | |
| 1683 | +(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'), | |
| 1684 | +(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'), | |
| 1685 | +(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'), | |
| 1686 | +(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'), | |
| 1687 | +(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'), | |
| 1688 | +(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'), | |
| 1689 | +(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'), | |
| 1690 | +(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'), | |
| 1691 | +(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'), | |
| 1692 | +(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'), | |
| 1693 | +(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'), | |
| 1694 | +(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'), | |
| 1695 | +(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'), | |
| 1696 | +(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'), | |
| 1697 | +(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'), | |
| 1698 | +(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'), | |
| 1699 | +(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'), | |
| 1700 | +(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'), | |
| 1701 | +(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'), | |
| 1702 | +(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'), | |
| 1703 | +(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'), | |
| 1704 | +(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'), | |
| 1705 | +(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'), | |
| 1706 | +(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'), | |
| 1707 | +(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'), | |
| 1708 | +(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'), | |
| 1709 | +(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'), | |
| 1710 | +(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'), | |
| 1711 | +(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'), | |
| 1712 | +(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'), | |
| 1713 | +(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'), | |
| 1714 | +(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'), | |
| 1715 | +(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'), | |
| 1716 | +(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'), | |
| 1717 | +(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'), | |
| 1718 | +(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'), | |
| 1719 | +(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'), | |
| 1720 | +(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'), | |
| 1721 | +(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'), | |
| 1722 | +(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'), | |
| 1723 | +(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'), | |
| 1724 | +(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'), | |
| 1725 | +(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'), | |
| 1726 | +(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'), | |
| 1727 | +(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'), | |
| 1728 | +(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'), | |
| 1729 | +(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'), | |
| 1730 | +(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'), | |
| 1731 | +(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'), | |
| 1732 | +(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'), | |
| 1733 | +(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'), | |
| 1734 | +(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'), | |
| 1735 | +(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'), | |
| 1736 | +(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'), | |
| 1737 | +(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'), | |
| 1738 | +(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'), | |
| 1739 | +(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'), | |
| 1740 | +(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'), | |
| 1741 | +(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'), | |
| 1742 | +(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'), | |
| 1743 | +(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'), | |
| 1744 | +(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'), | |
| 1745 | +(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'), | |
| 1746 | +(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'), | |
| 1747 | +(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'), | |
| 1748 | +(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'), | |
| 1749 | +(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'), | |
| 1750 | +(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'), | |
| 1751 | +(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'), | |
| 1752 | +(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'), | |
| 1753 | +(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'), | |
| 1754 | +(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'), | |
| 1755 | +(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'), | |
| 1756 | +(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'), | |
| 1757 | +(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'), | |
| 1758 | +(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'), | |
| 1759 | +(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'), | |
| 1760 | +(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'); | |
| 1761 | +/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */; | |
| 1762 | +UNLOCK TABLES; | |
| 1763 | + | |
| 1764 | +-- | |
| 1765 | +-- Dumping data for table `uploaded_files` | |
| 1766 | +-- | |
| 1767 | + | |
| 1768 | +LOCK TABLES `uploaded_files` WRITE; | |
| 1769 | +/*!40000 ALTER TABLE `uploaded_files` DISABLE KEYS */; | |
| 1770 | +/*!40000 ALTER TABLE `uploaded_files` ENABLE KEYS */; | |
| 1771 | +UNLOCK TABLES; | |
| 1772 | + | |
| 1773 | +-- | |
| 1774 | +-- Dumping data for table `user_history` | |
| 1775 | +-- | |
| 1776 | + | |
| 1777 | +LOCK TABLES `user_history` WRITE; | |
| 1778 | +/*!40000 ALTER TABLE `user_history` DISABLE KEYS */; | |
| 1779 | +/*!40000 ALTER TABLE `user_history` ENABLE KEYS */; | |
| 1780 | +UNLOCK TABLES; | |
| 1781 | + | |
| 1782 | +-- | |
| 1783 | +-- Dumping data for table `users` | |
| 1784 | +-- | |
| 1785 | + | |
| 1786 | +LOCK TABLES `users` WRITE; | |
| 1787 | +/*!40000 ALTER TABLE `users` DISABLE KEYS */; | |
| 1788 | +INSERT INTO `users` VALUES | |
| 1789 | +(-2,'anonymous','Anonymous','---------------',0,0,NULL,NULL,0,0,NULL,30000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0), | |
| 1790 | +(1,'admin','Administrator','21232f297a57a5a743894a0e4a801fc3',0,0,'','',1,1,'',1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); | |
| 1791 | +/*!40000 ALTER TABLE `users` ENABLE KEYS */; | |
| 1792 | +UNLOCK TABLES; | |
| 1793 | + | |
| 1794 | +-- | |
| 1795 | +-- Dumping data for table `users_groups_link` | |
| 1796 | +-- | |
| 1797 | + | |
| 1798 | +LOCK TABLES `users_groups_link` WRITE; | |
| 1799 | +/*!40000 ALTER TABLE `users_groups_link` DISABLE KEYS */; | |
| 1800 | +INSERT INTO `users_groups_link` VALUES | |
| 1801 | +(1,1,1); | |
| 1802 | +/*!40000 ALTER TABLE `users_groups_link` ENABLE KEYS */; | |
| 1803 | +UNLOCK TABLES; | |
| 1804 | + | |
| 1805 | +-- | |
| 1806 | +-- Dumping data for table `workflow_actions` | |
| 1807 | +-- | |
| 1808 | + | |
| 1809 | +LOCK TABLES `workflow_actions` WRITE; | |
| 1810 | +/*!40000 ALTER TABLE `workflow_actions` DISABLE KEYS */; | |
| 1811 | +/*!40000 ALTER TABLE `workflow_actions` ENABLE KEYS */; | |
| 1812 | +UNLOCK TABLES; | |
| 1813 | + | |
| 1814 | +-- | |
| 1815 | +-- Dumping data for table `workflow_documents` | |
| 1816 | +-- | |
| 1817 | + | |
| 1818 | +LOCK TABLES `workflow_documents` WRITE; | |
| 1819 | +/*!40000 ALTER TABLE `workflow_documents` DISABLE KEYS */; | |
| 1820 | +/*!40000 ALTER TABLE `workflow_documents` ENABLE KEYS */; | |
| 1821 | +UNLOCK TABLES; | |
| 1822 | + | |
| 1823 | +-- | |
| 1824 | +-- Dumping data for table `workflow_state_actions` | |
| 1825 | +-- | |
| 1826 | + | |
| 1827 | +LOCK TABLES `workflow_state_actions` WRITE; | |
| 1828 | +/*!40000 ALTER TABLE `workflow_state_actions` DISABLE KEYS */; | |
| 1829 | +/*!40000 ALTER TABLE `workflow_state_actions` ENABLE KEYS */; | |
| 1830 | +UNLOCK TABLES; | |
| 1831 | + | |
| 1832 | +-- | |
| 1833 | +-- Dumping data for table `workflow_state_disabled_actions` | |
| 1834 | +-- | |
| 1835 | + | |
| 1836 | +LOCK TABLES `workflow_state_disabled_actions` WRITE; | |
| 1837 | +/*!40000 ALTER TABLE `workflow_state_disabled_actions` DISABLE KEYS */; | |
| 1838 | +/*!40000 ALTER TABLE `workflow_state_disabled_actions` ENABLE KEYS */; | |
| 1839 | +UNLOCK TABLES; | |
| 1840 | + | |
| 1841 | +-- | |
| 1842 | +-- Dumping data for table `workflow_state_permission_assignments` | |
| 1843 | +-- | |
| 1844 | + | |
| 1845 | +LOCK TABLES `workflow_state_permission_assignments` WRITE; | |
| 1846 | +/*!40000 ALTER TABLE `workflow_state_permission_assignments` DISABLE KEYS */; | |
| 1847 | +/*!40000 ALTER TABLE `workflow_state_permission_assignments` ENABLE KEYS */; | |
| 1848 | +UNLOCK TABLES; | |
| 1849 | + | |
| 1850 | +-- | |
| 1851 | +-- Dumping data for table `workflow_state_transitions` | |
| 1852 | +-- | |
| 1853 | + | |
| 1854 | +LOCK TABLES `workflow_state_transitions` WRITE; | |
| 1855 | +/*!40000 ALTER TABLE `workflow_state_transitions` DISABLE KEYS */; | |
| 1856 | +INSERT INTO `workflow_state_transitions` VALUES | |
| 1857 | +(2,2), | |
| 1858 | +(3,3), | |
| 1859 | +(3,4), | |
| 1860 | +(5,5), | |
| 1861 | +(6,6); | |
| 1862 | +/*!40000 ALTER TABLE `workflow_state_transitions` ENABLE KEYS */; | |
| 1863 | +UNLOCK TABLES; | |
| 1864 | + | |
| 1865 | +-- | |
| 1866 | +-- Dumping data for table `workflow_states` | |
| 1867 | +-- | |
| 1868 | + | |
| 1869 | +LOCK TABLES `workflow_states` WRITE; | |
| 1870 | +/*!40000 ALTER TABLE `workflow_states` DISABLE KEYS */; | |
| 1871 | +INSERT INTO `workflow_states` VALUES | |
| 1872 | +(2,2,'Draft','Draft',NULL,0,0), | |
| 1873 | +(3,2,'Approval','Approval',NULL,0,0), | |
| 1874 | +(4,2,'Published','Published',NULL,0,0), | |
| 1875 | +(5,3,'Draft','Draft',NULL,0,0), | |
| 1876 | +(6,3,'Final','Final',NULL,0,0), | |
| 1877 | +(7,3,'Published','Published',NULL,0,0); | |
| 1878 | +/*!40000 ALTER TABLE `workflow_states` ENABLE KEYS */; | |
| 1879 | +UNLOCK TABLES; | |
| 1880 | + | |
| 1881 | +-- | |
| 1882 | +-- Dumping data for table `workflow_transitions` | |
| 1883 | +-- | |
| 1884 | + | |
| 1885 | +LOCK TABLES `workflow_transitions` WRITE; | |
| 1886 | +/*!40000 ALTER TABLE `workflow_transitions` DISABLE KEYS */; | |
| 1887 | +INSERT INTO `workflow_transitions` VALUES | |
| 1888 | +(2,2,'Request Approval','Request Approval',3,NULL,NULL,NULL,NULL), | |
| 1889 | +(3,2,'Reject','Reject',2,NULL,NULL,NULL,NULL), | |
| 1890 | +(4,2,'Approve','Approve',4,NULL,NULL,NULL,NULL), | |
| 1891 | +(5,3,'Draft Completed','Draft Completed',6,NULL,NULL,NULL,NULL), | |
| 1892 | +(6,3,'Publish','Publish',7,NULL,NULL,NULL,NULL); | |
| 1893 | +/*!40000 ALTER TABLE `workflow_transitions` ENABLE KEYS */; | |
| 1894 | +UNLOCK TABLES; | |
| 1895 | + | |
| 1896 | +-- | |
| 1897 | +-- Dumping data for table `workflow_trigger_instances` | |
| 1898 | +-- | |
| 1899 | + | |
| 1900 | +LOCK TABLES `workflow_trigger_instances` WRITE; | |
| 1901 | +/*!40000 ALTER TABLE `workflow_trigger_instances` DISABLE KEYS */; | |
| 1902 | +/*!40000 ALTER TABLE `workflow_trigger_instances` ENABLE KEYS */; | |
| 1903 | +UNLOCK TABLES; | |
| 1904 | + | |
| 1905 | +-- | |
| 1906 | +-- Dumping data for table `workflows` | |
| 1907 | +-- | |
| 1908 | + | |
| 1909 | +LOCK TABLES `workflows` WRITE; | |
| 1910 | +/*!40000 ALTER TABLE `workflows` DISABLE KEYS */; | |
| 1911 | +INSERT INTO `workflows` VALUES | |
| 1912 | +(2,'Review Process','Review Process',2,1), | |
| 1913 | +(3,'Generate Document','Generate Document',5,1); | |
| 1914 | +/*!40000 ALTER TABLE `workflows` ENABLE KEYS */; | |
| 1915 | +UNLOCK TABLES; | |
| 1916 | + | |
| 1917 | +-- | |
| 1918 | +-- Dumping data for table `zseq_active_sessions` | |
| 1919 | +-- | |
| 1920 | + | |
| 1921 | +LOCK TABLES `zseq_active_sessions` WRITE; | |
| 1922 | +/*!40000 ALTER TABLE `zseq_active_sessions` DISABLE KEYS */; | |
| 1923 | +INSERT INTO `zseq_active_sessions` VALUES | |
| 1924 | +(1); | |
| 1925 | +/*!40000 ALTER TABLE `zseq_active_sessions` ENABLE KEYS */; | |
| 1926 | +UNLOCK TABLES; | |
| 1927 | + | |
| 1928 | +-- | |
| 1929 | +-- Dumping data for table `zseq_archive_restoration_request` | |
| 1930 | +-- | |
| 1931 | + | |
| 1932 | +LOCK TABLES `zseq_archive_restoration_request` WRITE; | |
| 1933 | +/*!40000 ALTER TABLE `zseq_archive_restoration_request` DISABLE KEYS */; | |
| 1934 | +INSERT INTO `zseq_archive_restoration_request` VALUES | |
| 1935 | +(1); | |
| 1936 | +/*!40000 ALTER TABLE `zseq_archive_restoration_request` ENABLE KEYS */; | |
| 1937 | +UNLOCK TABLES; | |
| 1938 | + | |
| 1939 | +-- | |
| 1940 | +-- Dumping data for table `zseq_archiving_settings` | |
| 1941 | +-- | |
| 1942 | + | |
| 1943 | +LOCK TABLES `zseq_archiving_settings` WRITE; | |
| 1944 | +/*!40000 ALTER TABLE `zseq_archiving_settings` DISABLE KEYS */; | |
| 1945 | +INSERT INTO `zseq_archiving_settings` VALUES | |
| 1946 | +(1); | |
| 1947 | +/*!40000 ALTER TABLE `zseq_archiving_settings` ENABLE KEYS */; | |
| 1948 | +UNLOCK TABLES; | |
| 1949 | + | |
| 1950 | +-- | |
| 1951 | +-- Dumping data for table `zseq_archiving_type_lookup` | |
| 1952 | +-- | |
| 1953 | + | |
| 1954 | +LOCK TABLES `zseq_archiving_type_lookup` WRITE; | |
| 1955 | +/*!40000 ALTER TABLE `zseq_archiving_type_lookup` DISABLE KEYS */; | |
| 1956 | +INSERT INTO `zseq_archiving_type_lookup` VALUES | |
| 1957 | +(2); | |
| 1958 | +/*!40000 ALTER TABLE `zseq_archiving_type_lookup` ENABLE KEYS */; | |
| 1959 | +UNLOCK TABLES; | |
| 1960 | + | |
| 1961 | +-- | |
| 1962 | +-- Dumping data for table `zseq_authentication_sources` | |
| 1963 | +-- | |
| 1964 | + | |
| 1965 | +LOCK TABLES `zseq_authentication_sources` WRITE; | |
| 1966 | +/*!40000 ALTER TABLE `zseq_authentication_sources` DISABLE KEYS */; | |
| 1967 | +INSERT INTO `zseq_authentication_sources` VALUES | |
| 1968 | +(1); | |
| 1969 | +/*!40000 ALTER TABLE `zseq_authentication_sources` ENABLE KEYS */; | |
| 1970 | +UNLOCK TABLES; | |
| 1971 | + | |
| 1972 | +-- | |
| 1973 | +-- Dumping data for table `zseq_column_entries` | |
| 1974 | +-- | |
| 1975 | + | |
| 1976 | +LOCK TABLES `zseq_column_entries` WRITE; | |
| 1977 | +/*!40000 ALTER TABLE `zseq_column_entries` DISABLE KEYS */; | |
| 1978 | +INSERT INTO `zseq_column_entries` VALUES | |
| 1979 | +(15); | |
| 1980 | +/*!40000 ALTER TABLE `zseq_column_entries` ENABLE KEYS */; | |
| 1981 | +UNLOCK TABLES; | |
| 1982 | + | |
| 1983 | +-- | |
| 1984 | +-- Dumping data for table `zseq_config_settings` | |
| 1985 | +-- | |
| 1986 | + | |
| 1987 | +LOCK TABLES `zseq_config_settings` WRITE; | |
| 1988 | +/*!40000 ALTER TABLE `zseq_config_settings` DISABLE KEYS */; | |
| 1989 | +/*!40000 ALTER TABLE `zseq_config_settings` ENABLE KEYS */; | |
| 1990 | +UNLOCK TABLES; | |
| 1991 | + | |
| 1992 | +-- | |
| 1993 | +-- Dumping data for table `zseq_dashlet_disables` | |
| 1994 | +-- | |
| 1995 | + | |
| 1996 | +LOCK TABLES `zseq_dashlet_disables` WRITE; | |
| 1997 | +/*!40000 ALTER TABLE `zseq_dashlet_disables` DISABLE KEYS */; | |
| 1998 | +INSERT INTO `zseq_dashlet_disables` VALUES | |
| 1999 | +(1); | |
| 2000 | +/*!40000 ALTER TABLE `zseq_dashlet_disables` ENABLE KEYS */; | |
| 2001 | +UNLOCK TABLES; | |
| 2002 | + | |
| 2003 | +-- | |
| 2004 | +-- Dumping data for table `zseq_data_types` | |
| 2005 | +-- | |
| 2006 | + | |
| 2007 | +LOCK TABLES `zseq_data_types` WRITE; | |
| 2008 | +/*!40000 ALTER TABLE `zseq_data_types` DISABLE KEYS */; | |
| 2009 | +INSERT INTO `zseq_data_types` VALUES | |
| 2010 | +(5); | |
| 2011 | +/*!40000 ALTER TABLE `zseq_data_types` ENABLE KEYS */; | |
| 2012 | +UNLOCK TABLES; | |
| 2013 | + | |
| 2014 | +-- | |
| 2015 | +-- Dumping data for table `zseq_discussion_comments` | |
| 2016 | +-- | |
| 2017 | + | |
| 2018 | +LOCK TABLES `zseq_discussion_comments` WRITE; | |
| 2019 | +/*!40000 ALTER TABLE `zseq_discussion_comments` DISABLE KEYS */; | |
| 2020 | +INSERT INTO `zseq_discussion_comments` VALUES | |
| 2021 | +(1); | |
| 2022 | +/*!40000 ALTER TABLE `zseq_discussion_comments` ENABLE KEYS */; | |
| 2023 | +UNLOCK TABLES; | |
| 2024 | + | |
| 2025 | +-- | |
| 2026 | +-- Dumping data for table `zseq_discussion_threads` | |
| 2027 | +-- | |
| 2028 | + | |
| 2029 | +LOCK TABLES `zseq_discussion_threads` WRITE; | |
| 2030 | +/*!40000 ALTER TABLE `zseq_discussion_threads` DISABLE KEYS */; | |
| 2031 | +INSERT INTO `zseq_discussion_threads` VALUES | |
| 2032 | +(1); | |
| 2033 | +/*!40000 ALTER TABLE `zseq_discussion_threads` ENABLE KEYS */; | |
| 2034 | +UNLOCK TABLES; | |
| 2035 | + | |
| 2036 | +-- | |
| 2037 | +-- Dumping data for table `zseq_document_archiving_link` | |
| 2038 | +-- | |
| 2039 | + | |
| 2040 | +LOCK TABLES `zseq_document_archiving_link` WRITE; | |
| 2041 | +/*!40000 ALTER TABLE `zseq_document_archiving_link` DISABLE KEYS */; | |
| 2042 | +INSERT INTO `zseq_document_archiving_link` VALUES | |
| 2043 | +(1); | |
| 2044 | +/*!40000 ALTER TABLE `zseq_document_archiving_link` ENABLE KEYS */; | |
| 2045 | +UNLOCK TABLES; | |
| 2046 | + | |
| 2047 | +-- | |
| 2048 | +-- Dumping data for table `zseq_document_content_version` | |
| 2049 | +-- | |
| 2050 | + | |
| 2051 | +LOCK TABLES `zseq_document_content_version` WRITE; | |
| 2052 | +/*!40000 ALTER TABLE `zseq_document_content_version` DISABLE KEYS */; | |
| 2053 | +INSERT INTO `zseq_document_content_version` VALUES | |
| 2054 | +(1); | |
| 2055 | +/*!40000 ALTER TABLE `zseq_document_content_version` ENABLE KEYS */; | |
| 2056 | +UNLOCK TABLES; | |
| 2057 | + | |
| 2058 | +-- | |
| 2059 | +-- Dumping data for table `zseq_document_fields` | |
| 2060 | +-- | |
| 2061 | + | |
| 2062 | +LOCK TABLES `zseq_document_fields` WRITE; | |
| 2063 | +/*!40000 ALTER TABLE `zseq_document_fields` DISABLE KEYS */; | |
| 2064 | +INSERT INTO `zseq_document_fields` VALUES | |
| 2065 | +(5); | |
| 2066 | +/*!40000 ALTER TABLE `zseq_document_fields` ENABLE KEYS */; | |
| 2067 | +UNLOCK TABLES; | |
| 2068 | + | |
| 2069 | +-- | |
| 2070 | +-- Dumping data for table `zseq_document_fields_link` | |
| 2071 | +-- | |
| 2072 | + | |
| 2073 | +LOCK TABLES `zseq_document_fields_link` WRITE; | |
| 2074 | +/*!40000 ALTER TABLE `zseq_document_fields_link` DISABLE KEYS */; | |
| 2075 | +INSERT INTO `zseq_document_fields_link` VALUES | |
| 2076 | +(1); | |
| 2077 | +/*!40000 ALTER TABLE `zseq_document_fields_link` ENABLE KEYS */; | |
| 2078 | +UNLOCK TABLES; | |
| 2079 | + | |
| 2080 | +-- | |
| 2081 | +-- Dumping data for table `zseq_document_link` | |
| 2082 | +-- | |
| 2083 | + | |
| 2084 | +LOCK TABLES `zseq_document_link` WRITE; | |
| 2085 | +/*!40000 ALTER TABLE `zseq_document_link` DISABLE KEYS */; | |
| 2086 | +INSERT INTO `zseq_document_link` VALUES | |
| 2087 | +(1); | |
| 2088 | +/*!40000 ALTER TABLE `zseq_document_link` ENABLE KEYS */; | |
| 2089 | +UNLOCK TABLES; | |
| 2090 | + | |
| 2091 | +-- | |
| 2092 | +-- Dumping data for table `zseq_document_link_types` | |
| 2093 | +-- | |
| 2094 | + | |
| 2095 | +LOCK TABLES `zseq_document_link_types` WRITE; | |
| 2096 | +/*!40000 ALTER TABLE `zseq_document_link_types` DISABLE KEYS */; | |
| 2097 | +INSERT INTO `zseq_document_link_types` VALUES | |
| 2098 | +(5); | |
| 2099 | +/*!40000 ALTER TABLE `zseq_document_link_types` ENABLE KEYS */; | |
| 2100 | +UNLOCK TABLES; | |
| 2101 | + | |
| 2102 | +-- | |
| 2103 | +-- Dumping data for table `zseq_document_metadata_version` | |
| 2104 | +-- | |
| 2105 | + | |
| 2106 | +LOCK TABLES `zseq_document_metadata_version` WRITE; | |
| 2107 | +/*!40000 ALTER TABLE `zseq_document_metadata_version` DISABLE KEYS */; | |
| 2108 | +INSERT INTO `zseq_document_metadata_version` VALUES | |
| 2109 | +(1); | |
| 2110 | +/*!40000 ALTER TABLE `zseq_document_metadata_version` ENABLE KEYS */; | |
| 2111 | +UNLOCK TABLES; | |
| 2112 | + | |
| 2113 | +-- | |
| 2114 | +-- Dumping data for table `zseq_document_role_allocations` | |
| 2115 | +-- | |
| 2116 | + | |
| 2117 | +LOCK TABLES `zseq_document_role_allocations` WRITE; | |
| 2118 | +/*!40000 ALTER TABLE `zseq_document_role_allocations` DISABLE KEYS */; | |
| 2119 | +/*!40000 ALTER TABLE `zseq_document_role_allocations` ENABLE KEYS */; | |
| 2120 | +UNLOCK TABLES; | |
| 2121 | + | |
| 2122 | +-- | |
| 2123 | +-- Dumping data for table `zseq_document_subscriptions` | |
| 2124 | +-- | |
| 2125 | + | |
| 2126 | +LOCK TABLES `zseq_document_subscriptions` WRITE; | |
| 2127 | +/*!40000 ALTER TABLE `zseq_document_subscriptions` DISABLE KEYS */; | |
| 2128 | +INSERT INTO `zseq_document_subscriptions` VALUES | |
| 2129 | +(1); | |
| 2130 | +/*!40000 ALTER TABLE `zseq_document_subscriptions` ENABLE KEYS */; | |
| 2131 | +UNLOCK TABLES; | |
| 2132 | + | |
| 2133 | +-- | |
| 2134 | +-- Dumping data for table `zseq_document_tags` | |
| 2135 | +-- | |
| 2136 | + | |
| 2137 | +LOCK TABLES `zseq_document_tags` WRITE; | |
| 2138 | +/*!40000 ALTER TABLE `zseq_document_tags` DISABLE KEYS */; | |
| 2139 | +INSERT INTO `zseq_document_tags` VALUES | |
| 2140 | +(1); | |
| 2141 | +/*!40000 ALTER TABLE `zseq_document_tags` ENABLE KEYS */; | |
| 2142 | +UNLOCK TABLES; | |
| 2143 | + | |
| 2144 | +-- | |
| 2145 | +-- Dumping data for table `zseq_document_transaction_types_lookup` | |
| 2146 | +-- | |
| 2147 | + | |
| 2148 | +LOCK TABLES `zseq_document_transaction_types_lookup` WRITE; | |
| 2149 | +/*!40000 ALTER TABLE `zseq_document_transaction_types_lookup` DISABLE KEYS */; | |
| 2150 | +INSERT INTO `zseq_document_transaction_types_lookup` VALUES | |
| 2151 | +(21); | |
| 2152 | +/*!40000 ALTER TABLE `zseq_document_transaction_types_lookup` ENABLE KEYS */; | |
| 2153 | +UNLOCK TABLES; | |
| 2154 | + | |
| 2155 | +-- | |
| 2156 | +-- Dumping data for table `zseq_document_transactions` | |
| 2157 | +-- | |
| 2158 | + | |
| 2159 | +LOCK TABLES `zseq_document_transactions` WRITE; | |
| 2160 | +/*!40000 ALTER TABLE `zseq_document_transactions` DISABLE KEYS */; | |
| 2161 | +INSERT INTO `zseq_document_transactions` VALUES | |
| 2162 | +(1); | |
| 2163 | +/*!40000 ALTER TABLE `zseq_document_transactions` ENABLE KEYS */; | |
| 2164 | +UNLOCK TABLES; | |
| 2165 | + | |
| 2166 | +-- | |
| 2167 | +-- Dumping data for table `zseq_document_type_fields_link` | |
| 2168 | +-- | |
| 2169 | + | |
| 2170 | +LOCK TABLES `zseq_document_type_fields_link` WRITE; | |
| 2171 | +/*!40000 ALTER TABLE `zseq_document_type_fields_link` DISABLE KEYS */; | |
| 2172 | +INSERT INTO `zseq_document_type_fields_link` VALUES | |
| 2173 | +(1); | |
| 2174 | +/*!40000 ALTER TABLE `zseq_document_type_fields_link` ENABLE KEYS */; | |
| 2175 | +UNLOCK TABLES; | |
| 2176 | + | |
| 2177 | +-- | |
| 2178 | +-- Dumping data for table `zseq_document_type_fieldsets_link` | |
| 2179 | +-- | |
| 2180 | + | |
| 2181 | +LOCK TABLES `zseq_document_type_fieldsets_link` WRITE; | |
| 2182 | +/*!40000 ALTER TABLE `zseq_document_type_fieldsets_link` DISABLE KEYS */; | |
| 2183 | +INSERT INTO `zseq_document_type_fieldsets_link` VALUES | |
| 2184 | +(1); | |
| 2185 | +/*!40000 ALTER TABLE `zseq_document_type_fieldsets_link` ENABLE KEYS */; | |
| 2186 | +UNLOCK TABLES; | |
| 2187 | + | |
| 2188 | +-- | |
| 2189 | +-- Dumping data for table `zseq_document_types_lookup` | |
| 2190 | +-- | |
| 2191 | + | |
| 2192 | +LOCK TABLES `zseq_document_types_lookup` WRITE; | |
| 2193 | +/*!40000 ALTER TABLE `zseq_document_types_lookup` DISABLE KEYS */; | |
| 2194 | +INSERT INTO `zseq_document_types_lookup` VALUES | |
| 2195 | +(1); | |
| 2196 | +/*!40000 ALTER TABLE `zseq_document_types_lookup` ENABLE KEYS */; | |
| 2197 | +UNLOCK TABLES; | |
| 2198 | + | |
| 2199 | +-- | |
| 2200 | +-- Dumping data for table `zseq_documents` | |
| 2201 | +-- | |
| 2202 | + | |
| 2203 | +LOCK TABLES `zseq_documents` WRITE; | |
| 2204 | +/*!40000 ALTER TABLE `zseq_documents` DISABLE KEYS */; | |
| 2205 | +INSERT INTO `zseq_documents` VALUES | |
| 2206 | +(1); | |
| 2207 | +/*!40000 ALTER TABLE `zseq_documents` ENABLE KEYS */; | |
| 2208 | +UNLOCK TABLES; | |
| 2209 | + | |
| 2210 | +-- | |
| 2211 | +-- Dumping data for table `zseq_field_behaviours` | |
| 2212 | +-- | |
| 2213 | + | |
| 2214 | +LOCK TABLES `zseq_field_behaviours` WRITE; | |
| 2215 | +/*!40000 ALTER TABLE `zseq_field_behaviours` DISABLE KEYS */; | |
| 2216 | +INSERT INTO `zseq_field_behaviours` VALUES | |
| 2217 | +(1); | |
| 2218 | +/*!40000 ALTER TABLE `zseq_field_behaviours` ENABLE KEYS */; | |
| 2219 | +UNLOCK TABLES; | |
| 2220 | + | |
| 2221 | +-- | |
| 2222 | +-- Dumping data for table `zseq_field_value_instances` | |
| 2223 | +-- | |
| 2224 | + | |
| 2225 | +LOCK TABLES `zseq_field_value_instances` WRITE; | |
| 2226 | +/*!40000 ALTER TABLE `zseq_field_value_instances` DISABLE KEYS */; | |
| 2227 | +INSERT INTO `zseq_field_value_instances` VALUES | |
| 2228 | +(1); | |
| 2229 | +/*!40000 ALTER TABLE `zseq_field_value_instances` ENABLE KEYS */; | |
| 2230 | +UNLOCK TABLES; | |
| 2231 | + | |
| 2232 | +-- | |
| 2233 | +-- Dumping data for table `zseq_fieldsets` | |
| 2234 | +-- | |
| 2235 | + | |
| 2236 | +LOCK TABLES `zseq_fieldsets` WRITE; | |
| 2237 | +/*!40000 ALTER TABLE `zseq_fieldsets` DISABLE KEYS */; | |
| 2238 | +INSERT INTO `zseq_fieldsets` VALUES | |
| 2239 | +(3); | |
| 2240 | +/*!40000 ALTER TABLE `zseq_fieldsets` ENABLE KEYS */; | |
| 2241 | +UNLOCK TABLES; | |
| 2242 | + | |
| 2243 | +-- | |
| 2244 | +-- Dumping data for table `zseq_folder_doctypes_link` | |
| 2245 | +-- | |
| 2246 | + | |
| 2247 | +LOCK TABLES `zseq_folder_doctypes_link` WRITE; | |
| 2248 | +/*!40000 ALTER TABLE `zseq_folder_doctypes_link` DISABLE KEYS */; | |
| 2249 | +INSERT INTO `zseq_folder_doctypes_link` VALUES | |
| 2250 | +(2); | |
| 2251 | +/*!40000 ALTER TABLE `zseq_folder_doctypes_link` ENABLE KEYS */; | |
| 2252 | +UNLOCK TABLES; | |
| 2253 | + | |
| 2254 | +-- | |
| 2255 | +-- Dumping data for table `zseq_folder_subscriptions` | |
| 2256 | +-- | |
| 2257 | + | |
| 2258 | +LOCK TABLES `zseq_folder_subscriptions` WRITE; | |
| 2259 | +/*!40000 ALTER TABLE `zseq_folder_subscriptions` DISABLE KEYS */; | |
| 2260 | +INSERT INTO `zseq_folder_subscriptions` VALUES | |
| 2261 | +(1); | |
| 2262 | +/*!40000 ALTER TABLE `zseq_folder_subscriptions` ENABLE KEYS */; | |
| 2263 | +UNLOCK TABLES; | |
| 2264 | + | |
| 2265 | +-- | |
| 2266 | +-- Dumping data for table `zseq_folder_transactions` | |
| 2267 | +-- | |
| 2268 | + | |
| 2269 | +LOCK TABLES `zseq_folder_transactions` WRITE; | |
| 2270 | +/*!40000 ALTER TABLE `zseq_folder_transactions` DISABLE KEYS */; | |
| 2271 | +/*!40000 ALTER TABLE `zseq_folder_transactions` ENABLE KEYS */; | |
| 2272 | +UNLOCK TABLES; | |
| 2273 | + | |
| 2274 | +-- | |
| 2275 | +-- Dumping data for table `zseq_folders` | |
| 2276 | +-- | |
| 2277 | + | |
| 2278 | +LOCK TABLES `zseq_folders` WRITE; | |
| 2279 | +/*!40000 ALTER TABLE `zseq_folders` DISABLE KEYS */; | |
| 2280 | +INSERT INTO `zseq_folders` VALUES | |
| 2281 | +(2); | |
| 2282 | +/*!40000 ALTER TABLE `zseq_folders` ENABLE KEYS */; | |
| 2283 | +UNLOCK TABLES; | |
| 2284 | + | |
| 2285 | +-- | |
| 2286 | +-- Dumping data for table `zseq_folders_users_roles_link` | |
| 2287 | +-- | |
| 2288 | + | |
| 2289 | +LOCK TABLES `zseq_folders_users_roles_link` WRITE; | |
| 2290 | +/*!40000 ALTER TABLE `zseq_folders_users_roles_link` DISABLE KEYS */; | |
| 2291 | +INSERT INTO `zseq_folders_users_roles_link` VALUES | |
| 2292 | +(1); | |
| 2293 | +/*!40000 ALTER TABLE `zseq_folders_users_roles_link` ENABLE KEYS */; | |
| 2294 | +UNLOCK TABLES; | |
| 2295 | + | |
| 2296 | +-- | |
| 2297 | +-- Dumping data for table `zseq_groups_groups_link` | |
| 2298 | +-- | |
| 2299 | + | |
| 2300 | +LOCK TABLES `zseq_groups_groups_link` WRITE; | |
| 2301 | +/*!40000 ALTER TABLE `zseq_groups_groups_link` DISABLE KEYS */; | |
| 2302 | +INSERT INTO `zseq_groups_groups_link` VALUES | |
| 2303 | +(1); | |
| 2304 | +/*!40000 ALTER TABLE `zseq_groups_groups_link` ENABLE KEYS */; | |
| 2305 | +UNLOCK TABLES; | |
| 2306 | + | |
| 2307 | +-- | |
| 2308 | +-- Dumping data for table `zseq_groups_lookup` | |
| 2309 | +-- | |
| 2310 | + | |
| 2311 | +LOCK TABLES `zseq_groups_lookup` WRITE; | |
| 2312 | +/*!40000 ALTER TABLE `zseq_groups_lookup` DISABLE KEYS */; | |
| 2313 | +INSERT INTO `zseq_groups_lookup` VALUES | |
| 2314 | +(3); | |
| 2315 | +/*!40000 ALTER TABLE `zseq_groups_lookup` ENABLE KEYS */; | |
| 2316 | +UNLOCK TABLES; | |
| 2317 | + | |
| 2318 | +-- | |
| 2319 | +-- Dumping data for table `zseq_help` | |
| 2320 | +-- | |
| 2321 | + | |
| 2322 | +LOCK TABLES `zseq_help` WRITE; | |
| 2323 | +/*!40000 ALTER TABLE `zseq_help` DISABLE KEYS */; | |
| 2324 | +INSERT INTO `zseq_help` VALUES | |
| 2325 | +(100); | |
| 2326 | +/*!40000 ALTER TABLE `zseq_help` ENABLE KEYS */; | |
| 2327 | +UNLOCK TABLES; | |
| 2328 | + | |
| 2329 | +-- | |
| 2330 | +-- Dumping data for table `zseq_help_replacement` | |
| 2331 | +-- | |
| 2332 | + | |
| 2333 | +LOCK TABLES `zseq_help_replacement` WRITE; | |
| 2334 | +/*!40000 ALTER TABLE `zseq_help_replacement` DISABLE KEYS */; | |
| 2335 | +INSERT INTO `zseq_help_replacement` VALUES | |
| 2336 | +(1); | |
| 2337 | +/*!40000 ALTER TABLE `zseq_help_replacement` ENABLE KEYS */; | |
| 2338 | +UNLOCK TABLES; | |
| 2339 | + | |
| 2340 | +-- | |
| 2341 | +-- Dumping data for table `zseq_interceptor_instances` | |
| 2342 | +-- | |
| 2343 | + | |
| 2344 | +LOCK TABLES `zseq_interceptor_instances` WRITE; | |
| 2345 | +/*!40000 ALTER TABLE `zseq_interceptor_instances` DISABLE KEYS */; | |
| 2346 | +/*!40000 ALTER TABLE `zseq_interceptor_instances` ENABLE KEYS */; | |
| 2347 | +UNLOCK TABLES; | |
| 2348 | + | |
| 2349 | +-- | |
| 2350 | +-- Dumping data for table `zseq_links` | |
| 2351 | +-- | |
| 2352 | + | |
| 2353 | +LOCK TABLES `zseq_links` WRITE; | |
| 2354 | +/*!40000 ALTER TABLE `zseq_links` DISABLE KEYS */; | |
| 2355 | +INSERT INTO `zseq_links` VALUES | |
| 2356 | +(1); | |
| 2357 | +/*!40000 ALTER TABLE `zseq_links` ENABLE KEYS */; | |
| 2358 | +UNLOCK TABLES; | |
| 2359 | + | |
| 2360 | +-- | |
| 2361 | +-- Dumping data for table `zseq_metadata_lookup` | |
| 2362 | +-- | |
| 2363 | + | |
| 2364 | +LOCK TABLES `zseq_metadata_lookup` WRITE; | |
| 2365 | +/*!40000 ALTER TABLE `zseq_metadata_lookup` DISABLE KEYS */; | |
| 2366 | +INSERT INTO `zseq_metadata_lookup` VALUES | |
| 2367 | +(11); | |
| 2368 | +/*!40000 ALTER TABLE `zseq_metadata_lookup` ENABLE KEYS */; | |
| 2369 | +UNLOCK TABLES; | |
| 2370 | + | |
| 2371 | +-- | |
| 2372 | +-- Dumping data for table `zseq_metadata_lookup_tree` | |
| 2373 | +-- | |
| 2374 | + | |
| 2375 | +LOCK TABLES `zseq_metadata_lookup_tree` WRITE; | |
| 2376 | +/*!40000 ALTER TABLE `zseq_metadata_lookup_tree` DISABLE KEYS */; | |
| 2377 | +INSERT INTO `zseq_metadata_lookup_tree` VALUES | |
| 2378 | +(1); | |
| 2379 | +/*!40000 ALTER TABLE `zseq_metadata_lookup_tree` ENABLE KEYS */; | |
| 2380 | +UNLOCK TABLES; | |
| 2381 | + | |
| 2382 | +-- | |
| 2383 | +-- Dumping data for table `zseq_mime_documents` | |
| 2384 | +-- | |
| 2385 | + | |
| 2386 | +LOCK TABLES `zseq_mime_documents` WRITE; | |
| 2387 | +/*!40000 ALTER TABLE `zseq_mime_documents` DISABLE KEYS */; | |
| 2388 | +/*!40000 ALTER TABLE `zseq_mime_documents` ENABLE KEYS */; | |
| 2389 | +UNLOCK TABLES; | |
| 2390 | + | |
| 2391 | +-- | |
| 2392 | +-- Dumping data for table `zseq_mime_extractors` | |
| 2393 | +-- | |
| 2394 | + | |
| 2395 | +LOCK TABLES `zseq_mime_extractors` WRITE; | |
| 2396 | +/*!40000 ALTER TABLE `zseq_mime_extractors` DISABLE KEYS */; | |
| 2397 | +INSERT INTO `zseq_mime_extractors` VALUES | |
| 2398 | +(1); | |
| 2399 | +/*!40000 ALTER TABLE `zseq_mime_extractors` ENABLE KEYS */; | |
| 2400 | +UNLOCK TABLES; | |
| 2401 | + | |
| 2402 | +-- | |
| 2403 | +-- Dumping data for table `zseq_mime_types` | |
| 2404 | +-- | |
| 2405 | + | |
| 2406 | +LOCK TABLES `zseq_mime_types` WRITE; | |
| 2407 | +/*!40000 ALTER TABLE `zseq_mime_types` DISABLE KEYS */; | |
| 2408 | +INSERT INTO `zseq_mime_types` VALUES | |
| 2409 | +(171); | |
| 2410 | +/*!40000 ALTER TABLE `zseq_mime_types` ENABLE KEYS */; | |
| 2411 | +UNLOCK TABLES; | |
| 2412 | + | |
| 2413 | +-- | |
| 2414 | +-- Dumping data for table `zseq_news` | |
| 2415 | +-- | |
| 2416 | + | |
| 2417 | +LOCK TABLES `zseq_news` WRITE; | |
| 2418 | +/*!40000 ALTER TABLE `zseq_news` DISABLE KEYS */; | |
| 2419 | +INSERT INTO `zseq_news` VALUES | |
| 2420 | +(1); | |
| 2421 | +/*!40000 ALTER TABLE `zseq_news` ENABLE KEYS */; | |
| 2422 | +UNLOCK TABLES; | |
| 2423 | + | |
| 2424 | +-- | |
| 2425 | +-- Dumping data for table `zseq_notifications` | |
| 2426 | +-- | |
| 2427 | + | |
| 2428 | +LOCK TABLES `zseq_notifications` WRITE; | |
| 2429 | +/*!40000 ALTER TABLE `zseq_notifications` DISABLE KEYS */; | |
| 2430 | +INSERT INTO `zseq_notifications` VALUES | |
| 2431 | +(1); | |
| 2432 | +/*!40000 ALTER TABLE `zseq_notifications` ENABLE KEYS */; | |
| 2433 | +UNLOCK TABLES; | |
| 2434 | + | |
| 2435 | +-- | |
| 2436 | +-- Dumping data for table `zseq_organisations_lookup` | |
| 2437 | +-- | |
| 2438 | + | |
| 2439 | +LOCK TABLES `zseq_organisations_lookup` WRITE; | |
| 2440 | +/*!40000 ALTER TABLE `zseq_organisations_lookup` DISABLE KEYS */; | |
| 2441 | +INSERT INTO `zseq_organisations_lookup` VALUES | |
| 2442 | +(1); | |
| 2443 | +/*!40000 ALTER TABLE `zseq_organisations_lookup` ENABLE KEYS */; | |
| 2444 | +UNLOCK TABLES; | |
| 2445 | + | |
| 2446 | +-- | |
| 2447 | +-- Dumping data for table `zseq_permission_assignments` | |
| 2448 | +-- | |
| 2449 | + | |
| 2450 | +LOCK TABLES `zseq_permission_assignments` WRITE; | |
| 2451 | +/*!40000 ALTER TABLE `zseq_permission_assignments` DISABLE KEYS */; | |
| 2452 | +INSERT INTO `zseq_permission_assignments` VALUES | |
| 2453 | +(8); | |
| 2454 | +/*!40000 ALTER TABLE `zseq_permission_assignments` ENABLE KEYS */; | |
| 2455 | +UNLOCK TABLES; | |
| 2456 | + | |
| 2457 | +-- | |
| 2458 | +-- Dumping data for table `zseq_permission_descriptors` | |
| 2459 | +-- | |
| 2460 | + | |
| 2461 | +LOCK TABLES `zseq_permission_descriptors` WRITE; | |
| 2462 | +/*!40000 ALTER TABLE `zseq_permission_descriptors` DISABLE KEYS */; | |
| 2463 | +INSERT INTO `zseq_permission_descriptors` VALUES | |
| 2464 | +(2); | |
| 2465 | +/*!40000 ALTER TABLE `zseq_permission_descriptors` ENABLE KEYS */; | |
| 2466 | +UNLOCK TABLES; | |
| 2467 | + | |
| 2468 | +-- | |
| 2469 | +-- Dumping data for table `zseq_permission_dynamic_conditions` | |
| 2470 | +-- | |
| 2471 | + | |
| 2472 | +LOCK TABLES `zseq_permission_dynamic_conditions` WRITE; | |
| 2473 | +/*!40000 ALTER TABLE `zseq_permission_dynamic_conditions` DISABLE KEYS */; | |
| 2474 | +INSERT INTO `zseq_permission_dynamic_conditions` VALUES | |
| 2475 | +(1); | |
| 2476 | +/*!40000 ALTER TABLE `zseq_permission_dynamic_conditions` ENABLE KEYS */; | |
| 2477 | +UNLOCK TABLES; | |
| 2478 | + | |
| 2479 | +-- | |
| 2480 | +-- Dumping data for table `zseq_permission_lookup_assignments` | |
| 2481 | +-- | |
| 2482 | + | |
| 2483 | +LOCK TABLES `zseq_permission_lookup_assignments` WRITE; | |
| 2484 | +/*!40000 ALTER TABLE `zseq_permission_lookup_assignments` DISABLE KEYS */; | |
| 2485 | +INSERT INTO `zseq_permission_lookup_assignments` VALUES | |
| 2486 | +(24); | |
| 2487 | +/*!40000 ALTER TABLE `zseq_permission_lookup_assignments` ENABLE KEYS */; | |
| 2488 | +UNLOCK TABLES; | |
| 2489 | + | |
| 2490 | +-- | |
| 2491 | +-- Dumping data for table `zseq_permission_lookups` | |
| 2492 | +-- | |
| 2493 | + | |
| 2494 | +LOCK TABLES `zseq_permission_lookups` WRITE; | |
| 2495 | +/*!40000 ALTER TABLE `zseq_permission_lookups` DISABLE KEYS */; | |
| 2496 | +INSERT INTO `zseq_permission_lookups` VALUES | |
| 2497 | +(5); | |
| 2498 | +/*!40000 ALTER TABLE `zseq_permission_lookups` ENABLE KEYS */; | |
| 2499 | +UNLOCK TABLES; | |
| 2500 | + | |
| 2501 | +-- | |
| 2502 | +-- Dumping data for table `zseq_permission_objects` | |
| 2503 | +-- | |
| 2504 | + | |
| 2505 | +LOCK TABLES `zseq_permission_objects` WRITE; | |
| 2506 | +/*!40000 ALTER TABLE `zseq_permission_objects` DISABLE KEYS */; | |
| 2507 | +INSERT INTO `zseq_permission_objects` VALUES | |
| 2508 | +(1); | |
| 2509 | +/*!40000 ALTER TABLE `zseq_permission_objects` ENABLE KEYS */; | |
| 2510 | +UNLOCK TABLES; | |
| 2511 | + | |
| 2512 | +-- | |
| 2513 | +-- Dumping data for table `zseq_permissions` | |
| 2514 | +-- | |
| 2515 | + | |
| 2516 | +LOCK TABLES `zseq_permissions` WRITE; | |
| 2517 | +/*!40000 ALTER TABLE `zseq_permissions` DISABLE KEYS */; | |
| 2518 | +INSERT INTO `zseq_permissions` VALUES | |
| 2519 | +(8); | |
| 2520 | +/*!40000 ALTER TABLE `zseq_permissions` ENABLE KEYS */; | |
| 2521 | +UNLOCK TABLES; | |
| 2522 | + | |
| 2523 | +-- | |
| 2524 | +-- Dumping data for table `zseq_plugin_helper` | |
| 2525 | +-- | |
| 2526 | + | |
| 2527 | +LOCK TABLES `zseq_plugin_helper` WRITE; | |
| 2528 | +/*!40000 ALTER TABLE `zseq_plugin_helper` DISABLE KEYS */; | |
| 2529 | +/*!40000 ALTER TABLE `zseq_plugin_helper` ENABLE KEYS */; | |
| 2530 | +UNLOCK TABLES; | |
| 2531 | + | |
| 2532 | +-- | |
| 2533 | +-- Dumping data for table `zseq_plugin_rss` | |
| 2534 | +-- | |
| 2535 | + | |
| 2536 | +LOCK TABLES `zseq_plugin_rss` WRITE; | |
| 2537 | +/*!40000 ALTER TABLE `zseq_plugin_rss` DISABLE KEYS */; | |
| 2538 | +INSERT INTO `zseq_plugin_rss` VALUES | |
| 2539 | +(1); | |
| 2540 | +/*!40000 ALTER TABLE `zseq_plugin_rss` ENABLE KEYS */; | |
| 2541 | +UNLOCK TABLES; | |
| 2542 | + | |
| 2543 | +-- | |
| 2544 | +-- Dumping data for table `zseq_plugins` | |
| 2545 | +-- | |
| 2546 | + | |
| 2547 | +LOCK TABLES `zseq_plugins` WRITE; | |
| 2548 | +/*!40000 ALTER TABLE `zseq_plugins` DISABLE KEYS */; | |
| 2549 | +INSERT INTO `zseq_plugins` VALUES | |
| 2550 | +(22); | |
| 2551 | +/*!40000 ALTER TABLE `zseq_plugins` ENABLE KEYS */; | |
| 2552 | +UNLOCK TABLES; | |
| 2553 | + | |
| 2554 | +-- | |
| 2555 | +-- Dumping data for table `zseq_role_allocations` | |
| 2556 | +-- | |
| 2557 | + | |
| 2558 | +LOCK TABLES `zseq_role_allocations` WRITE; | |
| 2559 | +/*!40000 ALTER TABLE `zseq_role_allocations` DISABLE KEYS */; | |
| 2560 | +INSERT INTO `zseq_role_allocations` VALUES | |
| 2561 | +(1); | |
| 2562 | +/*!40000 ALTER TABLE `zseq_role_allocations` ENABLE KEYS */; | |
| 2563 | +UNLOCK TABLES; | |
| 2564 | + | |
| 2565 | +-- | |
| 2566 | +-- Dumping data for table `zseq_roles` | |
| 2567 | +-- | |
| 2568 | + | |
| 2569 | +LOCK TABLES `zseq_roles` WRITE; | |
| 2570 | +/*!40000 ALTER TABLE `zseq_roles` DISABLE KEYS */; | |
| 2571 | +INSERT INTO `zseq_roles` VALUES | |
| 2572 | +(4); | |
| 2573 | +/*!40000 ALTER TABLE `zseq_roles` ENABLE KEYS */; | |
| 2574 | +UNLOCK TABLES; | |
| 2575 | + | |
| 2576 | +-- | |
| 2577 | +-- Dumping data for table `zseq_saved_searches` | |
| 2578 | +-- | |
| 2579 | + | |
| 2580 | +LOCK TABLES `zseq_saved_searches` WRITE; | |
| 2581 | +/*!40000 ALTER TABLE `zseq_saved_searches` DISABLE KEYS */; | |
| 2582 | +INSERT INTO `zseq_saved_searches` VALUES | |
| 2583 | +(1); | |
| 2584 | +/*!40000 ALTER TABLE `zseq_saved_searches` ENABLE KEYS */; | |
| 2585 | +UNLOCK TABLES; | |
| 2586 | + | |
| 2587 | +-- | |
| 2588 | +-- Dumping data for table `zseq_scheduler_tasks` | |
| 2589 | +-- | |
| 2590 | + | |
| 2591 | +LOCK TABLES `zseq_scheduler_tasks` WRITE; | |
| 2592 | +/*!40000 ALTER TABLE `zseq_scheduler_tasks` DISABLE KEYS */; | |
| 2593 | +INSERT INTO `zseq_scheduler_tasks` VALUES | |
| 2594 | +(10); | |
| 2595 | +/*!40000 ALTER TABLE `zseq_scheduler_tasks` ENABLE KEYS */; | |
| 2596 | +UNLOCK TABLES; | |
| 2597 | + | |
| 2598 | +-- | |
| 2599 | +-- Dumping data for table `zseq_search_saved` | |
| 2600 | +-- | |
| 2601 | + | |
| 2602 | +LOCK TABLES `zseq_search_saved` WRITE; | |
| 2603 | +/*!40000 ALTER TABLE `zseq_search_saved` DISABLE KEYS */; | |
| 2604 | +/*!40000 ALTER TABLE `zseq_search_saved` ENABLE KEYS */; | |
| 2605 | +UNLOCK TABLES; | |
| 2606 | + | |
| 2607 | +-- | |
| 2608 | +-- Dumping data for table `zseq_status_lookup` | |
| 2609 | +-- | |
| 2610 | + | |
| 2611 | +LOCK TABLES `zseq_status_lookup` WRITE; | |
| 2612 | +/*!40000 ALTER TABLE `zseq_status_lookup` DISABLE KEYS */; | |
| 2613 | +INSERT INTO `zseq_status_lookup` VALUES | |
| 2614 | +(6); | |
| 2615 | +/*!40000 ALTER TABLE `zseq_status_lookup` ENABLE KEYS */; | |
| 2616 | +UNLOCK TABLES; | |
| 2617 | + | |
| 2618 | +-- | |
| 2619 | +-- Dumping data for table `zseq_system_settings` | |
| 2620 | +-- | |
| 2621 | + | |
| 2622 | +LOCK TABLES `zseq_system_settings` WRITE; | |
| 2623 | +/*!40000 ALTER TABLE `zseq_system_settings` DISABLE KEYS */; | |
| 2624 | +INSERT INTO `zseq_system_settings` VALUES | |
| 2625 | +(3); | |
| 2626 | +/*!40000 ALTER TABLE `zseq_system_settings` ENABLE KEYS */; | |
| 2627 | +UNLOCK TABLES; | |
| 2628 | + | |
| 2629 | +-- | |
| 2630 | +-- Dumping data for table `zseq_tag_words` | |
| 2631 | +-- | |
| 2632 | + | |
| 2633 | +LOCK TABLES `zseq_tag_words` WRITE; | |
| 2634 | +/*!40000 ALTER TABLE `zseq_tag_words` DISABLE KEYS */; | |
| 2635 | +INSERT INTO `zseq_tag_words` VALUES | |
| 2636 | +(1); | |
| 2637 | +/*!40000 ALTER TABLE `zseq_tag_words` ENABLE KEYS */; | |
| 2638 | +UNLOCK TABLES; | |
| 2639 | + | |
| 2640 | +-- | |
| 2641 | +-- Dumping data for table `zseq_time_period` | |
| 2642 | +-- | |
| 2643 | + | |
| 2644 | +LOCK TABLES `zseq_time_period` WRITE; | |
| 2645 | +/*!40000 ALTER TABLE `zseq_time_period` DISABLE KEYS */; | |
| 2646 | +INSERT INTO `zseq_time_period` VALUES | |
| 2647 | +(1); | |
| 2648 | +/*!40000 ALTER TABLE `zseq_time_period` ENABLE KEYS */; | |
| 2649 | +UNLOCK TABLES; | |
| 2650 | + | |
| 2651 | +-- | |
| 2652 | +-- Dumping data for table `zseq_time_unit_lookup` | |
| 2653 | +-- | |
| 2654 | + | |
| 2655 | +LOCK TABLES `zseq_time_unit_lookup` WRITE; | |
| 2656 | +/*!40000 ALTER TABLE `zseq_time_unit_lookup` DISABLE KEYS */; | |
| 2657 | +INSERT INTO `zseq_time_unit_lookup` VALUES | |
| 2658 | +(3); | |
| 2659 | +/*!40000 ALTER TABLE `zseq_time_unit_lookup` ENABLE KEYS */; | |
| 2660 | +UNLOCK TABLES; | |
| 2661 | + | |
| 2662 | +-- | |
| 2663 | +-- Dumping data for table `zseq_units_lookup` | |
| 2664 | +-- | |
| 2665 | + | |
| 2666 | +LOCK TABLES `zseq_units_lookup` WRITE; | |
| 2667 | +/*!40000 ALTER TABLE `zseq_units_lookup` DISABLE KEYS */; | |
| 2668 | +INSERT INTO `zseq_units_lookup` VALUES | |
| 2669 | +(1); | |
| 2670 | +/*!40000 ALTER TABLE `zseq_units_lookup` ENABLE KEYS */; | |
| 2671 | +UNLOCK TABLES; | |
| 2672 | + | |
| 2673 | +-- | |
| 2674 | +-- Dumping data for table `zseq_units_organisations_link` | |
| 2675 | +-- | |
| 2676 | + | |
| 2677 | +LOCK TABLES `zseq_units_organisations_link` WRITE; | |
| 2678 | +/*!40000 ALTER TABLE `zseq_units_organisations_link` DISABLE KEYS */; | |
| 2679 | +INSERT INTO `zseq_units_organisations_link` VALUES | |
| 2680 | +(1); | |
| 2681 | +/*!40000 ALTER TABLE `zseq_units_organisations_link` ENABLE KEYS */; | |
| 2682 | +UNLOCK TABLES; | |
| 2683 | + | |
| 2684 | +-- | |
| 2685 | +-- Dumping data for table `zseq_upgrades` | |
| 2686 | +-- | |
| 2687 | + | |
| 2688 | +LOCK TABLES `zseq_upgrades` WRITE; | |
| 2689 | +/*!40000 ALTER TABLE `zseq_upgrades` DISABLE KEYS */; | |
| 2690 | +INSERT INTO `zseq_upgrades` VALUES | |
| 2691 | +(221); | |
| 2692 | +/*!40000 ALTER TABLE `zseq_upgrades` ENABLE KEYS */; | |
| 2693 | +UNLOCK TABLES; | |
| 2694 | + | |
| 2695 | +-- | |
| 2696 | +-- Dumping data for table `zseq_user_history` | |
| 2697 | +-- | |
| 2698 | + | |
| 2699 | +LOCK TABLES `zseq_user_history` WRITE; | |
| 2700 | +/*!40000 ALTER TABLE `zseq_user_history` DISABLE KEYS */; | |
| 2701 | +/*!40000 ALTER TABLE `zseq_user_history` ENABLE KEYS */; | |
| 2702 | +UNLOCK TABLES; | |
| 2703 | + | |
| 2704 | +-- | |
| 2705 | +-- Dumping data for table `zseq_users` | |
| 2706 | +-- | |
| 2707 | + | |
| 2708 | +LOCK TABLES `zseq_users` WRITE; | |
| 2709 | +/*!40000 ALTER TABLE `zseq_users` DISABLE KEYS */; | |
| 2710 | +INSERT INTO `zseq_users` VALUES | |
| 2711 | +(3); | |
| 2712 | +/*!40000 ALTER TABLE `zseq_users` ENABLE KEYS */; | |
| 2713 | +UNLOCK TABLES; | |
| 2714 | + | |
| 2715 | +-- | |
| 2716 | +-- Dumping data for table `zseq_users_groups_link` | |
| 2717 | +-- | |
| 2718 | + | |
| 2719 | +LOCK TABLES `zseq_users_groups_link` WRITE; | |
| 2720 | +/*!40000 ALTER TABLE `zseq_users_groups_link` DISABLE KEYS */; | |
| 2721 | +INSERT INTO `zseq_users_groups_link` VALUES | |
| 2722 | +(3); | |
| 2723 | +/*!40000 ALTER TABLE `zseq_users_groups_link` ENABLE KEYS */; | |
| 2724 | +UNLOCK TABLES; | |
| 2725 | + | |
| 2726 | +-- | |
| 2727 | +-- Dumping data for table `zseq_workflow_state_disabled_actions` | |
| 2728 | +-- | |
| 2729 | + | |
| 2730 | +LOCK TABLES `zseq_workflow_state_disabled_actions` WRITE; | |
| 2731 | +/*!40000 ALTER TABLE `zseq_workflow_state_disabled_actions` DISABLE KEYS */; | |
| 2732 | +/*!40000 ALTER TABLE `zseq_workflow_state_disabled_actions` ENABLE KEYS */; | |
| 2733 | +UNLOCK TABLES; | |
| 2734 | + | |
| 2735 | +-- | |
| 2736 | +-- Dumping data for table `zseq_workflow_state_permission_assignments` | |
| 2737 | +-- | |
| 2738 | + | |
| 2739 | +LOCK TABLES `zseq_workflow_state_permission_assignments` WRITE; | |
| 2740 | +/*!40000 ALTER TABLE `zseq_workflow_state_permission_assignments` DISABLE KEYS */; | |
| 2741 | +/*!40000 ALTER TABLE `zseq_workflow_state_permission_assignments` ENABLE KEYS */; | |
| 2742 | +UNLOCK TABLES; | |
| 2743 | + | |
| 2744 | +-- | |
| 2745 | +-- Dumping data for table `zseq_workflow_states` | |
| 2746 | +-- | |
| 2747 | + | |
| 2748 | +LOCK TABLES `zseq_workflow_states` WRITE; | |
| 2749 | +/*!40000 ALTER TABLE `zseq_workflow_states` DISABLE KEYS */; | |
| 2750 | +INSERT INTO `zseq_workflow_states` VALUES | |
| 2751 | +(7); | |
| 2752 | +/*!40000 ALTER TABLE `zseq_workflow_states` ENABLE KEYS */; | |
| 2753 | +UNLOCK TABLES; | |
| 2754 | + | |
| 2755 | +-- | |
| 2756 | +-- Dumping data for table `zseq_workflow_transitions` | |
| 2757 | +-- | |
| 2758 | + | |
| 2759 | +LOCK TABLES `zseq_workflow_transitions` WRITE; | |
| 2760 | +/*!40000 ALTER TABLE `zseq_workflow_transitions` DISABLE KEYS */; | |
| 2761 | +INSERT INTO `zseq_workflow_transitions` VALUES | |
| 2762 | +(6); | |
| 2763 | +/*!40000 ALTER TABLE `zseq_workflow_transitions` ENABLE KEYS */; | |
| 2764 | +UNLOCK TABLES; | |
| 2765 | + | |
| 2766 | +-- | |
| 2767 | +-- Dumping data for table `zseq_workflow_trigger_instances` | |
| 2768 | +-- | |
| 2769 | + | |
| 2770 | +LOCK TABLES `zseq_workflow_trigger_instances` WRITE; | |
| 2771 | +/*!40000 ALTER TABLE `zseq_workflow_trigger_instances` DISABLE KEYS */; | |
| 2772 | +/*!40000 ALTER TABLE `zseq_workflow_trigger_instances` ENABLE KEYS */; | |
| 2773 | +UNLOCK TABLES; | |
| 2774 | + | |
| 2775 | +-- | |
| 2776 | +-- Dumping data for table `zseq_workflows` | |
| 2777 | +-- | |
| 2778 | + | |
| 2779 | +LOCK TABLES `zseq_workflows` WRITE; | |
| 2780 | +/*!40000 ALTER TABLE `zseq_workflows` DISABLE KEYS */; | |
| 2781 | +INSERT INTO `zseq_workflows` VALUES | |
| 2782 | +(3); | |
| 2783 | +/*!40000 ALTER TABLE `zseq_workflows` ENABLE KEYS */; | |
| 2784 | +UNLOCK TABLES; | |
| 2785 | +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | |
| 2786 | + | |
| 2787 | +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | |
| 2788 | +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | |
| 2789 | +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | |
| 2790 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
| 2791 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
| 2792 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | |
| 2793 | +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
| 2794 | + | |
| 2795 | +-- Dump completed on 2008-06-26 13:51:02 | ... | ... |
setup/wizard/sql/structure.sql
0 → 100755
| 1 | +-- | |
| 2 | +-- $Id$ | |
| 3 | +-- | |
| 4 | +-- KnowledgeTree Community Edition | |
| 5 | +-- Document Management Made Simple | |
| 6 | +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. | |
| 7 | +-- Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 8 | +-- | |
| 9 | +-- This program is free software; you can redistribute it and/or modify it under | |
| 10 | +-- the terms of the GNU General Public License version 3 as published by the | |
| 11 | +-- Free Software Foundation. | |
| 12 | +-- | |
| 13 | +-- This program is distributed in the hope that it will be useful, but WITHOUT | |
| 14 | +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 15 | +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 16 | +-- details. | |
| 17 | +-- | |
| 18 | +-- You should have received a copy of the GNU General Public License | |
| 19 | +-- along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 20 | +-- | |
| 21 | +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 22 | +-- California 94120-7775, or email info@knowledgetree.com. | |
| 23 | +-- | |
| 24 | +-- The interactive user interfaces in modified source and object code versions | |
| 25 | +-- of this program must display Appropriate Legal Notices, as required under | |
| 26 | +-- Section 5 of the GNU General Public License version 3. | |
| 27 | +-- | |
| 28 | +-- In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 29 | +-- these Appropriate Legal Notices must retain the display of the "Powered by | |
| 30 | +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 31 | +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 32 | +-- must display the words "Powered by KnowledgeTree" and retain the original | |
| 33 | +-- copyright notice. | |
| 34 | +-- Contributor( s): ______________________________________ | |
| 35 | +-- | |
| 36 | +-- MySQL dump 10.11 | |
| 37 | +-- | |
| 38 | +-- Host: localhost Database: ktdms | |
| 39 | +-- ------------------------------------------------------ | |
| 40 | +-- Server version 5.0.41-log | |
| 41 | + | |
| 42 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| 43 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| 44 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| 45 | +/*!40101 SET NAMES utf8 */; | |
| 46 | +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
| 47 | +/*!40103 SET TIME_ZONE='+00:00' */; | |
| 48 | +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
| 49 | +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
| 50 | +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
| 51 | +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
| 52 | + | |
| 53 | +-- | |
| 54 | +-- Table structure for table `active_sessions` | |
| 55 | +-- | |
| 56 | + | |
| 57 | +CREATE TABLE `active_sessions` ( | |
| 58 | + `id` int(11) NOT NULL auto_increment, | |
| 59 | + `user_id` int(11) default NULL, | |
| 60 | + `session_id` varchar(32) default NULL, | |
| 61 | + `lastused` datetime default NULL, | |
| 62 | + `ip` varchar(15) default NULL, | |
| 63 | + `apptype` varchar(15) default 'webapp' NOT NULL, | |
| 64 | + PRIMARY KEY (`id`), | |
| 65 | + KEY `user_id` (`user_id`), | |
| 66 | + KEY `session_id` (`session_id`), | |
| 67 | + CONSTRAINT `active_sessions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 68 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 69 | + | |
| 70 | +-- | |
| 71 | +-- Table structure for table `archive_restoration_request` | |
| 72 | +-- | |
| 73 | + | |
| 74 | +CREATE TABLE `archive_restoration_request` ( | |
| 75 | + `id` int(11) NOT NULL auto_increment, | |
| 76 | + `document_id` int(11) NOT NULL default '0', | |
| 77 | + `request_user_id` int(11) NOT NULL default '0', | |
| 78 | + `admin_user_id` int(11) NOT NULL default '0', | |
| 79 | + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 80 | + PRIMARY KEY (`id`), | |
| 81 | + KEY `document_id` (`document_id`), | |
| 82 | + KEY `request_user_id` (`request_user_id`), | |
| 83 | + KEY `admin_user_id` (`admin_user_id`), | |
| 84 | + CONSTRAINT `archive_restoration_request_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 85 | + CONSTRAINT `archive_restoration_request_ibfk_2` FOREIGN KEY (`request_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 86 | + CONSTRAINT `archive_restoration_request_ibfk_3` FOREIGN KEY (`admin_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 87 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 88 | + | |
| 89 | +-- | |
| 90 | +-- Table structure for table `archiving_settings` | |
| 91 | +-- | |
| 92 | + | |
| 93 | +CREATE TABLE `archiving_settings` ( | |
| 94 | + `id` int(11) NOT NULL auto_increment, | |
| 95 | + `archiving_type_id` int(11) NOT NULL default '0', | |
| 96 | + `expiration_date` date default NULL, | |
| 97 | + `document_transaction_id` int(11) default NULL, | |
| 98 | + `time_period_id` int(11) default NULL, | |
| 99 | + PRIMARY KEY (`id`), | |
| 100 | + KEY `archiving_type_id` (`archiving_type_id`), | |
| 101 | + KEY `time_period_id` (`time_period_id`), | |
| 102 | + CONSTRAINT `archiving_settings_ibfk_1` FOREIGN KEY (`archiving_type_id`) REFERENCES `archiving_type_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 103 | + CONSTRAINT `archiving_settings_ibfk_2` FOREIGN KEY (`time_period_id`) REFERENCES `time_period` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 104 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 105 | + | |
| 106 | +-- | |
| 107 | +-- Table structure for table `archiving_type_lookup` | |
| 108 | +-- | |
| 109 | + | |
| 110 | +CREATE TABLE `archiving_type_lookup` ( | |
| 111 | + `id` int(11) NOT NULL auto_increment, | |
| 112 | + `name` varchar(100) default NULL, | |
| 113 | + PRIMARY KEY (`id`) | |
| 114 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 115 | + | |
| 116 | +-- | |
| 117 | +-- Table structure for table `authentication_sources` | |
| 118 | +-- | |
| 119 | + | |
| 120 | +CREATE TABLE `authentication_sources` ( | |
| 121 | + `id` int(11) NOT NULL auto_increment, | |
| 122 | + `name` varchar(50) NOT NULL, | |
| 123 | + `namespace` varchar(255) NOT NULL default '', | |
| 124 | + `authentication_provider` varchar(255) NOT NULL default '', | |
| 125 | + `config` mediumtext NOT NULL, | |
| 126 | + `is_user_source` tinyint(1) NOT NULL default '0', | |
| 127 | + `is_group_source` tinyint(1) NOT NULL default '0', | |
| 128 | + PRIMARY KEY (`id`), | |
| 129 | + KEY `namespace` (`namespace`) | |
| 130 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 131 | + | |
| 132 | +-- | |
| 133 | +-- Table structure for table `column_entries` | |
| 134 | +-- | |
| 135 | + | |
| 136 | +CREATE TABLE `column_entries` ( | |
| 137 | + `id` int(11) NOT NULL auto_increment, | |
| 138 | + `column_namespace` varchar(255) NOT NULL default '', | |
| 139 | + `view_namespace` varchar(255) NOT NULL default '', | |
| 140 | + `config_array` text NOT NULL, | |
| 141 | + `position` int(11) NOT NULL default '0', | |
| 142 | + `required` tinyint(1) NOT NULL default '0', | |
| 143 | + PRIMARY KEY (`id`), | |
| 144 | + KEY `view_namespace` (`view_namespace`) | |
| 145 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
| 146 | + | |
| 147 | +-- | |
| 148 | +-- Table structure for table `comment_searchable_text` | |
| 149 | +-- | |
| 150 | + | |
| 151 | +CREATE TABLE `comment_searchable_text` ( | |
| 152 | + `comment_id` int(11) NOT NULL default '0', | |
| 153 | + `body` mediumtext, | |
| 154 | + `document_id` int(11) NOT NULL default '0', | |
| 155 | + PRIMARY KEY (`comment_id`), | |
| 156 | + KEY `document_id` (`document_id`), | |
| 157 | + FULLTEXT KEY `body` (`body`) | |
| 158 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 159 | + | |
| 160 | +-- | |
| 161 | +-- Table structure for table `config_groups` | |
| 162 | +-- | |
| 163 | + | |
| 164 | +CREATE TABLE `config_groups` ( | |
| 165 | + `id` int(255) unsigned NOT NULL auto_increment, | |
| 166 | + `name` varchar(255) NOT NULL, | |
| 167 | + `display_name` varchar(255) default NULL, | |
| 168 | + `description` mediumtext, | |
| 169 | + `category` varchar(255) default NULL, | |
| 170 | + PRIMARY KEY (`id`), | |
| 171 | + UNIQUE KEY `name` (`name`) | |
| 172 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 173 | + | |
| 174 | +-- | |
| 175 | +-- Table structure for table `config_settings` | |
| 176 | +-- | |
| 177 | + | |
| 178 | +CREATE TABLE `config_settings` ( | |
| 179 | + `id` int(11) NOT NULL auto_increment, | |
| 180 | + `group_name` varchar(255) NOT NULL, | |
| 181 | + `display_name` varchar(255) default NULL, | |
| 182 | + `description` mediumtext, | |
| 183 | + `item` varchar(255) NOT NULL, | |
| 184 | + `value` varchar(255) NOT NULL default 'default', | |
| 185 | + `default_value` varchar(255) NOT NULL, | |
| 186 | + `type` enum('boolean','string','numeric_string','numeric','radio','dropdown') default 'string', | |
| 187 | + `options` mediumtext, | |
| 188 | + `can_edit` tinyint(1) NOT NULL default '1', | |
| 189 | + PRIMARY KEY (`id`) | |
| 190 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 191 | + | |
| 192 | +-- | |
| 193 | +-- Table structure for table `dashlet_disables` | |
| 194 | +-- | |
| 195 | + | |
| 196 | +CREATE TABLE `dashlet_disables` ( | |
| 197 | + `id` int(11) NOT NULL auto_increment, | |
| 198 | + `user_id` int(11) NOT NULL default '0', | |
| 199 | + `dashlet_namespace` varchar(255) NOT NULL default '', | |
| 200 | + PRIMARY KEY (`id`), | |
| 201 | + KEY `user_id` (`user_id`), | |
| 202 | + KEY `dashlet_namespace` (`dashlet_namespace`), | |
| 203 | + CONSTRAINT `dashlet_disables_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 204 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 205 | + | |
| 206 | +-- | |
| 207 | +-- Table structure for table `data_types` | |
| 208 | +-- | |
| 209 | + | |
| 210 | +CREATE TABLE `data_types` ( | |
| 211 | + `id` int(11) NOT NULL auto_increment, | |
| 212 | + `name` varchar(255) NOT NULL, | |
| 213 | + PRIMARY KEY (`id`) | |
| 214 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 215 | + | |
| 216 | +-- | |
| 217 | +-- Table structure for table `discussion_comments` | |
| 218 | +-- | |
| 219 | + | |
| 220 | +CREATE TABLE `discussion_comments` ( | |
| 221 | + `id` int(11) NOT NULL auto_increment, | |
| 222 | + `thread_id` int(11) NOT NULL default '0', | |
| 223 | + `in_reply_to` int(11) default NULL, | |
| 224 | + `user_id` int(11) NOT NULL default '0', | |
| 225 | + `subject` mediumtext, | |
| 226 | + `body` mediumtext, | |
| 227 | + `date` datetime default NULL, | |
| 228 | + PRIMARY KEY (`id`), | |
| 229 | + KEY `thread_id` (`thread_id`), | |
| 230 | + KEY `user_id` (`user_id`), | |
| 231 | + KEY `in_reply_to` (`in_reply_to`), | |
| 232 | + CONSTRAINT `discussion_comments_ibfk_1` FOREIGN KEY (`thread_id`) REFERENCES `discussion_threads` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 233 | + CONSTRAINT `discussion_comments_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 234 | + CONSTRAINT `discussion_comments_ibfk_3` FOREIGN KEY (`in_reply_to`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 235 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 236 | + | |
| 237 | +-- | |
| 238 | +-- Table structure for table `discussion_threads` | |
| 239 | +-- | |
| 240 | + | |
| 241 | +CREATE TABLE `discussion_threads` ( | |
| 242 | + `id` int(11) NOT NULL auto_increment, | |
| 243 | + `document_id` int(11) NOT NULL, | |
| 244 | + `first_comment_id` int(11) default NULL, | |
| 245 | + `last_comment_id` int(11) default NULL, | |
| 246 | + `views` int(11) NOT NULL default '0', | |
| 247 | + `replies` int(11) NOT NULL default '0', | |
| 248 | + `creator_id` int(11) NOT NULL, | |
| 249 | + `close_reason` mediumtext NOT NULL, | |
| 250 | + `close_metadata_version` int(11) NOT NULL default '0', | |
| 251 | + `state` int(1) NOT NULL default '0', | |
| 252 | + PRIMARY KEY (`id`), | |
| 253 | + KEY `document_id` (`document_id`), | |
| 254 | + KEY `first_comment_id` (`first_comment_id`), | |
| 255 | + KEY `last_comment_id` (`last_comment_id`), | |
| 256 | + KEY `creator_id` (`creator_id`), | |
| 257 | + CONSTRAINT `discussion_threads_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 258 | + CONSTRAINT `discussion_threads_ibfk_2` FOREIGN KEY (`first_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 259 | + CONSTRAINT `discussion_threads_ibfk_3` FOREIGN KEY (`last_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 260 | + CONSTRAINT `discussion_threads_ibfk_4` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 261 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 262 | + | |
| 263 | +-- | |
| 264 | +-- Table structure for table `document_archiving_link` | |
| 265 | +-- | |
| 266 | + | |
| 267 | +CREATE TABLE `document_archiving_link` ( | |
| 268 | + `id` int(11) NOT NULL auto_increment, | |
| 269 | + `document_id` int(11) NOT NULL default '0', | |
| 270 | + `archiving_settings_id` int(11) NOT NULL default '0', | |
| 271 | + PRIMARY KEY (`id`), | |
| 272 | + KEY `document_id` (`document_id`), | |
| 273 | + KEY `archiving_settings_id` (`archiving_settings_id`), | |
| 274 | + CONSTRAINT `document_archiving_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 275 | + CONSTRAINT `document_archiving_link_ibfk_2` FOREIGN KEY (`archiving_settings_id`) REFERENCES `archiving_settings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 276 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 277 | + | |
| 278 | +-- | |
| 279 | +-- Table structure for table `document_content_version` | |
| 280 | +-- | |
| 281 | + | |
| 282 | +CREATE TABLE `document_content_version` ( | |
| 283 | + `id` int(11) NOT NULL auto_increment, | |
| 284 | + `document_id` int(11) NOT NULL default '0', | |
| 285 | + `filename` mediumtext NOT NULL, | |
| 286 | + `size` bigint(20) NOT NULL default '0', | |
| 287 | + `mime_id` int(11) default '9', | |
| 288 | + `major_version` int(11) NOT NULL default '0', | |
| 289 | + `minor_version` int(11) NOT NULL default '0', | |
| 290 | + `storage_path` varchar(1024) default NULL, | |
| 291 | + `md5hash` char(32) default NULL, | |
| 292 | + PRIMARY KEY (`id`), | |
| 293 | + KEY `document_id` (`document_id`), | |
| 294 | + KEY `mime_id` (`mime_id`), | |
| 295 | + KEY `storage_path` (`storage_path`(255)), | |
| 296 | + KEY `filename` (`filename`(255)), | |
| 297 | + KEY `size` (`size`), | |
| 298 | + CONSTRAINT `document_content_version_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 299 | + CONSTRAINT `document_content_version_ibfk_2` FOREIGN KEY (`mime_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 300 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 301 | + | |
| 302 | +-- | |
| 303 | +-- Table structure for table `document_fields` | |
| 304 | +-- | |
| 305 | + | |
| 306 | +CREATE TABLE `document_fields` ( | |
| 307 | + `id` int(11) NOT NULL auto_increment, | |
| 308 | + `name` varchar(255) NOT NULL default '', | |
| 309 | + `data_type` varchar(100) NOT NULL default '', | |
| 310 | + `is_generic` tinyint(1) default NULL, | |
| 311 | + `has_lookup` tinyint(1) default NULL, | |
| 312 | + `has_lookuptree` tinyint(1) default NULL, | |
| 313 | + `parent_fieldset` int(11) default NULL, | |
| 314 | + `is_mandatory` tinyint(1) NOT NULL default '0', | |
| 315 | + `description` mediumtext NOT NULL, | |
| 316 | + `position` int(11) NOT NULL default '0', | |
| 317 | + PRIMARY KEY (`id`), | |
| 318 | + KEY `parent_fieldset` (`parent_fieldset`), | |
| 319 | + CONSTRAINT `document_fields_ibfk_1` FOREIGN KEY (`parent_fieldset`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 320 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 321 | + | |
| 322 | +-- | |
| 323 | +-- Table structure for table `document_fields_link` | |
| 324 | +-- | |
| 325 | + | |
| 326 | +CREATE TABLE `document_fields_link` ( | |
| 327 | + `id` int(11) NOT NULL auto_increment, | |
| 328 | + `document_field_id` int(11) NOT NULL default '0', | |
| 329 | + `value` mediumtext NOT NULL, | |
| 330 | + `metadata_version_id` int(11) default NULL, | |
| 331 | + PRIMARY KEY (`id`), | |
| 332 | + KEY `document_field_id` (`document_field_id`), | |
| 333 | + KEY `metadata_version_id` (`metadata_version_id`), | |
| 334 | + CONSTRAINT `document_fields_link_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 335 | + CONSTRAINT `document_fields_link_ibfk_2` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 336 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 337 | + | |
| 338 | +-- | |
| 339 | +-- Table structure for table `document_incomplete` | |
| 340 | +-- | |
| 341 | + | |
| 342 | +CREATE TABLE `document_incomplete` ( | |
| 343 | + `id` int(11) NOT NULL auto_increment, | |
| 344 | + `contents` tinyint(1) unsigned NOT NULL default '0', | |
| 345 | + `metadata` tinyint(1) unsigned NOT NULL default '0', | |
| 346 | + PRIMARY KEY (`id`) | |
| 347 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 348 | + | |
| 349 | +-- | |
| 350 | +-- Table structure for table `document_link` | |
| 351 | +-- | |
| 352 | + | |
| 353 | +CREATE TABLE `document_link` ( | |
| 354 | + `id` int(11) NOT NULL auto_increment, | |
| 355 | + `parent_document_id` int(11) NOT NULL default '0', | |
| 356 | + `child_document_id` int(11) NOT NULL default '0', | |
| 357 | + `link_type_id` int(11) NOT NULL default '0', | |
| 358 | + `external_url` varchar(255) default NULL, | |
| 359 | + `external_name` varchar(50) default NULL, | |
| 360 | + PRIMARY KEY (`id`), | |
| 361 | + KEY `parent_document_id` (`parent_document_id`), | |
| 362 | + KEY `child_document_id` (`child_document_id`), | |
| 363 | + KEY `link_type_id` (`link_type_id`), | |
| 364 | + CONSTRAINT `document_link_ibfk_1` FOREIGN KEY (`parent_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 365 | + CONSTRAINT `document_link_ibfk_2` FOREIGN KEY (`child_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 366 | + CONSTRAINT `document_link_ibfk_3` FOREIGN KEY (`link_type_id`) REFERENCES `document_link_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 367 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 368 | + | |
| 369 | +-- | |
| 370 | +-- Table structure for table `document_link_types` | |
| 371 | +-- | |
| 372 | + | |
| 373 | +CREATE TABLE `document_link_types` ( | |
| 374 | + `id` int(11) NOT NULL auto_increment, | |
| 375 | + `name` varchar(100) NOT NULL, | |
| 376 | + `reverse_name` varchar(100) NOT NULL, | |
| 377 | + `description` varchar(255) NOT NULL, | |
| 378 | + PRIMARY KEY (`id`) | |
| 379 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 380 | + | |
| 381 | +-- | |
| 382 | +-- Table structure for table `document_metadata_version` | |
| 383 | +-- | |
| 384 | + | |
| 385 | +CREATE TABLE `document_metadata_version` ( | |
| 386 | + `id` int(11) NOT NULL auto_increment, | |
| 387 | + `document_id` int(11) NOT NULL default '0', | |
| 388 | + `content_version_id` int(11) NOT NULL default '0', | |
| 389 | + `document_type_id` int(11) NOT NULL default '0', | |
| 390 | + `name` mediumtext NOT NULL, | |
| 391 | + `description` varchar(255) default NULL, | |
| 392 | + `status_id` int(11) default NULL, | |
| 393 | + `metadata_version` int(11) NOT NULL default '0', | |
| 394 | + `version_created` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 395 | + `version_creator_id` int(11) NOT NULL default '0', | |
| 396 | + `workflow_id` int(11) default NULL, | |
| 397 | + `workflow_state_id` int(11) default NULL, | |
| 398 | + PRIMARY KEY (`id`), | |
| 399 | + KEY `document_type_id` (`document_type_id`), | |
| 400 | + KEY `status_id` (`status_id`), | |
| 401 | + KEY `document_id` (`document_id`), | |
| 402 | + KEY `version_creator_id` (`version_creator_id`), | |
| 403 | + KEY `content_version_id` (`content_version_id`), | |
| 404 | + KEY `workflow_id` (`workflow_id`), | |
| 405 | + KEY `workflow_state_id` (`workflow_state_id`), | |
| 406 | + KEY `version_created` (`version_created`), | |
| 407 | + CONSTRAINT `document_metadata_version_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 408 | + CONSTRAINT `document_metadata_version_ibfk_2` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 409 | + CONSTRAINT `document_metadata_version_ibfk_3` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 410 | + CONSTRAINT `document_metadata_version_ibfk_4` FOREIGN KEY (`version_creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 411 | + CONSTRAINT `document_metadata_version_ibfk_5` FOREIGN KEY (`content_version_id`) REFERENCES `document_content_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 412 | + CONSTRAINT `document_metadata_version_ibfk_6` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 413 | + CONSTRAINT `document_metadata_version_ibfk_7` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 414 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 415 | + | |
| 416 | +-- | |
| 417 | +-- Table structure for table `document_role_allocations` | |
| 418 | +-- | |
| 419 | + | |
| 420 | +CREATE TABLE `document_role_allocations` ( | |
| 421 | + `id` int(11) NOT NULL auto_increment, | |
| 422 | + `document_id` int(11) NOT NULL default '0', | |
| 423 | + `role_id` int(11) NOT NULL default '0', | |
| 424 | + `permission_descriptor_id` int(11) NOT NULL default '0', | |
| 425 | + PRIMARY KEY (`id`), | |
| 426 | + KEY `role_id` (`role_id`), | |
| 427 | + KEY `permission_descriptor_id` (`permission_descriptor_id`), | |
| 428 | + KEY `document_id_role_id` (`document_id`,`role_id`), | |
| 429 | + CONSTRAINT `document_role_allocations_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 430 | + CONSTRAINT `document_role_allocations_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 431 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 432 | + | |
| 433 | +-- | |
| 434 | +-- Table structure for table `document_searchable_text` | |
| 435 | +-- | |
| 436 | + | |
| 437 | +CREATE TABLE `document_searchable_text` ( | |
| 438 | + `document_id` int(11) default NULL, | |
| 439 | + `document_text` longtext, | |
| 440 | + KEY `document_id` (`document_id`), | |
| 441 | + FULLTEXT KEY `document_text` (`document_text`) | |
| 442 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 443 | + | |
| 444 | +-- | |
| 445 | +-- Table structure for table `document_subscriptions` | |
| 446 | +-- | |
| 447 | + | |
| 448 | +CREATE TABLE `document_subscriptions` ( | |
| 449 | + `id` int(11) NOT NULL auto_increment, | |
| 450 | + `user_id` int(11) NOT NULL default '0', | |
| 451 | + `document_id` int(11) NOT NULL default '0', | |
| 452 | + `is_alerted` tinyint(1) default NULL, | |
| 453 | + PRIMARY KEY (`id`), | |
| 454 | + KEY `user_id` (`user_id`), | |
| 455 | + KEY `document_id` (`document_id`), | |
| 456 | + CONSTRAINT `document_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 457 | + CONSTRAINT `document_subscriptions_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 458 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 459 | + | |
| 460 | +-- | |
| 461 | +-- Table structure for table `document_tags` | |
| 462 | +-- | |
| 463 | + | |
| 464 | +CREATE TABLE `document_tags` ( | |
| 465 | + `document_id` int(11) NOT NULL, | |
| 466 | + `tag_id` int(11) NOT NULL, | |
| 467 | + PRIMARY KEY (`document_id`,`tag_id`), | |
| 468 | + KEY `tag_id` (`tag_id`), | |
| 469 | + CONSTRAINT `document_tags_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 470 | + CONSTRAINT `document_tags_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `tag_words` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 471 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 472 | + | |
| 473 | +-- | |
| 474 | +-- Table structure for table `document_text` | |
| 475 | +-- | |
| 476 | + | |
| 477 | +CREATE TABLE `document_text` ( | |
| 478 | + `document_id` int(11) NOT NULL default '0', | |
| 479 | + `document_text` longtext, | |
| 480 | + PRIMARY KEY (`document_id`), | |
| 481 | + FULLTEXT KEY `document_text` (`document_text`) | |
| 482 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 483 | + | |
| 484 | +-- | |
| 485 | +-- Table structure for table `document_transaction_text` | |
| 486 | +-- | |
| 487 | + | |
| 488 | +CREATE TABLE `document_transaction_text` ( | |
| 489 | + `document_id` int(11) NOT NULL default '0', | |
| 490 | + `document_text` mediumtext, | |
| 491 | + PRIMARY KEY (`document_id`), | |
| 492 | + FULLTEXT KEY `document_text` (`document_text`) | |
| 493 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 494 | + | |
| 495 | +-- | |
| 496 | +-- Table structure for table `document_transaction_types_lookup` | |
| 497 | +-- | |
| 498 | + | |
| 499 | +CREATE TABLE `document_transaction_types_lookup` ( | |
| 500 | + `id` int(11) NOT NULL auto_increment, | |
| 501 | + `name` varchar(100) NOT NULL default '', | |
| 502 | + `namespace` varchar(255) NOT NULL, | |
| 503 | + PRIMARY KEY (`id`), | |
| 504 | + UNIQUE KEY `namespace` (`namespace`) | |
| 505 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 506 | + | |
| 507 | +-- | |
| 508 | +-- Table structure for table `document_transactions` | |
| 509 | +-- | |
| 510 | + | |
| 511 | +CREATE TABLE `document_transactions` ( | |
| 512 | + `id` int(11) NOT NULL auto_increment, | |
| 513 | + `document_id` int(11) default NULL, | |
| 514 | + `version` varchar(10), | |
| 515 | + `user_id` int(11) default NULL, | |
| 516 | + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 517 | + `ip` varchar(15) default NULL, | |
| 518 | + `filename` mediumtext NOT NULL, | |
| 519 | + `comment` mediumtext NOT NULL, | |
| 520 | + `transaction_namespace` varchar(255) NOT NULL default 'ktcore.transactions.event', | |
| 521 | + `session_id` int(11) default NULL, | |
| 522 | + `admin_mode` tinyint(1) NOT NULL default '0', | |
| 523 | + PRIMARY KEY (`id`), | |
| 524 | + KEY `session_id` (`session_id`), | |
| 525 | + KEY `document_id` (`document_id`), | |
| 526 | + KEY `user_id` (`user_id`), | |
| 527 | + KEY `datetime` (`datetime`,`transaction_namespace`) | |
| 528 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 529 | + | |
| 530 | +-- | |
| 531 | +-- Table structure for table `document_type_fields_link` | |
| 532 | +-- | |
| 533 | + | |
| 534 | +CREATE TABLE `document_type_fields_link` ( | |
| 535 | + `id` int(11) NOT NULL auto_increment, | |
| 536 | + `document_type_id` int(11) NOT NULL default '0', | |
| 537 | + `field_id` int(11) NOT NULL default '0', | |
| 538 | + `is_mandatory` tinyint(1) NOT NULL default '0', | |
| 539 | + PRIMARY KEY (`id`), | |
| 540 | + KEY `document_type_id` (`document_type_id`), | |
| 541 | + KEY `field_id` (`field_id`), | |
| 542 | + CONSTRAINT `document_type_fields_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 543 | + CONSTRAINT `document_type_fields_link_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 544 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 545 | + | |
| 546 | +-- | |
| 547 | +-- Table structure for table `document_type_fieldsets_link` | |
| 548 | +-- | |
| 549 | + | |
| 550 | +CREATE TABLE `document_type_fieldsets_link` ( | |
| 551 | + `id` int(11) NOT NULL auto_increment, | |
| 552 | + `document_type_id` int(11) NOT NULL default '0', | |
| 553 | + `fieldset_id` int(11) NOT NULL default '0', | |
| 554 | + PRIMARY KEY (`id`), | |
| 555 | + KEY `document_type_id` (`document_type_id`), | |
| 556 | + KEY `fieldset_id` (`fieldset_id`), | |
| 557 | + CONSTRAINT `document_type_fieldsets_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 558 | + CONSTRAINT `document_type_fieldsets_link_ibfk_2` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 559 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 560 | + | |
| 561 | +-- | |
| 562 | +-- Table structure for table `document_types_lookup` | |
| 563 | +-- | |
| 564 | + | |
| 565 | +CREATE TABLE `document_types_lookup` ( | |
| 566 | + `id` int(11) NOT NULL auto_increment, | |
| 567 | + `name` varchar(100) default NULL, | |
| 568 | + `disabled` tinyint(1) NOT NULL default '0', | |
| 569 | + PRIMARY KEY (`id`), | |
| 570 | + KEY `name` (`name`) | |
| 571 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 572 | + | |
| 573 | +-- | |
| 574 | +-- Table structure for table `documents` | |
| 575 | +-- | |
| 576 | + | |
| 577 | +CREATE TABLE `documents` ( | |
| 578 | + `id` int(11) NOT NULL auto_increment, | |
| 579 | + `creator_id` int(11) default NULL, | |
| 580 | + `modified` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 581 | + `folder_id` int(11) default NULL, | |
| 582 | + `is_checked_out` tinyint(1) NOT NULL default '0', | |
| 583 | + `parent_folder_ids` mediumtext, | |
| 584 | + `full_path` mediumtext, | |
| 585 | + `checked_out_user_id` int(11) default NULL, | |
| 586 | + `status_id` int(11) default NULL, | |
| 587 | + `created` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 588 | + `permission_object_id` int(11) default NULL, | |
| 589 | + `permission_lookup_id` int(11) default NULL, | |
| 590 | + `metadata_version` int(11) NOT NULL default '0', | |
| 591 | + `modified_user_id` int(11) default NULL, | |
| 592 | + `metadata_version_id` int(11) default NULL, | |
| 593 | + `owner_id` int(11) default NULL, | |
| 594 | + `immutable` tinyint(1) NOT NULL default '0', | |
| 595 | + `restore_folder_id` int(11) default NULL, | |
| 596 | + `restore_folder_path` text, | |
| 597 | + `checkedout` datetime default NULL, | |
| 598 | + `oem_no` varchar(255) default NULL, | |
| 599 | + `linked_document_id` int(11) default NULL, | |
| 600 | + PRIMARY KEY (`id`), | |
| 601 | + KEY `creator_id` (`creator_id`), | |
| 602 | + KEY `folder_id` (`folder_id`), | |
| 603 | + KEY `checked_out_user_id` (`checked_out_user_id`), | |
| 604 | + KEY `status_id` (`status_id`), | |
| 605 | + KEY `permission_object_id` (`permission_object_id`), | |
| 606 | + KEY `permission_lookup_id` (`permission_lookup_id`), | |
| 607 | + KEY `modified_user_id` (`modified_user_id`), | |
| 608 | + KEY `metadata_version_id` (`metadata_version_id`), | |
| 609 | + KEY `created` (`created`), | |
| 610 | + KEY `modified` (`modified`), | |
| 611 | + KEY `full_path` (`full_path`(255)), | |
| 612 | + KEY `immutable` (`immutable`), | |
| 613 | + KEY `checkedout` (`checkedout`), | |
| 614 | + KEY `oem_no` (`oem_no`), | |
| 615 | + CONSTRAINT `documents_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, | |
| 616 | + CONSTRAINT `documents_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 617 | + CONSTRAINT `documents_ibfk_3` FOREIGN KEY (`checked_out_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, | |
| 618 | + CONSTRAINT `documents_ibfk_4` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 619 | + CONSTRAINT `documents_ibfk_5` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 620 | + CONSTRAINT `documents_ibfk_6` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 621 | + CONSTRAINT `documents_ibfk_7` FOREIGN KEY (`modified_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, | |
| 622 | + CONSTRAINT `documents_ibfk_8` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 623 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 624 | + | |
| 625 | +-- | |
| 626 | +-- Table structure for table `download_files` | |
| 627 | +-- | |
| 628 | + | |
| 629 | +CREATE TABLE `download_files` ( | |
| 630 | + `document_id` int(11) NOT NULL, | |
| 631 | + `session` varchar(100) NOT NULL, | |
| 632 | + `download_date` timestamp NULL default CURRENT_TIMESTAMP, | |
| 633 | + `downloaded` int(10) unsigned NOT NULL default '0', | |
| 634 | + `filesize` int(10) unsigned NOT NULL, | |
| 635 | + `content_version` int(10) unsigned NOT NULL, | |
| 636 | + `hash` varchar(100) NOT NULL, | |
| 637 | + PRIMARY KEY (`document_id`,`session`), | |
| 638 | + CONSTRAINT `download_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 639 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 640 | + | |
| 641 | +-- | |
| 642 | +-- Table structure for table `download_queue` | |
| 643 | +-- | |
| 644 | + | |
| 645 | +CREATE TABLE `download_queue` ( | |
| 646 | + `code` char(16) NOT NULL, | |
| 647 | + `folder_id` int(11) NOT NULL, | |
| 648 | + `object_id` int(11) NOT NULL, | |
| 649 | + `object_type` enum('document', 'folder') NOT NULL default 'folder', | |
| 650 | + `user_id` int(11) NOT NULL, | |
| 651 | + `date_added` timestamp NOT NULL default CURRENT_TIMESTAMP, | |
| 652 | + `status` tinyint(4) NOT NULL default 0, | |
| 653 | + `errors` mediumtext, | |
| 654 | + INDEX (`code`) | |
| 655 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 656 | + | |
| 657 | +-- | |
| 658 | +-- Table structure for table `field_behaviour_options` | |
| 659 | +-- | |
| 660 | + | |
| 661 | +CREATE TABLE `field_behaviour_options` ( | |
| 662 | + `behaviour_id` int(11) NOT NULL default '0', | |
| 663 | + `field_id` int(11) NOT NULL default '0', | |
| 664 | + `instance_id` int(11) NOT NULL default '0', | |
| 665 | + KEY `field_id` (`field_id`), | |
| 666 | + KEY `instance_id` (`instance_id`), | |
| 667 | + KEY `behaviour_id_field_id` (`behaviour_id`,`field_id`), | |
| 668 | + CONSTRAINT `field_behaviour_options_ibfk_1` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 669 | + CONSTRAINT `field_behaviour_options_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 670 | + CONSTRAINT `field_behaviour_options_ibfk_3` FOREIGN KEY (`instance_id`) REFERENCES `field_value_instances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 671 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 672 | + | |
| 673 | +-- | |
| 674 | +-- Table structure for table `field_behaviours` | |
| 675 | +-- | |
| 676 | + | |
| 677 | +CREATE TABLE `field_behaviours` ( | |
| 678 | + `id` int(11) NOT NULL auto_increment, | |
| 679 | + `name` varchar(255) NOT NULL, | |
| 680 | + `human_name` varchar(100) NOT NULL, | |
| 681 | + `field_id` int(11) NOT NULL default '0', | |
| 682 | + PRIMARY KEY (`id`), | |
| 683 | + KEY `field_id` (`field_id`), | |
| 684 | + KEY `name` (`name`), | |
| 685 | + CONSTRAINT `field_behaviours_ibfk_1` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 686 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 687 | + | |
| 688 | +-- | |
| 689 | +-- Table structure for table `field_orders` | |
| 690 | +-- | |
| 691 | + | |
| 692 | +CREATE TABLE `field_orders` ( | |
| 693 | + `parent_field_id` int(11) NOT NULL default '0', | |
| 694 | + `child_field_id` int(11) NOT NULL default '0', | |
| 695 | + `fieldset_id` int(11) NOT NULL default '0', | |
| 696 | + UNIQUE KEY `child_field_id` (`child_field_id`), | |
| 697 | + KEY `parent_field_id` (`parent_field_id`), | |
| 698 | + KEY `fieldset_id` (`fieldset_id`), | |
| 699 | + CONSTRAINT `field_orders_ibfk_1` FOREIGN KEY (`child_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 700 | + CONSTRAINT `field_orders_ibfk_2` FOREIGN KEY (`parent_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 701 | + CONSTRAINT `field_orders_ibfk_3` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 702 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 703 | + | |
| 704 | +-- | |
| 705 | +-- Table structure for table `field_value_instances` | |
| 706 | +-- | |
| 707 | + | |
| 708 | +CREATE TABLE `field_value_instances` ( | |
| 709 | + `id` int(11) NOT NULL auto_increment, | |
| 710 | + `field_id` int(11) NOT NULL default '0', | |
| 711 | + `field_value_id` int(11) NOT NULL default '0', | |
| 712 | + `behaviour_id` int(11) default '0', | |
| 713 | + PRIMARY KEY (`id`), | |
| 714 | + KEY `field_value_id` (`field_value_id`), | |
| 715 | + KEY `behaviour_id` (`behaviour_id`), | |
| 716 | + KEY `field_id` (`field_id`), | |
| 717 | + CONSTRAINT `field_value_instances_ibfk_1` FOREIGN KEY (`field_value_id`) REFERENCES `metadata_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 718 | + CONSTRAINT `field_value_instances_ibfk_2` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 719 | + CONSTRAINT `field_value_instances_ibfk_3` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 720 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 721 | + | |
| 722 | +-- | |
| 723 | +-- Table structure for table `fieldsets` | |
| 724 | +-- | |
| 725 | + | |
| 726 | +CREATE TABLE `fieldsets` ( | |
| 727 | + `id` int(11) NOT NULL auto_increment, | |
| 728 | + `name` varchar(255) NOT NULL default '', | |
| 729 | + `namespace` varchar(255) NOT NULL default '', | |
| 730 | + `mandatory` tinyint(1) NOT NULL default '0', | |
| 731 | + `is_conditional` tinyint(1) NOT NULL default '0', | |
| 732 | + `master_field` int(11) default NULL, | |
| 733 | + `is_generic` tinyint(1) NOT NULL default '0', | |
| 734 | + `is_complex` tinyint(1) NOT NULL default '0', | |
| 735 | + `is_complete` tinyint(1) NOT NULL default '1', | |
| 736 | + `is_system` tinyint(1) unsigned NOT NULL default '0', | |
| 737 | + `description` mediumtext NOT NULL, | |
| 738 | + `disabled` tinyint(1) NOT NULL default '0', | |
| 739 | + PRIMARY KEY (`id`), | |
| 740 | + KEY `master_field` (`master_field`), | |
| 741 | + KEY `is_generic` (`is_generic`), | |
| 742 | + KEY `is_complete` (`is_complete`), | |
| 743 | + KEY `is_system` (`is_system`), | |
| 744 | + CONSTRAINT `fieldsets_ibfk_1` FOREIGN KEY (`master_field`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 745 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 746 | + | |
| 747 | +-- | |
| 748 | +-- Table structure for table `folder_descendants` | |
| 749 | +-- | |
| 750 | + | |
| 751 | +CREATE TABLE `folder_descendants` ( | |
| 752 | + `parent_id` int(11) NOT NULL, | |
| 753 | + `folder_id` int(11) NOT NULL, | |
| 754 | + KEY `parent_id` (`parent_id`), | |
| 755 | + KEY `folder_id` (`folder_id`), | |
| 756 | + CONSTRAINT `folder_descendants_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 757 | + CONSTRAINT `folder_descendants_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 758 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 759 | + | |
| 760 | +-- | |
| 761 | +-- Table structure for table `folder_doctypes_link` | |
| 762 | +-- | |
| 763 | + | |
| 764 | +CREATE TABLE `folder_doctypes_link` ( | |
| 765 | + `id` int(11) NOT NULL auto_increment, | |
| 766 | + `folder_id` int(11) NOT NULL default '0', | |
| 767 | + `document_type_id` int(11) NOT NULL default '0', | |
| 768 | + PRIMARY KEY (`id`), | |
| 769 | + KEY `folder_id` (`folder_id`), | |
| 770 | + KEY `document_type_id` (`document_type_id`), | |
| 771 | + CONSTRAINT `folder_doctypes_link_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 772 | + CONSTRAINT `folder_doctypes_link_ibfk_2` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 773 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 774 | + | |
| 775 | +-- | |
| 776 | +-- Table structure for table `folder_searchable_text` | |
| 777 | +-- | |
| 778 | + | |
| 779 | +CREATE TABLE `folder_searchable_text` ( | |
| 780 | + `folder_id` int(11) NOT NULL default '0', | |
| 781 | + `folder_text` mediumtext, | |
| 782 | + PRIMARY KEY (`folder_id`), | |
| 783 | + FULLTEXT KEY `folder_text` (`folder_text`) | |
| 784 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 785 | + | |
| 786 | +-- | |
| 787 | +-- Table structure for table `folder_subscriptions` | |
| 788 | +-- | |
| 789 | + | |
| 790 | +CREATE TABLE `folder_subscriptions` ( | |
| 791 | + `id` int(11) NOT NULL auto_increment, | |
| 792 | + `user_id` int(11) NOT NULL default '0', | |
| 793 | + `folder_id` int(11) NOT NULL default '0', | |
| 794 | + `is_alerted` tinyint(1) default NULL, | |
| 795 | + `with_subfolders` tinyint(1) NOT NULL default '0', | |
| 796 | + PRIMARY KEY (`id`), | |
| 797 | + KEY `user_id` (`user_id`), | |
| 798 | + KEY `folder_id` (`folder_id`), | |
| 799 | + CONSTRAINT `folder_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 800 | + CONSTRAINT `folder_subscriptions_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 801 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 802 | + | |
| 803 | +-- | |
| 804 | +-- Table structure for table `folder_transactions` | |
| 805 | +-- | |
| 806 | + | |
| 807 | +CREATE TABLE `folder_transactions` ( | |
| 808 | + `id` int(11) NOT NULL auto_increment, | |
| 809 | + `folder_id` int(11) default NULL, | |
| 810 | + `user_id` int(11) default NULL, | |
| 811 | + `datetime` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 812 | + `ip` varchar(15) default NULL, | |
| 813 | + `comment` varchar(255) NOT NULL, | |
| 814 | + `transaction_namespace` varchar(255) NOT NULL, | |
| 815 | + `session_id` int(11) default NULL, | |
| 816 | + `admin_mode` tinyint(1) NOT NULL default '0', | |
| 817 | + PRIMARY KEY (`id`), | |
| 818 | + KEY `folder_id` (`folder_id`), | |
| 819 | + KEY `session_id` (`session_id`) | |
| 820 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 821 | + | |
| 822 | +-- | |
| 823 | +-- Table structure for table `folder_workflow_map` | |
| 824 | +-- | |
| 825 | + | |
| 826 | +CREATE TABLE `folder_workflow_map` ( | |
| 827 | + `folder_id` int(11) NOT NULL default '0', | |
| 828 | + `workflow_id` int(11) default NULL, | |
| 829 | + PRIMARY KEY (`folder_id`), | |
| 830 | + KEY `workflow_id` (`workflow_id`), | |
| 831 | + CONSTRAINT `folder_workflow_map_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 832 | + CONSTRAINT `folder_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 833 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 834 | + | |
| 835 | +-- | |
| 836 | +-- Table structure for table `folders` | |
| 837 | +-- | |
| 838 | + | |
| 839 | +CREATE TABLE `folders` ( | |
| 840 | + `id` int(11) NOT NULL auto_increment, | |
| 841 | + `name` varchar(255) default NULL, | |
| 842 | + `description` varchar(255) default NULL, | |
| 843 | + `parent_id` int(11) default NULL, | |
| 844 | + `creator_id` int(11) default NULL, | |
| 845 | + `is_public` tinyint(1) NOT NULL default '0', | |
| 846 | + `parent_folder_ids` mediumtext, | |
| 847 | + `full_path` mediumtext, | |
| 848 | + `permission_object_id` int(11) default NULL, | |
| 849 | + `permission_lookup_id` int(11) default NULL, | |
| 850 | + `restrict_document_types` tinyint(1) NOT NULL default '0', | |
| 851 | + `owner_id` int(11) default NULL, | |
| 852 | + `linked_folder_id` int(11) default NULL, | |
| 853 | + PRIMARY KEY (`id`), | |
| 854 | + KEY `creator_id` (`creator_id`), | |
| 855 | + KEY `permission_object_id` (`permission_object_id`), | |
| 856 | + KEY `permission_lookup_id` (`permission_lookup_id`), | |
| 857 | + KEY `parent_id_name` (`parent_id`,`name`), | |
| 858 | + CONSTRAINT `folders_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 859 | + CONSTRAINT `folders_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 860 | + CONSTRAINT `folders_ibfk_3` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 861 | + CONSTRAINT `folders_ibfk_4` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 862 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 863 | + | |
| 864 | +-- | |
| 865 | +-- Table structure for table `folders_users_roles_link` | |
| 866 | +-- | |
| 867 | + | |
| 868 | +CREATE TABLE `folders_users_roles_link` ( | |
| 869 | + `id` int(11) NOT NULL auto_increment, | |
| 870 | + `group_folder_approval_id` int(11) NOT NULL default '0', | |
| 871 | + `user_id` int(11) NOT NULL default '0', | |
| 872 | + `document_id` int(11) NOT NULL default '0', | |
| 873 | + `datetime` datetime default NULL, | |
| 874 | + `done` tinyint(1) default NULL, | |
| 875 | + `active` tinyint(1) default NULL, | |
| 876 | + `dependant_documents_created` tinyint(1) default NULL, | |
| 877 | + PRIMARY KEY (`id`), | |
| 878 | + KEY `user_id` (`user_id`), | |
| 879 | + KEY `document_id` (`document_id`), | |
| 880 | + CONSTRAINT `folders_users_roles_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 881 | + CONSTRAINT `folders_users_roles_link_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 882 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 883 | + | |
| 884 | +-- | |
| 885 | +-- Table structure for table `groups_groups_link` | |
| 886 | +-- | |
| 887 | + | |
| 888 | +CREATE TABLE `groups_groups_link` ( | |
| 889 | + `id` int(11) NOT NULL auto_increment, | |
| 890 | + `parent_group_id` int(11) NOT NULL default '0', | |
| 891 | + `member_group_id` int(11) NOT NULL default '0', | |
| 892 | + PRIMARY KEY (`id`), | |
| 893 | + KEY `parent_group_id` (`parent_group_id`), | |
| 894 | + KEY `member_group_id` (`member_group_id`), | |
| 895 | + CONSTRAINT `groups_groups_link_ibfk_1` FOREIGN KEY (`parent_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 896 | + CONSTRAINT `groups_groups_link_ibfk_2` FOREIGN KEY (`member_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 897 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 898 | + | |
| 899 | +-- | |
| 900 | +-- Table structure for table `groups_lookup` | |
| 901 | +-- | |
| 902 | + | |
| 903 | +CREATE TABLE `groups_lookup` ( | |
| 904 | + `id` int(11) NOT NULL auto_increment, | |
| 905 | + `name` varchar(100) NOT NULL default '', | |
| 906 | + `is_sys_admin` tinyint(1) NOT NULL default '0', | |
| 907 | + `is_unit_admin` tinyint(1) NOT NULL default '0', | |
| 908 | + `unit_id` int(11) default NULL, | |
| 909 | + `authentication_details_s2` varchar(255) default NULL, | |
| 910 | + `authentication_details_s1` varchar(255) default NULL, | |
| 911 | + `authentication_source_id` int(11) default NULL, | |
| 912 | + PRIMARY KEY (`id`), | |
| 913 | + UNIQUE KEY `name` (`name`), | |
| 914 | + KEY `unit_id` (`unit_id`), | |
| 915 | + KEY `authentication_source_id_authentication_details_s1` (`authentication_source_id`,`authentication_details_s1`), | |
| 916 | + CONSTRAINT `groups_lookup_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 917 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 918 | + | |
| 919 | +-- | |
| 920 | +-- Table structure for table `help` | |
| 921 | +-- | |
| 922 | + | |
| 923 | +CREATE TABLE `help` ( | |
| 924 | + `id` int(11) NOT NULL auto_increment, | |
| 925 | + `fSection` varchar(100) NOT NULL default '', | |
| 926 | + `help_info` mediumtext NOT NULL, | |
| 927 | + PRIMARY KEY (`id`) | |
| 928 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 929 | + | |
| 930 | +-- | |
| 931 | +-- Table structure for table `help_replacement` | |
| 932 | +-- | |
| 933 | + | |
| 934 | +CREATE TABLE `help_replacement` ( | |
| 935 | + `id` int(11) NOT NULL auto_increment, | |
| 936 | + `name` varchar(255) NOT NULL default '', | |
| 937 | + `description` mediumtext NOT NULL, | |
| 938 | + `title` varchar(255) NOT NULL default '', | |
| 939 | + PRIMARY KEY (`id`) | |
| 940 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 941 | + | |
| 942 | +-- | |
| 943 | +-- Table structure for table `index_files` | |
| 944 | +-- | |
| 945 | + | |
| 946 | +CREATE TABLE `index_files` ( | |
| 947 | + `document_id` int(11) NOT NULL, | |
| 948 | + `user_id` int(11) NOT NULL, | |
| 949 | + `indexdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | |
| 950 | + `processdate` datetime default NULL, | |
| 951 | + `what` char(1) default NULL, | |
| 952 | + `status_msg` mediumtext, | |
| 953 | + PRIMARY KEY (`document_id`), | |
| 954 | + KEY `user_id` (`user_id`), | |
| 955 | + CONSTRAINT `index_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 956 | + CONSTRAINT `index_files_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 957 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 958 | + | |
| 959 | +-- | |
| 960 | +-- Table structure for table `interceptor_instances` | |
| 961 | +-- | |
| 962 | + | |
| 963 | +CREATE TABLE `interceptor_instances` ( | |
| 964 | + `id` int(11) NOT NULL auto_increment, | |
| 965 | + `name` varchar(255) NOT NULL, | |
| 966 | + `interceptor_namespace` varchar(255) NOT NULL, | |
| 967 | + `config` text, | |
| 968 | + PRIMARY KEY (`id`), | |
| 969 | + KEY `interceptor_namespace` (`interceptor_namespace`) | |
| 970 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 971 | + | |
| 972 | +-- | |
| 973 | +-- Table structure for table `links` | |
| 974 | +-- | |
| 975 | + | |
| 976 | +CREATE TABLE `links` ( | |
| 977 | + `id` int(11) NOT NULL auto_increment, | |
| 978 | + `name` varchar(100) NOT NULL, | |
| 979 | + `url` varchar(100) NOT NULL, | |
| 980 | + `rank` int(11) NOT NULL default '0', | |
| 981 | + PRIMARY KEY (`id`) | |
| 982 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 983 | + | |
| 984 | +-- | |
| 985 | +-- Table structure for table `metadata_lookup` | |
| 986 | +-- | |
| 987 | + | |
| 988 | +CREATE TABLE `metadata_lookup` ( | |
| 989 | + `id` int(11) NOT NULL auto_increment, | |
| 990 | + `document_field_id` int(11) NOT NULL default '0', | |
| 991 | + `name` varchar(255) default NULL, | |
| 992 | + `treeorg_parent` int(11) default NULL, | |
| 993 | + `disabled` tinyint(1) NOT NULL default '0', | |
| 994 | + `is_stuck` tinyint(1) NOT NULL default '0', | |
| 995 | + PRIMARY KEY (`id`), | |
| 996 | + KEY `document_field_id` (`document_field_id`), | |
| 997 | + KEY `disabled` (`disabled`), | |
| 998 | + CONSTRAINT `metadata_lookup_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 999 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1000 | + | |
| 1001 | +-- | |
| 1002 | +-- Table structure for table `metadata_lookup_tree` | |
| 1003 | +-- | |
| 1004 | + | |
| 1005 | +CREATE TABLE `metadata_lookup_tree` ( | |
| 1006 | + `id` int(11) NOT NULL auto_increment, | |
| 1007 | + `document_field_id` int(11) NOT NULL default '0', | |
| 1008 | + `name` varchar(255) default NULL, | |
| 1009 | + `metadata_lookup_tree_parent` int(11) default NULL, | |
| 1010 | + PRIMARY KEY (`id`), | |
| 1011 | + KEY `document_field_id` (`document_field_id`), | |
| 1012 | + KEY `metadata_lookup_tree_parent` (`metadata_lookup_tree_parent`), | |
| 1013 | + CONSTRAINT `metadata_lookup_tree_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1014 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1015 | + | |
| 1016 | +-- | |
| 1017 | +-- Table structure for table `mime_document_mapping` | |
| 1018 | +-- | |
| 1019 | + | |
| 1020 | +CREATE TABLE `mime_document_mapping` ( | |
| 1021 | + `mime_document_id` int(11) NOT NULL, | |
| 1022 | + `mime_type_id` int(11) NOT NULL, | |
| 1023 | + PRIMARY KEY (`mime_type_id`,`mime_document_id`), | |
| 1024 | + KEY `mime_document_id` (`mime_document_id`), | |
| 1025 | + CONSTRAINT `mime_document_mapping_ibfk_2` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1026 | + CONSTRAINT `mime_document_mapping_ibfk_1` FOREIGN KEY (`mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1027 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1028 | + | |
| 1029 | +-- | |
| 1030 | +-- Table structure for table `mime_documents` | |
| 1031 | +-- | |
| 1032 | + | |
| 1033 | +CREATE TABLE `mime_documents` ( | |
| 1034 | + `id` int(11) NOT NULL auto_increment, | |
| 1035 | + `mime_doc` varchar(100) default NULL, | |
| 1036 | + `icon_path` varchar(20) default NULL, | |
| 1037 | + PRIMARY KEY (`id`) | |
| 1038 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1039 | + | |
| 1040 | +-- | |
| 1041 | +-- Table structure for table `mime_extractors` | |
| 1042 | +-- | |
| 1043 | + | |
| 1044 | +CREATE TABLE `mime_extractors` ( | |
| 1045 | + `id` mediumint(9) NOT NULL auto_increment, | |
| 1046 | + `name` varchar(50) NOT NULL, | |
| 1047 | + `active` tinyint(1) NOT NULL default '0', | |
| 1048 | + PRIMARY KEY (`id`) | |
| 1049 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1050 | + | |
| 1051 | +-- | |
| 1052 | +-- Table structure for table `mime_types` | |
| 1053 | +-- | |
| 1054 | + | |
| 1055 | +CREATE TABLE `mime_types` ( | |
| 1056 | + `id` int(11) NOT NULL auto_increment, | |
| 1057 | + `filetypes` varchar(100) NOT NULL, | |
| 1058 | + `mimetypes` varchar(100) NOT NULL, | |
| 1059 | + `icon_path` varchar(255) default NULL, | |
| 1060 | + `friendly_name` varchar(255) NOT NULL default '', | |
| 1061 | + `extractor_id` mediumint(9) default NULL, | |
| 1062 | + `mime_document_id` int(11) default NULL, | |
| 1063 | + PRIMARY KEY (`id`), | |
| 1064 | + KEY `mime_document_id` (`mime_document_id`), | |
| 1065 | + KEY `extractor_id` (`extractor_id`), | |
| 1066 | + KEY `filetypes` (`filetypes`), | |
| 1067 | + KEY `mimetypes` (`mimetypes`), | |
| 1068 | + CONSTRAINT `mime_types_ibfk_1` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, | |
| 1069 | + CONSTRAINT `mime_types_ibfk_2` FOREIGN KEY (`extractor_id`) REFERENCES `mime_extractors` (`id`) ON DELETE SET NULL ON UPDATE SET NULL | |
| 1070 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1071 | + | |
| 1072 | +-- | |
| 1073 | +-- Table structure for table `news` | |
| 1074 | +-- | |
| 1075 | + | |
| 1076 | +CREATE TABLE `news` ( | |
| 1077 | + `id` int(11) NOT NULL auto_increment, | |
| 1078 | + `synopsis` varchar(255) NOT NULL default '', | |
| 1079 | + `body` mediumtext, | |
| 1080 | + `rank` int(11) default NULL, | |
| 1081 | + `image` mediumtext, | |
| 1082 | + `image_size` int(11) default NULL, | |
| 1083 | + `image_mime_type_id` int(11) default NULL, | |
| 1084 | + `active` tinyint(1) default NULL, | |
| 1085 | + PRIMARY KEY (`id`), | |
| 1086 | + KEY `image_mime_type_id` (`image_mime_type_id`), | |
| 1087 | + CONSTRAINT `news_ibfk_1` FOREIGN KEY (`image_mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1088 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1089 | + | |
| 1090 | +-- | |
| 1091 | +-- Table structure for table `notifications` | |
| 1092 | +-- | |
| 1093 | + | |
| 1094 | +CREATE TABLE `notifications` ( | |
| 1095 | + `id` int(11) NOT NULL auto_increment, | |
| 1096 | + `user_id` int(11) NOT NULL default '0', | |
| 1097 | + `label` varchar(255) NOT NULL default '', | |
| 1098 | + `type` varchar(255) NOT NULL default '', | |
| 1099 | + `creation_date` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 1100 | + `data_int_1` int(11) default NULL, | |
| 1101 | + `data_int_2` int(11) default NULL, | |
| 1102 | + `data_str_1` varchar(255) default NULL, | |
| 1103 | + `data_str_2` varchar(255) default NULL, | |
| 1104 | + `data_text_1` text, | |
| 1105 | + PRIMARY KEY (`id`), | |
| 1106 | + KEY `user_id` (`user_id`), | |
| 1107 | + KEY `data_int_1` (`data_int_1`), | |
| 1108 | + CONSTRAINT `notifications_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1109 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1110 | + | |
| 1111 | +-- | |
| 1112 | +-- Table structure for table `organisations_lookup` | |
| 1113 | +-- | |
| 1114 | + | |
| 1115 | +CREATE TABLE `organisations_lookup` ( | |
| 1116 | + `id` int(11) NOT NULL auto_increment, | |
| 1117 | + `name` varchar(100) NOT NULL, | |
| 1118 | + PRIMARY KEY (`id`), | |
| 1119 | + UNIQUE KEY `name` (`name`) | |
| 1120 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1121 | + | |
| 1122 | +-- | |
| 1123 | +-- Table structure for table `permission_assignments` | |
| 1124 | +-- | |
| 1125 | + | |
| 1126 | +CREATE TABLE `permission_assignments` ( | |
| 1127 | + `id` int(11) NOT NULL auto_increment, | |
| 1128 | + `permission_id` int(11) NOT NULL default '0', | |
| 1129 | + `permission_object_id` int(11) NOT NULL default '0', | |
| 1130 | + `permission_descriptor_id` int(11) default NULL, | |
| 1131 | + PRIMARY KEY (`id`), | |
| 1132 | + UNIQUE KEY `permission_object_id_permission_id` (`permission_object_id`,`permission_id`), | |
| 1133 | + KEY `permission_id` (`permission_id`), | |
| 1134 | + KEY `permission_descriptor_id` (`permission_descriptor_id`), | |
| 1135 | + CONSTRAINT `permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1136 | + CONSTRAINT `permission_assignments_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1137 | + CONSTRAINT `permission_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1138 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1139 | + | |
| 1140 | +-- | |
| 1141 | +-- Table structure for table `permission_descriptor_groups` | |
| 1142 | +-- | |
| 1143 | + | |
| 1144 | +CREATE TABLE `permission_descriptor_groups` ( | |
| 1145 | + `descriptor_id` int(11) NOT NULL default '0', | |
| 1146 | + `group_id` int(11) NOT NULL default '0', | |
| 1147 | + PRIMARY KEY (`descriptor_id`,`group_id`), | |
| 1148 | + KEY `group_id` (`group_id`), | |
| 1149 | + CONSTRAINT `permission_descriptor_groups_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1150 | + CONSTRAINT `permission_descriptor_groups_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1151 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1152 | + | |
| 1153 | +-- | |
| 1154 | +-- Table structure for table `permission_descriptor_roles` | |
| 1155 | +-- | |
| 1156 | + | |
| 1157 | +CREATE TABLE `permission_descriptor_roles` ( | |
| 1158 | + `descriptor_id` int(11) NOT NULL default '0', | |
| 1159 | + `role_id` int(11) NOT NULL default '0', | |
| 1160 | + PRIMARY KEY (`descriptor_id`,`role_id`), | |
| 1161 | + KEY `role_id` (`role_id`), | |
| 1162 | + CONSTRAINT `permission_descriptor_roles_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1163 | + CONSTRAINT `permission_descriptor_roles_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1164 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1165 | + | |
| 1166 | +-- | |
| 1167 | +-- Table structure for table `permission_descriptor_users` | |
| 1168 | +-- | |
| 1169 | + | |
| 1170 | +CREATE TABLE `permission_descriptor_users` ( | |
| 1171 | + `descriptor_id` int(11) NOT NULL default '0', | |
| 1172 | + `user_id` int(11) NOT NULL default '0', | |
| 1173 | + PRIMARY KEY (`descriptor_id`,`user_id`), | |
| 1174 | + KEY `user_id` (`user_id`), | |
| 1175 | + CONSTRAINT `permission_descriptor_users_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1176 | + CONSTRAINT `permission_descriptor_users_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1177 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1178 | + | |
| 1179 | +-- | |
| 1180 | +-- Table structure for table `permission_descriptors` | |
| 1181 | +-- | |
| 1182 | + | |
| 1183 | +CREATE TABLE `permission_descriptors` ( | |
| 1184 | + `id` int(11) NOT NULL auto_increment, | |
| 1185 | + `descriptor` varchar(32) NOT NULL default '', | |
| 1186 | + `descriptor_text` mediumtext NOT NULL, | |
| 1187 | + PRIMARY KEY (`id`), | |
| 1188 | + UNIQUE KEY `descriptor` (`descriptor`) | |
| 1189 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1190 | + | |
| 1191 | +-- | |
| 1192 | +-- Table structure for table `permission_dynamic_assignments` | |
| 1193 | +-- | |
| 1194 | + | |
| 1195 | +CREATE TABLE `permission_dynamic_assignments` ( | |
| 1196 | + `dynamic_condition_id` int(11) NOT NULL default '0', | |
| 1197 | + `permission_id` int(11) NOT NULL default '0', | |
| 1198 | + KEY `dynamic_condition_id` (`dynamic_condition_id`), | |
| 1199 | + KEY `permission_id` (`permission_id`), | |
| 1200 | + CONSTRAINT `permission_dynamic_assignments_ibfk_2` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1201 | + CONSTRAINT `permission_dynamic_assignments_ibfk_1` FOREIGN KEY (`dynamic_condition_id`) REFERENCES `permission_dynamic_conditions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1202 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1203 | + | |
| 1204 | +-- | |
| 1205 | +-- Table structure for table `permission_dynamic_conditions` | |
| 1206 | +-- | |
| 1207 | + | |
| 1208 | +CREATE TABLE `permission_dynamic_conditions` ( | |
| 1209 | + `id` int(11) NOT NULL auto_increment, | |
| 1210 | + `permission_object_id` int(11) NOT NULL default '0', | |
| 1211 | + `group_id` int(11) NOT NULL default '0', | |
| 1212 | + `condition_id` int(11) NOT NULL default '0', | |
| 1213 | + PRIMARY KEY (`id`), | |
| 1214 | + KEY `permission_object_id` (`permission_object_id`), | |
| 1215 | + KEY `group_id` (`group_id`), | |
| 1216 | + KEY `condition_id` (`condition_id`), | |
| 1217 | + CONSTRAINT `permission_dynamic_conditions_ibfk_1` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1218 | + CONSTRAINT `permission_dynamic_conditions_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1219 | + CONSTRAINT `permission_dynamic_conditions_ibfk_3` FOREIGN KEY (`condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1220 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1221 | + | |
| 1222 | +-- | |
| 1223 | +-- Table structure for table `permission_lookup_assignments` | |
| 1224 | +-- | |
| 1225 | + | |
| 1226 | +CREATE TABLE `permission_lookup_assignments` ( | |
| 1227 | + `id` int(11) NOT NULL auto_increment, | |
| 1228 | + `permission_id` int(11) NOT NULL default '0', | |
| 1229 | + `permission_lookup_id` int(11) NOT NULL default '0', | |
| 1230 | + `permission_descriptor_id` int(11) default NULL, | |
| 1231 | + PRIMARY KEY (`id`), | |
| 1232 | + UNIQUE KEY `permission_lookup_id_permission_id` (`permission_lookup_id`,`permission_id`), | |
| 1233 | + KEY `permission_id` (`permission_id`), | |
| 1234 | + KEY `permission_descriptor_id` (`permission_descriptor_id`), | |
| 1235 | + CONSTRAINT `permission_lookup_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1236 | + CONSTRAINT `permission_lookup_assignments_ibfk_2` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1237 | + CONSTRAINT `permission_lookup_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1238 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1239 | + | |
| 1240 | +-- | |
| 1241 | +-- Table structure for table `permission_lookups` | |
| 1242 | +-- | |
| 1243 | + | |
| 1244 | +CREATE TABLE `permission_lookups` ( | |
| 1245 | + `id` int(11) NOT NULL auto_increment, | |
| 1246 | + PRIMARY KEY (`id`) | |
| 1247 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1248 | + | |
| 1249 | +-- | |
| 1250 | +-- Table structure for table `permission_objects` | |
| 1251 | +-- | |
| 1252 | + | |
| 1253 | +CREATE TABLE `permission_objects` ( | |
| 1254 | + `id` int(11) NOT NULL auto_increment, | |
| 1255 | + PRIMARY KEY (`id`) | |
| 1256 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1257 | + | |
| 1258 | +-- | |
| 1259 | +-- Table structure for table `permissions` | |
| 1260 | +-- | |
| 1261 | + | |
| 1262 | +CREATE TABLE `permissions` ( | |
| 1263 | + `id` int(11) NOT NULL auto_increment, | |
| 1264 | + `name` varchar(100) NOT NULL, | |
| 1265 | + `human_name` varchar(100) NOT NULL, | |
| 1266 | + `built_in` tinyint(1) NOT NULL default '0', | |
| 1267 | + PRIMARY KEY (`id`), | |
| 1268 | + UNIQUE KEY `name` (`name`) | |
| 1269 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1270 | + | |
| 1271 | +-- | |
| 1272 | +-- Table structure for table `plugin_helper` | |
| 1273 | +-- | |
| 1274 | + | |
| 1275 | +CREATE TABLE `plugin_helper` ( | |
| 1276 | + `id` int(11) NOT NULL auto_increment, | |
| 1277 | + `namespace` varchar(120) NOT NULL, | |
| 1278 | + `plugin` varchar(120) NOT NULL, | |
| 1279 | + `classname` varchar(120) default NULL, | |
| 1280 | + `pathname` varchar(255) default NULL, | |
| 1281 | + `object` varchar(1000) NOT NULL, | |
| 1282 | + `classtype` varchar(120) NOT NULL, | |
| 1283 | + `viewtype` enum('general','dashboard','plugin','folder','document','admindispatcher','dispatcher') NOT NULL default 'general', | |
| 1284 | + PRIMARY KEY (`id`), | |
| 1285 | + KEY `name` (`namespace`), | |
| 1286 | + KEY `parent` (`plugin`), | |
| 1287 | + KEY `view` (`viewtype`) | |
| 1288 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1289 | + | |
| 1290 | +-- | |
| 1291 | +-- Table structure for table `plugin_rss` | |
| 1292 | +-- | |
| 1293 | + | |
| 1294 | +CREATE TABLE `plugin_rss` ( | |
| 1295 | + `id` int(11) NOT NULL auto_increment, | |
| 1296 | + `user_id` int(11) NOT NULL, | |
| 1297 | + `url` varchar(200) NOT NULL, | |
| 1298 | + `title` varchar(100) NOT NULL, | |
| 1299 | + PRIMARY KEY (`id`), | |
| 1300 | + KEY `user_id` (`user_id`), | |
| 1301 | + CONSTRAINT `plugin_rss_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1302 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1303 | + | |
| 1304 | +-- | |
| 1305 | +-- Table structure for table `plugins` | |
| 1306 | +-- | |
| 1307 | + | |
| 1308 | +CREATE TABLE `plugins` ( | |
| 1309 | + `id` int(11) NOT NULL auto_increment, | |
| 1310 | + `namespace` varchar(255) NOT NULL default '', | |
| 1311 | + `path` varchar(255) NOT NULL default '', | |
| 1312 | + `version` int(11) NOT NULL default '0', | |
| 1313 | + `disabled` tinyint(1) NOT NULL default '0', | |
| 1314 | + `data` mediumtext, | |
| 1315 | + `unavailable` tinyint(1) NOT NULL default '0', | |
| 1316 | + `friendly_name` varchar(255) default '', | |
| 1317 | + `orderby` int(11) NOT NULL default '0', | |
| 1318 | + PRIMARY KEY (`id`), | |
| 1319 | + UNIQUE KEY `namespace` (`namespace`), | |
| 1320 | + KEY `disabled` (`disabled`) | |
| 1321 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1322 | + | |
| 1323 | +-- | |
| 1324 | +-- Table structure for table `role_allocations` | |
| 1325 | +-- | |
| 1326 | + | |
| 1327 | +CREATE TABLE `role_allocations` ( | |
| 1328 | + `id` int(11) NOT NULL auto_increment, | |
| 1329 | + `folder_id` int(11) NOT NULL default '0', | |
| 1330 | + `role_id` int(11) NOT NULL default '0', | |
| 1331 | + `permission_descriptor_id` int(11) NOT NULL default '0', | |
| 1332 | + PRIMARY KEY (`id`), | |
| 1333 | + KEY `folder_id` (`folder_id`), | |
| 1334 | + KEY `role_id` (`role_id`), | |
| 1335 | + KEY `permission_descriptor_id` (`permission_descriptor_id`), | |
| 1336 | + CONSTRAINT `role_allocations_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1337 | + CONSTRAINT `role_allocations_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1338 | + CONSTRAINT `role_allocations_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1339 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1340 | + | |
| 1341 | +-- | |
| 1342 | +-- Table structure for table `roles` | |
| 1343 | +-- | |
| 1344 | + | |
| 1345 | +CREATE TABLE `roles` ( | |
| 1346 | + `id` int(11) NOT NULL auto_increment, | |
| 1347 | + `name` varchar(255) NOT NULL, | |
| 1348 | + PRIMARY KEY (`id`), | |
| 1349 | + UNIQUE KEY `name` (`name`) | |
| 1350 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1351 | + | |
| 1352 | +-- | |
| 1353 | +-- Table structure for table `saved_searches` | |
| 1354 | +-- | |
| 1355 | + | |
| 1356 | +CREATE TABLE `saved_searches` ( | |
| 1357 | + `id` int(11) NOT NULL auto_increment, | |
| 1358 | + `name` varchar(255) NOT NULL, | |
| 1359 | + `namespace` varchar(255) NOT NULL, | |
| 1360 | + `is_condition` tinyint(1) NOT NULL default '0', | |
| 1361 | + `is_complete` tinyint(1) NOT NULL default '0', | |
| 1362 | + `user_id` int(10) default NULL, | |
| 1363 | + `search` mediumtext NOT NULL, | |
| 1364 | + PRIMARY KEY (`id`), | |
| 1365 | + UNIQUE KEY `namespace` (`namespace`), | |
| 1366 | + KEY `user_id` (`user_id`), | |
| 1367 | + CONSTRAINT `saved_searches_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1368 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1369 | + | |
| 1370 | +-- | |
| 1371 | +-- Table structure for table `scheduler_tasks` | |
| 1372 | +-- | |
| 1373 | + | |
| 1374 | +CREATE TABLE `scheduler_tasks` ( | |
| 1375 | + `id` int(11) NOT NULL auto_increment, | |
| 1376 | + `task` varchar(50) NOT NULL, | |
| 1377 | + `script_url` varchar(255) NOT NULL, | |
| 1378 | + `script_params` varchar(255) default NULL, | |
| 1379 | + `is_complete` tinyint(1) NOT NULL default '0', | |
| 1380 | + `frequency` varchar(25) default NULL, | |
| 1381 | + `run_time` datetime default NULL, | |
| 1382 | + `previous_run_time` datetime default NULL, | |
| 1383 | + `run_duration` float default NULL, | |
| 1384 | + `status` enum('enabled','disabled','system') NOT NULL default 'disabled', | |
| 1385 | + PRIMARY KEY (`id`), | |
| 1386 | + UNIQUE KEY `task` (`task`) | |
| 1387 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1388 | + | |
| 1389 | +-- | |
| 1390 | +-- Table structure for table `search_document_user_link` | |
| 1391 | +-- | |
| 1392 | + | |
| 1393 | +CREATE TABLE `search_document_user_link` ( | |
| 1394 | + `document_id` int(11) default NULL, | |
| 1395 | + `user_id` int(11) default NULL, | |
| 1396 | + KEY `document_id` (`document_id`), | |
| 1397 | + KEY `user_id` (`user_id`), | |
| 1398 | + CONSTRAINT `search_document_user_link_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1399 | + CONSTRAINT `search_document_user_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1400 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1401 | + | |
| 1402 | +-- | |
| 1403 | +-- Table structure for table `search_ranking` | |
| 1404 | +-- | |
| 1405 | + | |
| 1406 | +CREATE TABLE `search_ranking` ( | |
| 1407 | + `groupname` varchar(100) NOT NULL, | |
| 1408 | + `itemname` varchar(100) NOT NULL, | |
| 1409 | + `ranking` float default '0', | |
| 1410 | + `type` enum('T','M','S') default 'T' COMMENT 'T=Table, M=Metadata, S=Searchable', | |
| 1411 | + PRIMARY KEY (`groupname`,`itemname`) | |
| 1412 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1413 | + | |
| 1414 | +-- | |
| 1415 | +-- Table structure for table `search_saved` | |
| 1416 | +-- | |
| 1417 | + | |
| 1418 | +CREATE TABLE `search_saved` ( | |
| 1419 | + `id` int(11) NOT NULL auto_increment, | |
| 1420 | + `name` varchar(100) NOT NULL, | |
| 1421 | + `expression` mediumtext NOT NULL, | |
| 1422 | + `user_id` int(11) NOT NULL, | |
| 1423 | + `type` enum('S','C','W','B') NOT NULL default 'S' COMMENT 'S=saved search, C=permission, w=workflow, B=subscription', | |
| 1424 | + `shared` tinyint(4) NOT NULL default '0', | |
| 1425 | + PRIMARY KEY (`id`), | |
| 1426 | + KEY `user_id` (`user_id`), | |
| 1427 | + CONSTRAINT `search_saved_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1428 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1429 | + | |
| 1430 | +-- | |
| 1431 | +-- Table structure for table `search_saved_events` | |
| 1432 | +-- | |
| 1433 | + | |
| 1434 | +CREATE TABLE `search_saved_events` ( | |
| 1435 | + `document_id` int(11) NOT NULL, | |
| 1436 | + PRIMARY KEY (`document_id`), | |
| 1437 | + CONSTRAINT `search_saved_events_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1438 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1439 | + | |
| 1440 | +-- | |
| 1441 | +-- Table structure for table `status_lookup` | |
| 1442 | +-- | |
| 1443 | + | |
| 1444 | +CREATE TABLE `status_lookup` ( | |
| 1445 | + `id` int(11) NOT NULL auto_increment, | |
| 1446 | + `name` varchar(255) NOT NULL, | |
| 1447 | + PRIMARY KEY (`id`) | |
| 1448 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1449 | + | |
| 1450 | +-- | |
| 1451 | +-- Table structure for table `system_settings` | |
| 1452 | +-- | |
| 1453 | + | |
| 1454 | +CREATE TABLE `system_settings` ( | |
| 1455 | + `id` int(11) NOT NULL auto_increment, | |
| 1456 | + `name` varchar(255) NOT NULL, | |
| 1457 | + `value` text NOT NULL, | |
| 1458 | + PRIMARY KEY (`id`), | |
| 1459 | + UNIQUE KEY `name` (`name`) | |
| 1460 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1461 | + | |
| 1462 | +-- | |
| 1463 | +-- Table structure for table `tag_words` | |
| 1464 | +-- | |
| 1465 | + | |
| 1466 | +CREATE TABLE `tag_words` ( | |
| 1467 | + `id` int(11) NOT NULL auto_increment, | |
| 1468 | + `tag` varchar(100) default NULL, | |
| 1469 | + PRIMARY KEY (`id`) | |
| 1470 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1471 | + | |
| 1472 | +-- | |
| 1473 | +-- Table structure for table `time_period` | |
| 1474 | +-- | |
| 1475 | + | |
| 1476 | +CREATE TABLE `time_period` ( | |
| 1477 | + `id` int(11) NOT NULL auto_increment, | |
| 1478 | + `time_unit_id` int(11) default NULL, | |
| 1479 | + `units` int(11) default NULL, | |
| 1480 | + PRIMARY KEY (`id`), | |
| 1481 | + KEY `time_unit_id` (`time_unit_id`), | |
| 1482 | + CONSTRAINT `time_period_ibfk_1` FOREIGN KEY (`time_unit_id`) REFERENCES `time_unit_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1483 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1484 | + | |
| 1485 | +-- | |
| 1486 | +-- Table structure for table `time_unit_lookup` | |
| 1487 | +-- | |
| 1488 | + | |
| 1489 | +CREATE TABLE `time_unit_lookup` ( | |
| 1490 | + `id` int(11) NOT NULL auto_increment, | |
| 1491 | + `name` varchar(100) NOT NULL, | |
| 1492 | + PRIMARY KEY (`id`) | |
| 1493 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1494 | + | |
| 1495 | +-- | |
| 1496 | +-- Table structure for table `trigger_selection` | |
| 1497 | +-- | |
| 1498 | + | |
| 1499 | +CREATE TABLE `trigger_selection` ( | |
| 1500 | + `event_ns` varchar(255) NOT NULL default '', | |
| 1501 | + `selection_ns` varchar(255) NOT NULL default '', | |
| 1502 | + PRIMARY KEY (`event_ns`) | |
| 1503 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1504 | + | |
| 1505 | +-- | |
| 1506 | +-- Table structure for table `type_workflow_map` | |
| 1507 | +-- | |
| 1508 | + | |
| 1509 | +CREATE TABLE `type_workflow_map` ( | |
| 1510 | + `document_type_id` int(11) NOT NULL default '0', | |
| 1511 | + `workflow_id` int(11) default NULL, | |
| 1512 | + PRIMARY KEY (`document_type_id`), | |
| 1513 | + KEY `workflow_id` (`workflow_id`), | |
| 1514 | + CONSTRAINT `type_workflow_map_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1515 | + CONSTRAINT `type_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1516 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1517 | + | |
| 1518 | +-- | |
| 1519 | +-- Table structure for table `units_lookup` | |
| 1520 | +-- | |
| 1521 | + | |
| 1522 | +CREATE TABLE `units_lookup` ( | |
| 1523 | + `id` int(11) NOT NULL auto_increment, | |
| 1524 | + `name` varchar(100) NOT NULL, | |
| 1525 | + `folder_id` int(11) NOT NULL default '0', | |
| 1526 | + PRIMARY KEY (`id`), | |
| 1527 | + UNIQUE KEY `name` (`name`), | |
| 1528 | + UNIQUE KEY `folder_id` (`folder_id`), | |
| 1529 | + CONSTRAINT `units_lookup_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1530 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1531 | + | |
| 1532 | +-- | |
| 1533 | +-- Table structure for table `units_organisations_link` | |
| 1534 | +-- | |
| 1535 | + | |
| 1536 | +CREATE TABLE `units_organisations_link` ( | |
| 1537 | + `id` int(11) NOT NULL auto_increment, | |
| 1538 | + `unit_id` int(11) NOT NULL default '0', | |
| 1539 | + `organisation_id` int(11) NOT NULL default '0', | |
| 1540 | + PRIMARY KEY (`id`), | |
| 1541 | + KEY `unit_id` (`unit_id`), | |
| 1542 | + KEY `organisation_id` (`organisation_id`), | |
| 1543 | + CONSTRAINT `units_organisations_link_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1544 | + CONSTRAINT `units_organisations_link_ibfk_2` FOREIGN KEY (`organisation_id`) REFERENCES `organisations_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1545 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1546 | + | |
| 1547 | +-- | |
| 1548 | +-- Table structure for table `upgrades` | |
| 1549 | +-- | |
| 1550 | + | |
| 1551 | +CREATE TABLE `upgrades` ( | |
| 1552 | + `id` int(11) NOT NULL auto_increment, | |
| 1553 | + `descriptor` varchar(100) NOT NULL, | |
| 1554 | + `description` varchar(255) NOT NULL, | |
| 1555 | + `date_performed` datetime NOT NULL default '0000-00-00 00:00:00', | |
| 1556 | + `result` tinyint(1) NOT NULL default '0', | |
| 1557 | + `parent` varchar(40) default NULL, | |
| 1558 | + PRIMARY KEY (`id`), | |
| 1559 | + KEY `descriptor` (`descriptor`), | |
| 1560 | + KEY `parent` (`parent`) | |
| 1561 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1562 | + | |
| 1563 | +-- | |
| 1564 | +-- Table structure for table `uploaded_files` | |
| 1565 | +-- | |
| 1566 | + | |
| 1567 | +CREATE TABLE `uploaded_files` ( | |
| 1568 | + `tempfilename` varchar(100) NOT NULL, | |
| 1569 | + `filename` varchar(100) NOT NULL, | |
| 1570 | + `userid` int(11) NOT NULL, | |
| 1571 | + `uploaddate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | |
| 1572 | + `action` char(1) NOT NULL COMMENT 'A = Add, C = Checkin', | |
| 1573 | + `document_id` int(11) default NULL, | |
| 1574 | + PRIMARY KEY (`tempfilename`), | |
| 1575 | + KEY `userid` (`userid`), | |
| 1576 | + KEY `document_id` (`document_id`), | |
| 1577 | + CONSTRAINT `uploaded_files_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1578 | + CONSTRAINT `uploaded_files_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1579 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1580 | + | |
| 1581 | +-- | |
| 1582 | +-- Table structure for table `user_history` | |
| 1583 | +-- | |
| 1584 | + | |
| 1585 | +CREATE TABLE `user_history` ( | |
| 1586 | + `id` int(11) NOT NULL auto_increment, | |
| 1587 | + `datetime` datetime NOT NULL, | |
| 1588 | + `user_id` int(11) NOT NULL, | |
| 1589 | + `action_namespace` varchar(255) NOT NULL, | |
| 1590 | + `comments` mediumtext, | |
| 1591 | + `session_id` int(11) default NULL, | |
| 1592 | + PRIMARY KEY (`id`), | |
| 1593 | + KEY `user_id` (`user_id`), | |
| 1594 | + KEY `action_namespace` (`action_namespace`), | |
| 1595 | + KEY `datetime` (`datetime`), | |
| 1596 | + KEY `session_id` (`session_id`), | |
| 1597 | + CONSTRAINT `user_history_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1598 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1599 | + | |
| 1600 | +-- | |
| 1601 | +-- Table structure for table `users` | |
| 1602 | +-- | |
| 1603 | + | |
| 1604 | +CREATE TABLE `users` ( | |
| 1605 | + `id` int(11) NOT NULL auto_increment, | |
| 1606 | + `username` varchar(255) NOT NULL default '', | |
| 1607 | + `name` varchar(255) NOT NULL default '', | |
| 1608 | + `password` varchar(255) NOT NULL default '', | |
| 1609 | + `quota_max` int(11) NOT NULL default '0', | |
| 1610 | + `quota_current` int(11) NOT NULL default '0', | |
| 1611 | + `email` varchar(255) default NULL, | |
| 1612 | + `mobile` varchar(255) default NULL, | |
| 1613 | + `email_notification` tinyint(1) NOT NULL default '0', | |
| 1614 | + `sms_notification` tinyint(1) NOT NULL default '0', | |
| 1615 | + `authentication_details_s1` varchar(255) default NULL, | |
| 1616 | + `max_sessions` int(11) default NULL, | |
| 1617 | + `language_id` int(11) default NULL, | |
| 1618 | + `authentication_details_s2` varchar(255) default NULL, | |
| 1619 | + `authentication_source_id` int(11) default NULL, | |
| 1620 | + `authentication_details_b1` tinyint(1) default NULL, | |
| 1621 | + `authentication_details_i2` int(11) default NULL, | |
| 1622 | + `authentication_details_d1` datetime default NULL, | |
| 1623 | + `authentication_details_i1` int(11) default NULL, | |
| 1624 | + `authentication_details_d2` datetime default NULL, | |
| 1625 | + `authentication_details_b2` tinyint(1) default NULL, | |
| 1626 | + `last_login` datetime default NULL, | |
| 1627 | + `disabled` tinyint(1) NOT NULL, | |
| 1628 | + PRIMARY KEY (`id`), | |
| 1629 | + UNIQUE KEY `username` (`username`), | |
| 1630 | + KEY `authentication_source_id` (`authentication_source_id`), | |
| 1631 | + KEY `last_login` (`last_login`), | |
| 1632 | + KEY `disabled` (`disabled`), | |
| 1633 | + CONSTRAINT `users_ibfk_1` FOREIGN KEY (`authentication_source_id`) REFERENCES `authentication_sources` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1634 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1635 | + | |
| 1636 | +-- | |
| 1637 | +-- Table structure for table `users_groups_link` | |
| 1638 | +-- | |
| 1639 | + | |
| 1640 | +CREATE TABLE `users_groups_link` ( | |
| 1641 | + `id` int(11) NOT NULL auto_increment, | |
| 1642 | + `user_id` int(11) NOT NULL default '0', | |
| 1643 | + `group_id` int(11) NOT NULL default '0', | |
| 1644 | + PRIMARY KEY (`id`), | |
| 1645 | + KEY `user_id` (`user_id`), | |
| 1646 | + KEY `group_id` (`group_id`), | |
| 1647 | + CONSTRAINT `users_groups_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1648 | + CONSTRAINT `users_groups_link_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1649 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1650 | + | |
| 1651 | +-- | |
| 1652 | +-- Table structure for table `workflow_actions` | |
| 1653 | +-- | |
| 1654 | + | |
| 1655 | +CREATE TABLE `workflow_actions` ( | |
| 1656 | + `workflow_id` int(11) NOT NULL default '0', | |
| 1657 | + `action_name` varchar(255) NOT NULL, | |
| 1658 | + PRIMARY KEY (`workflow_id`) | |
| 1659 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1660 | + | |
| 1661 | +-- | |
| 1662 | +-- Table structure for table `workflow_documents` | |
| 1663 | +-- | |
| 1664 | + | |
| 1665 | +CREATE TABLE `workflow_documents` ( | |
| 1666 | + `document_id` int(11) NOT NULL default '0', | |
| 1667 | + `workflow_id` int(11) NOT NULL default '0', | |
| 1668 | + `state_id` int(11) NOT NULL default '0', | |
| 1669 | + PRIMARY KEY (`document_id`), | |
| 1670 | + KEY `workflow_id` (`workflow_id`), | |
| 1671 | + KEY `state_id` (`state_id`), | |
| 1672 | + CONSTRAINT `workflow_documents_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1673 | + CONSTRAINT `workflow_documents_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1674 | + CONSTRAINT `workflow_documents_ibfk_3` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1675 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1676 | + | |
| 1677 | +-- | |
| 1678 | +-- Table structure for table `workflow_state_actions` | |
| 1679 | +-- | |
| 1680 | + | |
| 1681 | +CREATE TABLE `workflow_state_actions` ( | |
| 1682 | + `state_id` int(11) NOT NULL default '0', | |
| 1683 | + `action_name` varchar(255) NOT NULL, | |
| 1684 | + KEY `state_id` (`state_id`), | |
| 1685 | + CONSTRAINT `workflow_state_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1686 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1687 | + | |
| 1688 | +-- | |
| 1689 | +-- Table structure for table `workflow_state_disabled_actions` | |
| 1690 | +-- | |
| 1691 | + | |
| 1692 | +CREATE TABLE `workflow_state_disabled_actions` ( | |
| 1693 | + `state_id` int(11) NOT NULL default '0', | |
| 1694 | + `action_name` varchar(255) NOT NULL, | |
| 1695 | + KEY `state_id` (`state_id`), | |
| 1696 | + CONSTRAINT `workflow_state_disabled_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1697 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1698 | + | |
| 1699 | +-- | |
| 1700 | +-- Table structure for table `workflow_state_permission_assignments` | |
| 1701 | +-- | |
| 1702 | + | |
| 1703 | +CREATE TABLE `workflow_state_permission_assignments` ( | |
| 1704 | + `id` int(11) NOT NULL auto_increment, | |
| 1705 | + `workflow_state_id` int(11) NOT NULL default '0', | |
| 1706 | + `permission_id` int(11) NOT NULL default '0', | |
| 1707 | + `permission_descriptor_id` int(11) NOT NULL default '0', | |
| 1708 | + PRIMARY KEY (`id`), | |
| 1709 | + KEY `permission_id` (`permission_id`), | |
| 1710 | + KEY `permission_descriptor_id` (`permission_descriptor_id`), | |
| 1711 | + KEY `workflow_state_id` (`workflow_state_id`), | |
| 1712 | + CONSTRAINT `workflow_state_permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1713 | + CONSTRAINT `workflow_state_permission_assignments_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1714 | + CONSTRAINT `workflow_state_permission_assignments_ibfk_3` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1715 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1716 | + | |
| 1717 | +-- | |
| 1718 | +-- Table structure for table `workflow_state_transitions` | |
| 1719 | +-- | |
| 1720 | + | |
| 1721 | +CREATE TABLE `workflow_state_transitions` ( | |
| 1722 | + `state_id` int(11) NOT NULL default '0', | |
| 1723 | + `transition_id` int(11) NOT NULL default '0', | |
| 1724 | + PRIMARY KEY (`state_id`,`transition_id`), | |
| 1725 | + KEY `transition_id` (`transition_id`), | |
| 1726 | + CONSTRAINT `workflow_state_transitions_ibfk_2` FOREIGN KEY (`transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1727 | + CONSTRAINT `workflow_state_transitions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1728 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1729 | + | |
| 1730 | +-- | |
| 1731 | +-- Table structure for table `workflow_states` | |
| 1732 | +-- | |
| 1733 | + | |
| 1734 | +CREATE TABLE `workflow_states` ( | |
| 1735 | + `id` int(11) NOT NULL auto_increment, | |
| 1736 | + `workflow_id` int(11) NOT NULL default '0', | |
| 1737 | + `name` varchar(255) NOT NULL, | |
| 1738 | + `human_name` varchar(100) NOT NULL, | |
| 1739 | + `inform_descriptor_id` int(11) default NULL, | |
| 1740 | + `manage_permissions` tinyint(1) NOT NULL default '0', | |
| 1741 | + `manage_actions` tinyint(1) NOT NULL default '0', | |
| 1742 | + PRIMARY KEY (`id`), | |
| 1743 | + KEY `workflow_id` (`workflow_id`), | |
| 1744 | + KEY `name` (`name`), | |
| 1745 | + KEY `inform_descriptor_id` (`inform_descriptor_id`), | |
| 1746 | + CONSTRAINT `workflow_states_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1747 | + CONSTRAINT `workflow_states_ibfk_2` FOREIGN KEY (`inform_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1748 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1749 | + | |
| 1750 | +-- | |
| 1751 | +-- Table structure for table `workflow_transitions` | |
| 1752 | +-- | |
| 1753 | + | |
| 1754 | +CREATE TABLE `workflow_transitions` ( | |
| 1755 | + `id` int(11) NOT NULL auto_increment, | |
| 1756 | + `workflow_id` int(11) NOT NULL default '0', | |
| 1757 | + `name` varchar(255) NOT NULL, | |
| 1758 | + `human_name` varchar(255) NOT NULL, | |
| 1759 | + `target_state_id` int(11) NOT NULL default '0', | |
| 1760 | + `guard_permission_id` int(11) default '0', | |
| 1761 | + `guard_group_id` int(11) default '0', | |
| 1762 | + `guard_role_id` int(11) default '0', | |
| 1763 | + `guard_condition_id` int(11) default NULL, | |
| 1764 | + PRIMARY KEY (`id`), | |
| 1765 | + UNIQUE KEY `workflow_id_name` (`workflow_id`,`name`), | |
| 1766 | + KEY `target_state_id` (`target_state_id`), | |
| 1767 | + KEY `guard_condition_id` (`guard_condition_id`), | |
| 1768 | + KEY `guard_group_id` (`guard_group_id`), | |
| 1769 | + KEY `guard_role_id` (`guard_role_id`), | |
| 1770 | + KEY `name` (`name`), | |
| 1771 | + KEY `guard_permission_id` (`guard_permission_id`), | |
| 1772 | + CONSTRAINT `workflow_transitions_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1773 | + CONSTRAINT `workflow_transitions_ibfk_2` FOREIGN KEY (`target_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1774 | + CONSTRAINT `workflow_transitions_ibfk_3` FOREIGN KEY (`guard_permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1775 | + CONSTRAINT `workflow_transitions_ibfk_4` FOREIGN KEY (`guard_condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1776 | + CONSTRAINT `workflow_transitions_ibfk_5` FOREIGN KEY (`guard_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| 1777 | + CONSTRAINT `workflow_transitions_ibfk_6` FOREIGN KEY (`guard_role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1778 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1779 | + | |
| 1780 | +-- | |
| 1781 | +-- Table structure for table `workflow_trigger_instances` | |
| 1782 | +-- | |
| 1783 | + | |
| 1784 | +CREATE TABLE `workflow_trigger_instances` ( | |
| 1785 | + `id` int(11) NOT NULL auto_increment, | |
| 1786 | + `workflow_transition_id` int(11) NOT NULL default '0', | |
| 1787 | + `namespace` varchar(255) NOT NULL, | |
| 1788 | + `config_array` text, | |
| 1789 | + PRIMARY KEY (`id`), | |
| 1790 | + KEY `workflow_transition_id` (`workflow_transition_id`), | |
| 1791 | + KEY `namespace` (`namespace`), | |
| 1792 | + CONSTRAINT `workflow_trigger_instances_ibfk_1` FOREIGN KEY (`workflow_transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1793 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
| 1794 | + | |
| 1795 | +-- | |
| 1796 | +-- Table structure for table `workflows` | |
| 1797 | +-- | |
| 1798 | + | |
| 1799 | +CREATE TABLE `workflows` ( | |
| 1800 | + `id` int(11) NOT NULL auto_increment, | |
| 1801 | + `name` varchar(255) NOT NULL, | |
| 1802 | + `human_name` varchar(100) NOT NULL, | |
| 1803 | + `start_state_id` int(11) default NULL, | |
| 1804 | + `enabled` tinyint(1) NOT NULL default '1', | |
| 1805 | + PRIMARY KEY (`id`), | |
| 1806 | + UNIQUE KEY `name` (`name`), | |
| 1807 | + KEY `start_state_id` (`start_state_id`), | |
| 1808 | + CONSTRAINT `workflows_ibfk_1` FOREIGN KEY (`start_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| 1809 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1810 | + | |
| 1811 | +-- | |
| 1812 | +-- Table structure for table `zseq_active_sessions` | |
| 1813 | +-- | |
| 1814 | + | |
| 1815 | +CREATE TABLE `zseq_active_sessions` ( | |
| 1816 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1817 | + PRIMARY KEY (`id`) | |
| 1818 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1819 | + | |
| 1820 | +-- | |
| 1821 | +-- Table structure for table `zseq_archive_restoration_request` | |
| 1822 | +-- | |
| 1823 | + | |
| 1824 | +CREATE TABLE `zseq_archive_restoration_request` ( | |
| 1825 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1826 | + PRIMARY KEY (`id`) | |
| 1827 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1828 | + | |
| 1829 | +-- | |
| 1830 | +-- Table structure for table `zseq_archiving_settings` | |
| 1831 | +-- | |
| 1832 | + | |
| 1833 | +CREATE TABLE `zseq_archiving_settings` ( | |
| 1834 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1835 | + PRIMARY KEY (`id`) | |
| 1836 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1837 | + | |
| 1838 | +-- | |
| 1839 | +-- Table structure for table `zseq_archiving_type_lookup` | |
| 1840 | +-- | |
| 1841 | + | |
| 1842 | +CREATE TABLE `zseq_archiving_type_lookup` ( | |
| 1843 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1844 | + PRIMARY KEY (`id`) | |
| 1845 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1846 | + | |
| 1847 | +-- | |
| 1848 | +-- Table structure for table `zseq_authentication_sources` | |
| 1849 | +-- | |
| 1850 | + | |
| 1851 | +CREATE TABLE `zseq_authentication_sources` ( | |
| 1852 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1853 | + PRIMARY KEY (`id`) | |
| 1854 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1855 | + | |
| 1856 | +-- | |
| 1857 | +-- Table structure for table `zseq_column_entries` | |
| 1858 | +-- | |
| 1859 | + | |
| 1860 | +CREATE TABLE `zseq_column_entries` ( | |
| 1861 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1862 | + PRIMARY KEY (`id`) | |
| 1863 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1864 | + | |
| 1865 | +-- | |
| 1866 | +-- Table structure for table `zseq_config_settings` | |
| 1867 | +-- | |
| 1868 | + | |
| 1869 | +CREATE TABLE `zseq_config_settings` ( | |
| 1870 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1871 | + PRIMARY KEY (`id`) | |
| 1872 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1873 | + | |
| 1874 | +-- | |
| 1875 | +-- Table structure for table `zseq_dashlet_disables` | |
| 1876 | +-- | |
| 1877 | + | |
| 1878 | +CREATE TABLE `zseq_dashlet_disables` ( | |
| 1879 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1880 | + PRIMARY KEY (`id`) | |
| 1881 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1882 | + | |
| 1883 | +-- | |
| 1884 | +-- Table structure for table `zseq_data_types` | |
| 1885 | +-- | |
| 1886 | + | |
| 1887 | +CREATE TABLE `zseq_data_types` ( | |
| 1888 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1889 | + PRIMARY KEY (`id`) | |
| 1890 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1891 | + | |
| 1892 | +-- | |
| 1893 | +-- Table structure for table `zseq_discussion_comments` | |
| 1894 | +-- | |
| 1895 | + | |
| 1896 | +CREATE TABLE `zseq_discussion_comments` ( | |
| 1897 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1898 | + PRIMARY KEY (`id`) | |
| 1899 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1900 | + | |
| 1901 | +-- | |
| 1902 | +-- Table structure for table `zseq_discussion_threads` | |
| 1903 | +-- | |
| 1904 | + | |
| 1905 | +CREATE TABLE `zseq_discussion_threads` ( | |
| 1906 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1907 | + PRIMARY KEY (`id`) | |
| 1908 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1909 | + | |
| 1910 | +-- | |
| 1911 | +-- Table structure for table `zseq_document_archiving_link` | |
| 1912 | +-- | |
| 1913 | + | |
| 1914 | +CREATE TABLE `zseq_document_archiving_link` ( | |
| 1915 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1916 | + PRIMARY KEY (`id`) | |
| 1917 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1918 | + | |
| 1919 | +-- | |
| 1920 | +-- Table structure for table `zseq_document_content_version` | |
| 1921 | +-- | |
| 1922 | + | |
| 1923 | +CREATE TABLE `zseq_document_content_version` ( | |
| 1924 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1925 | + PRIMARY KEY (`id`) | |
| 1926 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1927 | + | |
| 1928 | +-- | |
| 1929 | +-- Table structure for table `zseq_document_fields` | |
| 1930 | +-- | |
| 1931 | + | |
| 1932 | +CREATE TABLE `zseq_document_fields` ( | |
| 1933 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1934 | + PRIMARY KEY (`id`) | |
| 1935 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1936 | + | |
| 1937 | +-- | |
| 1938 | +-- Table structure for table `zseq_document_fields_link` | |
| 1939 | +-- | |
| 1940 | + | |
| 1941 | +CREATE TABLE `zseq_document_fields_link` ( | |
| 1942 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1943 | + PRIMARY KEY (`id`) | |
| 1944 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1945 | + | |
| 1946 | +-- | |
| 1947 | +-- Table structure for table `zseq_document_link` | |
| 1948 | +-- | |
| 1949 | + | |
| 1950 | +CREATE TABLE `zseq_document_link` ( | |
| 1951 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1952 | + PRIMARY KEY (`id`) | |
| 1953 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1954 | + | |
| 1955 | +-- | |
| 1956 | +-- Table structure for table `zseq_document_link_types` | |
| 1957 | +-- | |
| 1958 | + | |
| 1959 | +CREATE TABLE `zseq_document_link_types` ( | |
| 1960 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1961 | + PRIMARY KEY (`id`) | |
| 1962 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1963 | + | |
| 1964 | +-- | |
| 1965 | +-- Table structure for table `zseq_document_metadata_version` | |
| 1966 | +-- | |
| 1967 | + | |
| 1968 | +CREATE TABLE `zseq_document_metadata_version` ( | |
| 1969 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1970 | + PRIMARY KEY (`id`) | |
| 1971 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1972 | + | |
| 1973 | +-- | |
| 1974 | +-- Table structure for table `zseq_document_role_allocations` | |
| 1975 | +-- | |
| 1976 | + | |
| 1977 | +CREATE TABLE `zseq_document_role_allocations` ( | |
| 1978 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1979 | + PRIMARY KEY (`id`) | |
| 1980 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1981 | + | |
| 1982 | +-- | |
| 1983 | +-- Table structure for table `zseq_document_subscriptions` | |
| 1984 | +-- | |
| 1985 | + | |
| 1986 | +CREATE TABLE `zseq_document_subscriptions` ( | |
| 1987 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 1988 | + PRIMARY KEY (`id`) | |
| 1989 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 1990 | + | |
| 1991 | +-- | |
| 1992 | +-- Table structure for table `zseq_document_tags` | |
| 1993 | +-- | |
| 1994 | + | |
| 1995 | +CREATE TABLE `zseq_document_tags` ( | |
| 1996 | + `id` int(10) NOT NULL auto_increment, | |
| 1997 | + PRIMARY KEY (`id`) | |
| 1998 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 1999 | + | |
| 2000 | +-- | |
| 2001 | +-- Table structure for table `zseq_document_transaction_types_lookup` | |
| 2002 | +-- | |
| 2003 | + | |
| 2004 | +CREATE TABLE `zseq_document_transaction_types_lookup` ( | |
| 2005 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2006 | + PRIMARY KEY (`id`) | |
| 2007 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2008 | + | |
| 2009 | +-- | |
| 2010 | +-- Table structure for table `zseq_document_transactions` | |
| 2011 | +-- | |
| 2012 | + | |
| 2013 | +CREATE TABLE `zseq_document_transactions` ( | |
| 2014 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2015 | + PRIMARY KEY (`id`) | |
| 2016 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2017 | + | |
| 2018 | +-- | |
| 2019 | +-- Table structure for table `zseq_document_type_fields_link` | |
| 2020 | +-- | |
| 2021 | + | |
| 2022 | +CREATE TABLE `zseq_document_type_fields_link` ( | |
| 2023 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2024 | + PRIMARY KEY (`id`) | |
| 2025 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2026 | + | |
| 2027 | +-- | |
| 2028 | +-- Table structure for table `zseq_document_type_fieldsets_link` | |
| 2029 | +-- | |
| 2030 | + | |
| 2031 | +CREATE TABLE `zseq_document_type_fieldsets_link` ( | |
| 2032 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2033 | + PRIMARY KEY (`id`) | |
| 2034 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2035 | + | |
| 2036 | +-- | |
| 2037 | +-- Table structure for table `zseq_document_types_lookup` | |
| 2038 | +-- | |
| 2039 | + | |
| 2040 | +CREATE TABLE `zseq_document_types_lookup` ( | |
| 2041 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2042 | + PRIMARY KEY (`id`) | |
| 2043 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2044 | + | |
| 2045 | +-- | |
| 2046 | +-- Table structure for table `zseq_documents` | |
| 2047 | +-- | |
| 2048 | + | |
| 2049 | +CREATE TABLE `zseq_documents` ( | |
| 2050 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2051 | + PRIMARY KEY (`id`) | |
| 2052 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2053 | + | |
| 2054 | +-- | |
| 2055 | +-- Table structure for table `zseq_field_behaviours` | |
| 2056 | +-- | |
| 2057 | + | |
| 2058 | +CREATE TABLE `zseq_field_behaviours` ( | |
| 2059 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2060 | + PRIMARY KEY (`id`) | |
| 2061 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2062 | + | |
| 2063 | +-- | |
| 2064 | +-- Table structure for table `zseq_field_value_instances` | |
| 2065 | +-- | |
| 2066 | + | |
| 2067 | +CREATE TABLE `zseq_field_value_instances` ( | |
| 2068 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2069 | + PRIMARY KEY (`id`) | |
| 2070 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2071 | + | |
| 2072 | +-- | |
| 2073 | +-- Table structure for table `zseq_fieldsets` | |
| 2074 | +-- | |
| 2075 | + | |
| 2076 | +CREATE TABLE `zseq_fieldsets` ( | |
| 2077 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2078 | + PRIMARY KEY (`id`) | |
| 2079 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2080 | + | |
| 2081 | +-- | |
| 2082 | +-- Table structure for table `zseq_folder_doctypes_link` | |
| 2083 | +-- | |
| 2084 | + | |
| 2085 | +CREATE TABLE `zseq_folder_doctypes_link` ( | |
| 2086 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2087 | + PRIMARY KEY (`id`) | |
| 2088 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2089 | + | |
| 2090 | +-- | |
| 2091 | +-- Table structure for table `zseq_folder_subscriptions` | |
| 2092 | +-- | |
| 2093 | + | |
| 2094 | +CREATE TABLE `zseq_folder_subscriptions` ( | |
| 2095 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2096 | + PRIMARY KEY (`id`) | |
| 2097 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2098 | + | |
| 2099 | +-- | |
| 2100 | +-- Table structure for table `zseq_folder_transactions` | |
| 2101 | +-- | |
| 2102 | + | |
| 2103 | +CREATE TABLE `zseq_folder_transactions` ( | |
| 2104 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2105 | + PRIMARY KEY (`id`) | |
| 2106 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2107 | + | |
| 2108 | +-- | |
| 2109 | +-- Table structure for table `zseq_folders` | |
| 2110 | +-- | |
| 2111 | + | |
| 2112 | +CREATE TABLE `zseq_folders` ( | |
| 2113 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2114 | + PRIMARY KEY (`id`) | |
| 2115 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2116 | + | |
| 2117 | +-- | |
| 2118 | +-- Table structure for table `zseq_folders_users_roles_link` | |
| 2119 | +-- | |
| 2120 | + | |
| 2121 | +CREATE TABLE `zseq_folders_users_roles_link` ( | |
| 2122 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2123 | + PRIMARY KEY (`id`) | |
| 2124 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2125 | + | |
| 2126 | +-- | |
| 2127 | +-- Table structure for table `zseq_groups_groups_link` | |
| 2128 | +-- | |
| 2129 | + | |
| 2130 | +CREATE TABLE `zseq_groups_groups_link` ( | |
| 2131 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2132 | + PRIMARY KEY (`id`) | |
| 2133 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2134 | + | |
| 2135 | +-- | |
| 2136 | +-- Table structure for table `zseq_groups_lookup` | |
| 2137 | +-- | |
| 2138 | + | |
| 2139 | +CREATE TABLE `zseq_groups_lookup` ( | |
| 2140 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2141 | + PRIMARY KEY (`id`) | |
| 2142 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2143 | + | |
| 2144 | +-- | |
| 2145 | +-- Table structure for table `zseq_help` | |
| 2146 | +-- | |
| 2147 | + | |
| 2148 | +CREATE TABLE `zseq_help` ( | |
| 2149 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2150 | + PRIMARY KEY (`id`) | |
| 2151 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2152 | + | |
| 2153 | +-- | |
| 2154 | +-- Table structure for table `zseq_help_replacement` | |
| 2155 | +-- | |
| 2156 | + | |
| 2157 | +CREATE TABLE `zseq_help_replacement` ( | |
| 2158 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2159 | + PRIMARY KEY (`id`) | |
| 2160 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2161 | + | |
| 2162 | +-- | |
| 2163 | +-- Table structure for table `zseq_interceptor_instances` | |
| 2164 | +-- | |
| 2165 | + | |
| 2166 | +CREATE TABLE `zseq_interceptor_instances` ( | |
| 2167 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2168 | + PRIMARY KEY (`id`) | |
| 2169 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2170 | + | |
| 2171 | +-- | |
| 2172 | +-- Table structure for table `zseq_links` | |
| 2173 | +-- | |
| 2174 | + | |
| 2175 | +CREATE TABLE `zseq_links` ( | |
| 2176 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2177 | + PRIMARY KEY (`id`) | |
| 2178 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2179 | + | |
| 2180 | +-- | |
| 2181 | +-- Table structure for table `zseq_metadata_lookup` | |
| 2182 | +-- | |
| 2183 | + | |
| 2184 | +CREATE TABLE `zseq_metadata_lookup` ( | |
| 2185 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2186 | + PRIMARY KEY (`id`) | |
| 2187 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2188 | + | |
| 2189 | +-- | |
| 2190 | +-- Table structure for table `zseq_metadata_lookup_tree` | |
| 2191 | +-- | |
| 2192 | + | |
| 2193 | +CREATE TABLE `zseq_metadata_lookup_tree` ( | |
| 2194 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2195 | + PRIMARY KEY (`id`) | |
| 2196 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2197 | + | |
| 2198 | +-- | |
| 2199 | +-- Table structure for table `zseq_mime_documents` | |
| 2200 | +-- | |
| 2201 | + | |
| 2202 | +CREATE TABLE `zseq_mime_documents` ( | |
| 2203 | + `id` int(11) default NULL | |
| 2204 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 2205 | + | |
| 2206 | +-- | |
| 2207 | +-- Table structure for table `zseq_mime_extractors` | |
| 2208 | +-- | |
| 2209 | + | |
| 2210 | +CREATE TABLE `zseq_mime_extractors` ( | |
| 2211 | + `id` int(11) default NULL | |
| 2212 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 2213 | + | |
| 2214 | +-- | |
| 2215 | +-- Table structure for table `zseq_mime_types` | |
| 2216 | +-- | |
| 2217 | + | |
| 2218 | +CREATE TABLE `zseq_mime_types` ( | |
| 2219 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2220 | + PRIMARY KEY (`id`) | |
| 2221 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2222 | + | |
| 2223 | +-- | |
| 2224 | +-- Table structure for table `zseq_news` | |
| 2225 | +-- | |
| 2226 | + | |
| 2227 | +CREATE TABLE `zseq_news` ( | |
| 2228 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2229 | + PRIMARY KEY (`id`) | |
| 2230 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2231 | + | |
| 2232 | +-- | |
| 2233 | +-- Table structure for table `zseq_notifications` | |
| 2234 | +-- | |
| 2235 | + | |
| 2236 | +CREATE TABLE `zseq_notifications` ( | |
| 2237 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2238 | + PRIMARY KEY (`id`) | |
| 2239 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2240 | + | |
| 2241 | +-- | |
| 2242 | +-- Table structure for table `zseq_organisations_lookup` | |
| 2243 | +-- | |
| 2244 | + | |
| 2245 | +CREATE TABLE `zseq_organisations_lookup` ( | |
| 2246 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2247 | + PRIMARY KEY (`id`) | |
| 2248 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2249 | + | |
| 2250 | +-- | |
| 2251 | +-- Table structure for table `zseq_permission_assignments` | |
| 2252 | +-- | |
| 2253 | + | |
| 2254 | +CREATE TABLE `zseq_permission_assignments` ( | |
| 2255 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2256 | + PRIMARY KEY (`id`) | |
| 2257 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2258 | + | |
| 2259 | +-- | |
| 2260 | +-- Table structure for table `zseq_permission_descriptors` | |
| 2261 | +-- | |
| 2262 | + | |
| 2263 | +CREATE TABLE `zseq_permission_descriptors` ( | |
| 2264 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2265 | + PRIMARY KEY (`id`) | |
| 2266 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2267 | + | |
| 2268 | +-- | |
| 2269 | +-- Table structure for table `zseq_permission_dynamic_conditions` | |
| 2270 | +-- | |
| 2271 | + | |
| 2272 | +CREATE TABLE `zseq_permission_dynamic_conditions` ( | |
| 2273 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2274 | + PRIMARY KEY (`id`) | |
| 2275 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2276 | + | |
| 2277 | +-- | |
| 2278 | +-- Table structure for table `zseq_permission_lookup_assignments` | |
| 2279 | +-- | |
| 2280 | + | |
| 2281 | +CREATE TABLE `zseq_permission_lookup_assignments` ( | |
| 2282 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2283 | + PRIMARY KEY (`id`) | |
| 2284 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2285 | + | |
| 2286 | +-- | |
| 2287 | +-- Table structure for table `zseq_permission_lookups` | |
| 2288 | +-- | |
| 2289 | + | |
| 2290 | +CREATE TABLE `zseq_permission_lookups` ( | |
| 2291 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2292 | + PRIMARY KEY (`id`) | |
| 2293 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2294 | + | |
| 2295 | +-- | |
| 2296 | +-- Table structure for table `zseq_permission_objects` | |
| 2297 | +-- | |
| 2298 | + | |
| 2299 | +CREATE TABLE `zseq_permission_objects` ( | |
| 2300 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2301 | + PRIMARY KEY (`id`) | |
| 2302 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2303 | + | |
| 2304 | +-- | |
| 2305 | +-- Table structure for table `zseq_permissions` | |
| 2306 | +-- | |
| 2307 | + | |
| 2308 | +CREATE TABLE `zseq_permissions` ( | |
| 2309 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2310 | + PRIMARY KEY (`id`) | |
| 2311 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2312 | + | |
| 2313 | +-- | |
| 2314 | +-- Table structure for table `zseq_plugin_helper` | |
| 2315 | +-- | |
| 2316 | + | |
| 2317 | +CREATE TABLE `zseq_plugin_helper` ( | |
| 2318 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2319 | + PRIMARY KEY (`id`) | |
| 2320 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2321 | + | |
| 2322 | +-- | |
| 2323 | +-- Table structure for table `zseq_plugin_rss` | |
| 2324 | +-- | |
| 2325 | + | |
| 2326 | +CREATE TABLE `zseq_plugin_rss` ( | |
| 2327 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2328 | + PRIMARY KEY (`id`) | |
| 2329 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2330 | + | |
| 2331 | +-- | |
| 2332 | +-- Table structure for table `zseq_plugins` | |
| 2333 | +-- | |
| 2334 | + | |
| 2335 | +CREATE TABLE `zseq_plugins` ( | |
| 2336 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2337 | + PRIMARY KEY (`id`) | |
| 2338 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2339 | + | |
| 2340 | +-- | |
| 2341 | +-- Table structure for table `zseq_role_allocations` | |
| 2342 | +-- | |
| 2343 | + | |
| 2344 | +CREATE TABLE `zseq_role_allocations` ( | |
| 2345 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2346 | + PRIMARY KEY (`id`) | |
| 2347 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2348 | + | |
| 2349 | +-- | |
| 2350 | +-- Table structure for table `zseq_roles` | |
| 2351 | +-- | |
| 2352 | + | |
| 2353 | +CREATE TABLE `zseq_roles` ( | |
| 2354 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2355 | + PRIMARY KEY (`id`) | |
| 2356 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2357 | + | |
| 2358 | +-- | |
| 2359 | +-- Table structure for table `zseq_saved_searches` | |
| 2360 | +-- | |
| 2361 | + | |
| 2362 | +CREATE TABLE `zseq_saved_searches` ( | |
| 2363 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2364 | + PRIMARY KEY (`id`) | |
| 2365 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2366 | + | |
| 2367 | +-- | |
| 2368 | +-- Table structure for table `zseq_scheduler_tasks` | |
| 2369 | +-- | |
| 2370 | + | |
| 2371 | +CREATE TABLE `zseq_scheduler_tasks` ( | |
| 2372 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2373 | + PRIMARY KEY (`id`) | |
| 2374 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2375 | + | |
| 2376 | +-- | |
| 2377 | +-- Table structure for table `zseq_search_saved` | |
| 2378 | +-- | |
| 2379 | + | |
| 2380 | +CREATE TABLE `zseq_search_saved` ( | |
| 2381 | + `id` int(11) default NULL | |
| 2382 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| 2383 | + | |
| 2384 | +-- | |
| 2385 | +-- Table structure for table `zseq_status_lookup` | |
| 2386 | +-- | |
| 2387 | + | |
| 2388 | +CREATE TABLE `zseq_status_lookup` ( | |
| 2389 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2390 | + PRIMARY KEY (`id`) | |
| 2391 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2392 | + | |
| 2393 | +-- | |
| 2394 | +-- Table structure for table `zseq_system_settings` | |
| 2395 | +-- | |
| 2396 | + | |
| 2397 | +CREATE TABLE `zseq_system_settings` ( | |
| 2398 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2399 | + PRIMARY KEY (`id`) | |
| 2400 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2401 | + | |
| 2402 | +-- | |
| 2403 | +-- Table structure for table `zseq_tag_words` | |
| 2404 | +-- | |
| 2405 | + | |
| 2406 | +CREATE TABLE `zseq_tag_words` ( | |
| 2407 | + `id` int(10) NOT NULL auto_increment, | |
| 2408 | + PRIMARY KEY (`id`) | |
| 2409 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
| 2410 | + | |
| 2411 | +-- | |
| 2412 | +-- Table structure for table `zseq_time_period` | |
| 2413 | +-- | |
| 2414 | + | |
| 2415 | +CREATE TABLE `zseq_time_period` ( | |
| 2416 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2417 | + PRIMARY KEY (`id`) | |
| 2418 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2419 | + | |
| 2420 | +-- | |
| 2421 | +-- Table structure for table `zseq_time_unit_lookup` | |
| 2422 | +-- | |
| 2423 | + | |
| 2424 | +CREATE TABLE `zseq_time_unit_lookup` ( | |
| 2425 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2426 | + PRIMARY KEY (`id`) | |
| 2427 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2428 | + | |
| 2429 | +-- | |
| 2430 | +-- Table structure for table `zseq_units_lookup` | |
| 2431 | +-- | |
| 2432 | + | |
| 2433 | +CREATE TABLE `zseq_units_lookup` ( | |
| 2434 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2435 | + PRIMARY KEY (`id`) | |
| 2436 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2437 | + | |
| 2438 | +-- | |
| 2439 | +-- Table structure for table `zseq_units_organisations_link` | |
| 2440 | +-- | |
| 2441 | + | |
| 2442 | +CREATE TABLE `zseq_units_organisations_link` ( | |
| 2443 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2444 | + PRIMARY KEY (`id`) | |
| 2445 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2446 | + | |
| 2447 | +-- | |
| 2448 | +-- Table structure for table `zseq_upgrades` | |
| 2449 | +-- | |
| 2450 | + | |
| 2451 | +CREATE TABLE `zseq_upgrades` ( | |
| 2452 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2453 | + PRIMARY KEY (`id`) | |
| 2454 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2455 | + | |
| 2456 | +-- | |
| 2457 | +-- Table structure for table `zseq_user_history` | |
| 2458 | +-- | |
| 2459 | + | |
| 2460 | +CREATE TABLE `zseq_user_history` ( | |
| 2461 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2462 | + PRIMARY KEY (`id`) | |
| 2463 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2464 | + | |
| 2465 | +-- | |
| 2466 | +-- Table structure for table `zseq_users` | |
| 2467 | +-- | |
| 2468 | + | |
| 2469 | +CREATE TABLE `zseq_users` ( | |
| 2470 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2471 | + PRIMARY KEY (`id`) | |
| 2472 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2473 | + | |
| 2474 | +-- | |
| 2475 | +-- Table structure for table `zseq_users_groups_link` | |
| 2476 | +-- | |
| 2477 | + | |
| 2478 | +CREATE TABLE `zseq_users_groups_link` ( | |
| 2479 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2480 | + PRIMARY KEY (`id`) | |
| 2481 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2482 | + | |
| 2483 | +-- | |
| 2484 | +-- Table structure for table `zseq_workflow_state_disabled_actions` | |
| 2485 | +-- | |
| 2486 | + | |
| 2487 | +CREATE TABLE `zseq_workflow_state_disabled_actions` ( | |
| 2488 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2489 | + PRIMARY KEY (`id`) | |
| 2490 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2491 | + | |
| 2492 | +-- | |
| 2493 | +-- Table structure for table `zseq_workflow_state_permission_assignments` | |
| 2494 | +-- | |
| 2495 | + | |
| 2496 | +CREATE TABLE `zseq_workflow_state_permission_assignments` ( | |
| 2497 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2498 | + PRIMARY KEY (`id`) | |
| 2499 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2500 | + | |
| 2501 | +-- | |
| 2502 | +-- Table structure for table `zseq_workflow_states` | |
| 2503 | +-- | |
| 2504 | + | |
| 2505 | +CREATE TABLE `zseq_workflow_states` ( | |
| 2506 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2507 | + PRIMARY KEY (`id`) | |
| 2508 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2509 | + | |
| 2510 | +-- | |
| 2511 | +-- Table structure for table `zseq_workflow_transitions` | |
| 2512 | +-- | |
| 2513 | + | |
| 2514 | +CREATE TABLE `zseq_workflow_transitions` ( | |
| 2515 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2516 | + PRIMARY KEY (`id`) | |
| 2517 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2518 | + | |
| 2519 | +-- | |
| 2520 | +-- Table structure for table `zseq_workflow_trigger_instances` | |
| 2521 | +-- | |
| 2522 | + | |
| 2523 | +CREATE TABLE `zseq_workflow_trigger_instances` ( | |
| 2524 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2525 | + PRIMARY KEY (`id`) | |
| 2526 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2527 | + | |
| 2528 | +-- | |
| 2529 | +-- Table structure for table `zseq_workflows` | |
| 2530 | +-- | |
| 2531 | + | |
| 2532 | +CREATE TABLE `zseq_workflows` ( | |
| 2533 | + `id` int(10) unsigned NOT NULL auto_increment, | |
| 2534 | + PRIMARY KEY (`id`) | |
| 2535 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; | |
| 2536 | +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | |
| 2537 | + | |
| 2538 | +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | |
| 2539 | +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | |
| 2540 | +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | |
| 2541 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
| 2542 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
| 2543 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | |
| 2544 | +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
| 2545 | + | |
| 2546 | +-- Dump completed on 2008-08-04 15:00:09 | ... | ... |
setup/wizard/sql/user.sql
0 → 100755
| 1 | +-- | |
| 2 | +-- $Id$ | |
| 3 | +-- | |
| 4 | +-- KnowledgeTree Community Edition | |
| 5 | +-- Document Management Made Simple | |
| 6 | +-- Copyright (C) 2008, 2009 KnowledgeTree Inc. | |
| 7 | +-- Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 8 | +-- | |
| 9 | +-- This program is free software; you can redistribute it and/or modify it under | |
| 10 | +-- the terms of the GNU General Public License version 3 as published by the | |
| 11 | +-- Free Software Foundation. | |
| 12 | +-- | |
| 13 | +-- This program is distributed in the hope that it will be useful, but WITHOUT | |
| 14 | +-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 15 | +-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 16 | +-- details. | |
| 17 | +-- | |
| 18 | +-- You should have received a copy of the GNU General Public License | |
| 19 | +-- along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 20 | +-- | |
| 21 | +-- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 22 | +-- California 94120-7775, or email info@knowledgetree.com. | |
| 23 | +-- | |
| 24 | +-- The interactive user interfaces in modified source and object code versions | |
| 25 | +-- of this program must display Appropriate Legal Notices, as required under | |
| 26 | +-- Section 5 of the GNU General Public License version 3. | |
| 27 | +-- | |
| 28 | +-- In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 29 | +-- these Appropriate Legal Notices must retain the display of the "Powered by | |
| 30 | +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 31 | +-- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 32 | +-- must display the words "Powered by KnowledgeTree" and retain the original | |
| 33 | +-- copyright notice. | |
| 34 | +-- Contributor( s): ______________________________________ | |
| 35 | +-- | |
| 36 | + | |
| 37 | +-- default dms user | |
| 38 | +GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO dms@localhost IDENTIFIED BY 'djw9281js'; | |
| 39 | +-- admin dms user | |
| 40 | +GRANT ALL PRIVILEGES ON dms.* TO dmsadmin@localhost IDENTIFIED BY 'js9281djw'; | ... | ... |
setup/wizard/step.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Step . | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +class Step | |
| 43 | +{ | |
| 44 | + /** | |
| 45 | + * List of variables needed by step | |
| 46 | + * | |
| 47 | + * @author KnowledgeTree Team | |
| 48 | + * @access protected | |
| 49 | + * @var array | |
| 50 | + */ | |
| 51 | + protected $temp_variables = array(); | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * List of errors encountered by step | |
| 55 | + * | |
| 56 | + * @author KnowledgeTree Team | |
| 57 | + * @access protected | |
| 58 | + * @var array | |
| 59 | + */ | |
| 60 | + protected $error = array(); | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Flag to store class information in session | |
| 64 | + * | |
| 65 | + * @author KnowledgeTree Team | |
| 66 | + * @access public | |
| 67 | + * @var array | |
| 68 | + */ | |
| 69 | + protected $storeInSession = false; | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * Flag if step needs to be installed | |
| 73 | + * | |
| 74 | + * @author KnowledgeTree Team | |
| 75 | + * @access public | |
| 76 | + * @var array | |
| 77 | + */ | |
| 78 | + protected $runInstall = false; | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * Returns step state | |
| 82 | + * | |
| 83 | + * @author KnowledgeTree Team | |
| 84 | + * @param none | |
| 85 | + * @access public | |
| 86 | + * @return void | |
| 87 | + */ | |
| 88 | + public function doStep() | |
| 89 | + { | |
| 90 | + return ''; | |
| 91 | + } | |
| 92 | + | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Returns step variables | |
| 96 | + * | |
| 97 | + * @author KnowledgeTree Team | |
| 98 | + * @param none | |
| 99 | + * @access public | |
| 100 | + * @return array | |
| 101 | + */ | |
| 102 | + public function getStepVars() | |
| 103 | + { | |
| 104 | + return $this->temp_variables; | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Returns step errors | |
| 109 | + * | |
| 110 | + * @author KnowledgeTree Team | |
| 111 | + * @param none | |
| 112 | + * @access public | |
| 113 | + * @return array | |
| 114 | + */ | |
| 115 | + public function getErrors() { | |
| 116 | + return $this->error; | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Load default step values | |
| 121 | + * | |
| 122 | + * @author KnowledgeTree Team | |
| 123 | + * @param none | |
| 124 | + * @access public | |
| 125 | + * @return void | |
| 126 | + */ | |
| 127 | + public function loadDefaults() { | |
| 128 | + return ''; | |
| 129 | + } | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * Return default step values | |
| 133 | + * | |
| 134 | + * @author KnowledgeTree Team | |
| 135 | + * @param none | |
| 136 | + * @access public | |
| 137 | + * @return array | |
| 138 | + */ | |
| 139 | + public function getDefaults() { | |
| 140 | + return array(); | |
| 141 | + } | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * Checks if edit button has been clicked | |
| 145 | + * | |
| 146 | + * @author KnowledgeTree Team | |
| 147 | + * @param none | |
| 148 | + * @access public | |
| 149 | + * @return boolean | |
| 150 | + */ | |
| 151 | + public function edit() { | |
| 152 | + if(isset($_POST['Edit'])) { | |
| 153 | + return true; | |
| 154 | + } | |
| 155 | + | |
| 156 | + return false; | |
| 157 | + } | |
| 158 | + | |
| 159 | + /** | |
| 160 | + * Checks if next button has been clicked | |
| 161 | + * | |
| 162 | + * @author KnowledgeTree Team | |
| 163 | + * @param none | |
| 164 | + * @access public | |
| 165 | + * @return boolean | |
| 166 | + */ | |
| 167 | + public function next() { | |
| 168 | + if(isset($_POST['Next'])) { | |
| 169 | + return true; | |
| 170 | + } | |
| 171 | + | |
| 172 | + return false; | |
| 173 | + } | |
| 174 | + | |
| 175 | + /** | |
| 176 | + * Checks if previous button has been clicked | |
| 177 | + * | |
| 178 | + * @author KnowledgeTree Team | |
| 179 | + * @param none | |
| 180 | + * @access public | |
| 181 | + * @return boolean | |
| 182 | + */ | |
| 183 | + public function previous() { | |
| 184 | + if(isset($_POST['Previous'])) { | |
| 185 | + return true; | |
| 186 | + } | |
| 187 | + | |
| 188 | + return false; | |
| 189 | + } | |
| 190 | + | |
| 191 | + /** | |
| 192 | + * Checks if Confirm button has been clicked | |
| 193 | + * | |
| 194 | + * @author KnowledgeTree Team | |
| 195 | + * @param none | |
| 196 | + * @access public | |
| 197 | + * @return boolean | |
| 198 | + */ | |
| 199 | + function confirm() { | |
| 200 | + if(isset($_POST['Confirm'])) { | |
| 201 | + return true; | |
| 202 | + } | |
| 203 | + | |
| 204 | + return false; | |
| 205 | + } | |
| 206 | + | |
| 207 | + /** | |
| 208 | + * Checks if Confirm button has been clicked | |
| 209 | + * | |
| 210 | + * @author KnowledgeTree Team | |
| 211 | + * @param none | |
| 212 | + * @access public | |
| 213 | + * @return boolean | |
| 214 | + */ | |
| 215 | + function install() { | |
| 216 | + if(isset($_POST['Install'])) { | |
| 217 | + return true; | |
| 218 | + } | |
| 219 | + | |
| 220 | + return false; | |
| 221 | + } | |
| 222 | + | |
| 223 | + /** | |
| 224 | + * Checks if we are currently in this class step | |
| 225 | + * | |
| 226 | + * @author KnowledgeTree Team | |
| 227 | + * @param string | |
| 228 | + * @access public | |
| 229 | + * @return boolean | |
| 230 | + */ | |
| 231 | + public function inStep($name) { | |
| 232 | + if($_GET['step_name'] == $name) | |
| 233 | + return true; | |
| 234 | + return false; | |
| 235 | + } | |
| 236 | + | |
| 237 | + /** | |
| 238 | + * Load session data to post | |
| 239 | + * | |
| 240 | + * @author KnowledgeTree Team | |
| 241 | + * @params none | |
| 242 | + * @access private | |
| 243 | + * @return boolean | |
| 244 | + */ | |
| 245 | + public function setDataFromSession($class) { | |
| 246 | + if(empty($_SESSION[$class])) { | |
| 247 | + return false; | |
| 248 | + } | |
| 249 | + $_POST = $_SESSION[$class]; | |
| 250 | + | |
| 251 | + return true; | |
| 252 | + } | |
| 253 | + | |
| 254 | + public function getDataFromSession($class) { | |
| 255 | + if(empty($_SESSION[$class])) { | |
| 256 | + return false; | |
| 257 | + } | |
| 258 | + | |
| 259 | + return $_SESSION[$class]; | |
| 260 | + } | |
| 261 | + | |
| 262 | + /** | |
| 263 | + * Safer way to return post data helper | |
| 264 | + * | |
| 265 | + * @author KnowledgeTree Team | |
| 266 | + * @params SimpleXmlObject $simplexml | |
| 267 | + * @access public | |
| 268 | + * @return void | |
| 269 | + */ | |
| 270 | + public function getPostSafe($key) { | |
| 271 | + return isset($_POST[$key]) ? $_POST[$key] : ""; | |
| 272 | + } | |
| 273 | + | |
| 274 | + /** | |
| 275 | + * Runs step install if required | |
| 276 | + * | |
| 277 | + * @author KnowledgeTree Team | |
| 278 | + * @param none | |
| 279 | + * @access public | |
| 280 | + * @return void | |
| 281 | + */ | |
| 282 | + public function installStep() { | |
| 283 | + return ''; | |
| 284 | + } | |
| 285 | + | |
| 286 | + public function storeInSession() { | |
| 287 | + return $this->storeInSession; | |
| 288 | + } | |
| 289 | + | |
| 290 | + public function runInstall() { | |
| 291 | + return $this->runInstall; | |
| 292 | + } | |
| 293 | + | |
| 294 | + public function setDBConfig() { | |
| 295 | + return ''; | |
| 296 | + } | |
| 297 | +} | |
| 298 | + | |
| 299 | +?> | |
| 0 | 300 | \ No newline at end of file | ... | ... |
setup/wizard/step_action.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Steap Action Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright (C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + | |
| 43 | +class stepAction { | |
| 44 | + /** | |
| 45 | + * Step class name | |
| 46 | + * | |
| 47 | + * @author KnowledgeTree Team | |
| 48 | + * @access protected | |
| 49 | + * @var string | |
| 50 | + */ | |
| 51 | + protected $stepName = ''; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * Step names for classes | |
| 55 | + * | |
| 56 | + * @author KnowledgeTree Team | |
| 57 | + * @access protected | |
| 58 | + * @var array | |
| 59 | + */ | |
| 60 | + protected $stepClassNames = array(); | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Flag if step needs confirmation | |
| 64 | + * | |
| 65 | + * @author KnowledgeTree Team | |
| 66 | + * @access protected | |
| 67 | + * @var boolean | |
| 68 | + */ | |
| 69 | + protected $displayConfirm = false; | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * Reference to session object | |
| 73 | + * | |
| 74 | + * @author KnowledgeTree Team | |
| 75 | + * @access protected | |
| 76 | + * @var object Session | |
| 77 | + */ | |
| 78 | + protected $session = null; | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * Reference to current step object | |
| 82 | + * | |
| 83 | + * @author KnowledgeTree Team | |
| 84 | + * @access protected | |
| 85 | + * @var object class Step | |
| 86 | + */ | |
| 87 | + protected $action = null; | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * Constructs step action object | |
| 91 | + * | |
| 92 | + * @author KnowledgeTree Team | |
| 93 | + * @access public | |
| 94 | + * @param string class name of the current step | |
| 95 | + */ | |
| 96 | + public function __construct($step) { | |
| 97 | + $this->stepName = $step; | |
| 98 | + } | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * Main control to handle the steps actions | |
| 102 | + * | |
| 103 | + * @author KnowledgeTree Team | |
| 104 | + * @param none | |
| 105 | + * @access public | |
| 106 | + * @return string | |
| 107 | + */ | |
| 108 | + public function doAction() { | |
| 109 | + if($this->stepName != '') { | |
| 110 | + $this->action = $this->createStep(); | |
| 111 | + //secho $this->stepName; | |
| 112 | + $response = $this->action->doStep(); | |
| 113 | + if($this->action->storeInSession()) { // Check if class values need to be stored in session | |
| 114 | + $this->loadStepToSession($this->stepName); // Send class to session | |
| 115 | + } | |
| 116 | + if ($response == 'error') { | |
| 117 | + $this->handleErrors(); // Send Errors to session | |
| 118 | + } else { | |
| 119 | + $this->clearErrors($this->stepName); // Send Errors to session | |
| 120 | + } | |
| 121 | + return $response; | |
| 122 | + } else { | |
| 123 | + die("Class Files Missing"); | |
| 124 | + } | |
| 125 | + } | |
| 126 | + | |
| 127 | + /** | |
| 128 | + * Instantiate a step. | |
| 129 | + * | |
| 130 | + * @author KnowledgeTree Team | |
| 131 | + * @param none | |
| 132 | + * @access public | |
| 133 | + * @return object Step | |
| 134 | + */ | |
| 135 | + public function createStep() { | |
| 136 | + require_once(STEP_DIR."{$this->stepName}.php"); | |
| 137 | + $step_class = $this->makeCamelCase($this->stepName); | |
| 138 | + return new $step_class(); | |
| 139 | + } | |
| 140 | + | |
| 141 | + /** | |
| 142 | + * Converts string to camel case | |
| 143 | + * | |
| 144 | + * @author KnowledgeTree Team | |
| 145 | + * @param string | |
| 146 | + * @access public | |
| 147 | + * @return string | |
| 148 | + */ | |
| 149 | + public function makeCamelCase($str) { | |
| 150 | + $upper=ucwords($str); | |
| 151 | + $str=str_replace('_', '', $upper); | |
| 152 | + | |
| 153 | + return $str; | |
| 154 | + } | |
| 155 | + | |
| 156 | + /** | |
| 157 | + * Converts string to human readable heading | |
| 158 | + * | |
| 159 | + * @author KnowledgeTree Team | |
| 160 | + * @param string | |
| 161 | + * @access public | |
| 162 | + * @return string | |
| 163 | + */ | |
| 164 | + public function makeHeading($str) { | |
| 165 | + $str = str_replace('_', ' ', $str); | |
| 166 | + $str = ucwords($str); | |
| 167 | + | |
| 168 | + return $str; | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** | |
| 172 | + * Sets steps class names in string format | |
| 173 | + * | |
| 174 | + * @author KnowledgeTree Team | |
| 175 | + * @param array | |
| 176 | + * @access public | |
| 177 | + * @return void | |
| 178 | + */ | |
| 179 | + public function setSteps($stepClassNames) { | |
| 180 | + $this->stepClassNames = $stepClassNames; | |
| 181 | + } | |
| 182 | + | |
| 183 | + /** | |
| 184 | + * Sets steps in human readable string format | |
| 185 | + * | |
| 186 | + * @author KnowledgeTree Team | |
| 187 | + * @param array | |
| 188 | + * @access public | |
| 189 | + * @return void | |
| 190 | + */ | |
| 191 | + public function setStepNames($step_names) { | |
| 192 | + $this->step_names = $step_names; | |
| 193 | + } | |
| 194 | + | |
| 195 | + /** | |
| 196 | + * Returns a message to display at the top of template | |
| 197 | + * | |
| 198 | + * @author KnowledgeTree Team | |
| 199 | + * @param none | |
| 200 | + * @access public | |
| 201 | + * @return string | |
| 202 | + */ | |
| 203 | + public function getTop() { | |
| 204 | + return '<span class="top">'.$this->getCurrentStepName().'</span>'; | |
| 205 | + } | |
| 206 | + | |
| 207 | + /** | |
| 208 | + * Returns current step name | |
| 209 | + * | |
| 210 | + * @author KnowledgeTree Team | |
| 211 | + * @param none | |
| 212 | + * @access public | |
| 213 | + * @return string | |
| 214 | + */ | |
| 215 | + function getCurrentStepName() { | |
| 216 | + return$this->step_names[$this->stepName]; | |
| 217 | + } | |
| 218 | + | |
| 219 | + /** | |
| 220 | + * Returns left menu | |
| 221 | + * | |
| 222 | + * @author KnowledgeTree Team | |
| 223 | + * @param none | |
| 224 | + * @access public | |
| 225 | + * @return string | |
| 226 | + */ | |
| 227 | + public function getLeftMenu() | |
| 228 | + { | |
| 229 | + if($this->stepName == 'welcome'){ | |
| 230 | + return '<img src="resources/graphics/tree.jpg" align="middle" style="padding-top: 20px;"/>'; | |
| 231 | + } | |
| 232 | + | |
| 233 | + $menu = '<div class="menu">'; | |
| 234 | + $active = false; | |
| 235 | + | |
| 236 | + foreach ($this->stepClassNames as $k=>$step){ | |
| 237 | + if($this->step_names[$step] != '') { | |
| 238 | + $item = $this->step_names[$step]; | |
| 239 | + } else { | |
| 240 | + $item = $this->makeHeading($step); | |
| 241 | + } | |
| 242 | + if($step == $this->stepName) { | |
| 243 | + $class = 'active'; | |
| 244 | + $active = true; | |
| 245 | + } else { | |
| 246 | + if($active){ | |
| 247 | + $class = 'inactive'; | |
| 248 | + }else{ | |
| 249 | + $class = 'indicator'; | |
| 250 | + $item = "<a href=\"index.php?step_name={$step}\">{$item}</a>"; | |
| 251 | + } | |
| 252 | + } | |
| 253 | + | |
| 254 | + $menu .= "<span class='{$class}'>$item</span><br />"; | |
| 255 | + } | |
| 256 | + $menu .= '</div>'; | |
| 257 | + return $menu; | |
| 258 | + } | |
| 259 | + | |
| 260 | + /** | |
| 261 | + * Returns confirmation page flag | |
| 262 | + * | |
| 263 | + * @author KnowledgeTree Team | |
| 264 | + * @param none | |
| 265 | + * @access public | |
| 266 | + * @return boolean | |
| 267 | + */ | |
| 268 | + function displayConfirm() { | |
| 269 | + // TODO:No other way I can think of doing this | |
| 270 | + return $this->displayConfirm; | |
| 271 | + } | |
| 272 | + | |
| 273 | + /** | |
| 274 | + * Sets confirmation page flag | |
| 275 | + * | |
| 276 | + * @author KnowledgeTree Team | |
| 277 | + * @param boolean | |
| 278 | + * @access public | |
| 279 | + * @return void | |
| 280 | + */ | |
| 281 | + function setDisplayConfirm($displayConfirm) { | |
| 282 | + $this->displayConfirm = $displayConfirm; | |
| 283 | + } | |
| 284 | + | |
| 285 | + /** | |
| 286 | + * Sets session object | |
| 287 | + * | |
| 288 | + * @author KnowledgeTree Team | |
| 289 | + * @param object Session | |
| 290 | + * @access public | |
| 291 | + * @return void | |
| 292 | + */ | |
| 293 | + function loadSession($ses) { | |
| 294 | + $this->session = $ses; | |
| 295 | + } | |
| 296 | + | |
| 297 | + /** | |
| 298 | + * Returns session object | |
| 299 | + * | |
| 300 | + * @author KnowledgeTree Team | |
| 301 | + * @param object Session | |
| 302 | + * @access public | |
| 303 | + * @return void | |
| 304 | + */ | |
| 305 | + function getSession() { | |
| 306 | + return $this->session; | |
| 307 | + } | |
| 308 | + | |
| 309 | + /** | |
| 310 | + * Returns step tenplate content | |
| 311 | + * | |
| 312 | + * @author KnowledgeTree Team | |
| 313 | + * @param none | |
| 314 | + * @access public | |
| 315 | + * @return string | |
| 316 | + */ | |
| 317 | + function paintAction() { | |
| 318 | + $left = $this->getLeftMenu(); | |
| 319 | + $top = $this->getTop(); | |
| 320 | + $step_errors = $this->action->getErrors(); // Get errors | |
| 321 | + if($this->displayConfirm()) // Check if theres a confirm step | |
| 322 | + $template = "templates/{$this->stepName}_confirm.tpl"; | |
| 323 | + else | |
| 324 | + $template = "templates/{$this->stepName}.tpl"; | |
| 325 | + $step_tpl = new Template($template); | |
| 326 | + $step_tpl->set("errors", $step_errors); // Set template errors | |
| 327 | + $step_vars = $this->action->getStepVars(); // Get template variables | |
| 328 | + foreach ($step_vars as $key => $value) { // Set template variables | |
| 329 | + $step_tpl->set($key, $value); // Load values to session | |
| 330 | + if($this->action->storeInSession()) { // Check if class values need to be stored in session | |
| 331 | + $this->loadValueToSession($this->stepName, $key, $value); | |
| 332 | + } | |
| 333 | + } | |
| 334 | + | |
| 335 | + $content = $step_tpl->fetch(); | |
| 336 | + $tpl = new Template("templates/wizard.tpl"); | |
| 337 | + $tpl->set('content', $content); | |
| 338 | + $tpl->set('left', $left); | |
| 339 | + echo $tpl->fetch(); | |
| 340 | + } | |
| 341 | + | |
| 342 | + /** | |
| 343 | + * Load class to session | |
| 344 | + * | |
| 345 | + * @author KnowledgeTree Team | |
| 346 | + * @param string $class name of class | |
| 347 | + * @param array $v array of values | |
| 348 | + * @param boolean $overwrite whether or not to overwrite existing | |
| 349 | + * @access private | |
| 350 | + * @return void | |
| 351 | + */ | |
| 352 | + private function loadStepToSession($class, $v = array(), $overwrite = false) { | |
| 353 | + if($this->session != null) { | |
| 354 | + if($overwrite) { | |
| 355 | + $this->session->set($class , $v); | |
| 356 | + } else { | |
| 357 | + if(!$this->session->is_set($class)) | |
| 358 | + $this->session->set($class , $v); | |
| 359 | + } | |
| 360 | + } else { | |
| 361 | + die("Where is the session?"); | |
| 362 | + } | |
| 363 | + } | |
| 364 | + | |
| 365 | + /** | |
| 366 | + * Load class value to session | |
| 367 | + * | |
| 368 | + * @author KnowledgeTree Team | |
| 369 | + * @param string $class name of class | |
| 370 | + * @param string $k key value | |
| 371 | + * @param string $v value to store | |
| 372 | + * @param boolean $overwrite whether or not to overwrite existing | |
| 373 | + * @access private | |
| 374 | + * @return void | |
| 375 | + */ | |
| 376 | + private function loadValueToSession($class, $k, $v, $overwrite = false) { | |
| 377 | + if($this->session != null) { | |
| 378 | + $this->session->setClass($class, $k, $v); | |
| 379 | + } else { | |
| 380 | + die("Where is the session?"); | |
| 381 | + } | |
| 382 | + } | |
| 383 | + | |
| 384 | + /** | |
| 385 | + * Load all class errors value to session | |
| 386 | + * | |
| 387 | + * @author KnowledgeTree Team | |
| 388 | + * @param none | |
| 389 | + * @access private | |
| 390 | + * @return void | |
| 391 | + */ | |
| 392 | + private function handleErrors() {// TODO: handle multiple errors | |
| 393 | + $step_errors = $this->action->getErrors(); // Get errors | |
| 394 | + foreach ($step_errors as $key => $value) { | |
| 395 | + $this->loadErrorToSession($this->stepName, $key, $value); // Load values session | |
| 396 | + } | |
| 397 | + } | |
| 398 | + | |
| 399 | + /** | |
| 400 | + * Remove all class errors value to session | |
| 401 | + * | |
| 402 | + * @author KnowledgeTree Team | |
| 403 | + * @param none | |
| 404 | + * @access private | |
| 405 | + * @return void | |
| 406 | + */ | |
| 407 | + private function clearErrors($class) { | |
| 408 | + $this->session->clearErrors($class); | |
| 409 | + } | |
| 410 | + | |
| 411 | + /** | |
| 412 | + * Load class error value to session | |
| 413 | + * | |
| 414 | + * @author KnowledgeTree Team | |
| 415 | + * @param string $class name of class | |
| 416 | + * @param string $k key value | |
| 417 | + * @param string $v value to store | |
| 418 | + * @param boolean $overwrite whether or not to overwrite existing | |
| 419 | + * @access private | |
| 420 | + * @return void | |
| 421 | + */ | |
| 422 | + private function loadErrorToSession($class, $k, $v, $overwrite = false) { | |
| 423 | + $k = "errors"; | |
| 424 | + if($this->session != null) { | |
| 425 | + $this->session->setClassError($class, $k, $v); | |
| 426 | + } else { | |
| 427 | + die("Where is the session?"); | |
| 428 | + } | |
| 429 | + } | |
| 430 | + | |
| 431 | +} | |
| 432 | + | |
| 433 | +?> | |
| 0 | 434 | \ No newline at end of file | ... | ... |
setup/wizard/steps/complete.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Complete Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class complete extends Step | |
| 45 | +{ | |
| 46 | + | |
| 47 | + function configure() { | |
| 48 | + $this->temp_variables = array("step_name"=>"complete"); | |
| 49 | + } | |
| 50 | + | |
| 51 | +} | |
| 52 | +?> | |
| 0 | 53 | \ No newline at end of file | ... | ... |
setup/wizard/steps/configuration.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Configuration Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class configuration extends Step | |
| 45 | +{ | |
| 46 | + private $host; | |
| 47 | + private $port; | |
| 48 | + private $root_url; | |
| 49 | + private $file_system_root; | |
| 50 | + private $ssl_enabled; | |
| 51 | + private $done; | |
| 52 | + public $temp_variables = array("step_name"=>"configuration"); | |
| 53 | + /** | |
| 54 | + * Flag to store class information in session | |
| 55 | + * | |
| 56 | + * @author KnowledgeTree Team | |
| 57 | + * @access public | |
| 58 | + * @var array | |
| 59 | + */ | |
| 60 | + protected $storeInSession = true; | |
| 61 | + | |
| 62 | + public function __construct() | |
| 63 | + { | |
| 64 | + $this->done = true; | |
| 65 | + } | |
| 66 | + | |
| 67 | + private function setDetails() { | |
| 68 | + $conf = $this->getDataFromSession("configuration"); | |
| 69 | + if($conf) { | |
| 70 | + $this->temp_variables['server'] = $conf['server']; | |
| 71 | + $this->temp_variables['paths'] = $conf['paths']; | |
| 72 | + } | |
| 73 | + } | |
| 74 | + | |
| 75 | + public function doStep() { | |
| 76 | + if($this->next()) { | |
| 77 | + if($this->doRun()){ | |
| 78 | + return 'confirm'; | |
| 79 | + } | |
| 80 | + return 'error'; | |
| 81 | + /* | |
| 82 | + if($this->doRun()) | |
| 83 | + return 'next'; | |
| 84 | + else | |
| 85 | + return 'error'; | |
| 86 | + */ | |
| 87 | + } else if($this->previous()) { | |
| 88 | + $this->setDetails(); | |
| 89 | + return 'previous'; | |
| 90 | + } else if($this->confirm()) { | |
| 91 | + return 'next'; | |
| 92 | + } else if($this->edit()) { | |
| 93 | + $this->setDetails(); | |
| 94 | + return 'landing'; | |
| 95 | + } | |
| 96 | + | |
| 97 | + $this->doRun(); | |
| 98 | + return 'landing'; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public function doRun() | |
| 102 | + { | |
| 103 | + $server = $this->getServerInfo(); | |
| 104 | + $this->temp_variables['server'] = $server; | |
| 105 | + | |
| 106 | + $paths = $this->getPathInfo($server['file_system_root']); | |
| 107 | + $this->temp_variables['paths'] = $paths; | |
| 108 | + | |
| 109 | + // Running user | |
| 110 | + // Logging | |
| 111 | + | |
| 112 | + return $this->done; | |
| 113 | + } | |
| 114 | + | |
| 115 | + private function getServerInfo() | |
| 116 | + { | |
| 117 | + $script = $_SERVER['SCRIPT_NAME']; | |
| 118 | + $file_system_root = $_SERVER['DOCUMENT_ROOT']; | |
| 119 | + $host = $_SERVER['SERVER_NAME']; | |
| 120 | + $port = $_SERVER['SERVER_PORT']; | |
| 121 | + $ssl_enabled = isset($_SERVER['HTTPS']) ? (strtolower($_SERVER['HTTPS']) === 'on' ? 'yes' : 'no') : true; | |
| 122 | + | |
| 123 | + $pos = strpos($script, '/wizard/'); | |
| 124 | + $root_url = substr($script, 0, $pos); | |
| 125 | + | |
| 126 | + $server = array(); | |
| 127 | + $server['root_url'] = (isset($_POST['root_url'])) ? $_POST['root_url'] : $root_url; | |
| 128 | + $server['file_system_root'] = (isset($_POST['file_system_root'])) ? $_POST['file_system_root'] : $file_system_root.$root_url; | |
| 129 | + $server['host'] = (isset($_POST['host'])) ? $_POST['host'] : $host; | |
| 130 | + $server['port'] = (isset($_POST['port'])) ? $_POST['port'] : $port; | |
| 131 | + $server['ssl_enabled'] = (isset($_POST['ssl_enabled'])) ? $_POST['ssl_enabled'] : $ssl_enabled; | |
| 132 | + | |
| 133 | + if(empty($server['host'])) | |
| 134 | + $this->error[] = 'Please enter the server\'s host name'; | |
| 135 | + | |
| 136 | + if(empty($server['port'])) | |
| 137 | + $this->error[] = 'Please enter the server\'s port'; | |
| 138 | + | |
| 139 | + if(empty($server['file_system_root'])) | |
| 140 | + $this->error[] = 'Please enter the file system root'; | |
| 141 | + | |
| 142 | + return $server; | |
| 143 | + } | |
| 144 | + | |
| 145 | + private function getPathInfo($fileSystemRoot) | |
| 146 | + { | |
| 147 | + $dirs = $this->getDirectories(); | |
| 148 | + $varDirectory = $fileSystemRoot . DIRECTORY_SEPARATOR . 'var'; | |
| 149 | + | |
| 150 | + foreach ($dirs as $key => $dir){ | |
| 151 | + $path = (isset($_POST[$dir['setting']])) ? $_POST[$dir['setting']] : $dir['path']; | |
| 152 | + | |
| 153 | + while(preg_match('/\$\{([^}]+)\}/', $path, $matches)){ | |
| 154 | + $path = str_replace($matches[0], $$matches[1], $path); | |
| 155 | + } | |
| 156 | + | |
| 157 | + $dirs[$key]['path'] = $path; | |
| 158 | + $class = $this->checkPermission($path, $dir['create']); | |
| 159 | + $dirs[$key] = array_merge($dirs[$key], $class); | |
| 160 | + } | |
| 161 | + | |
| 162 | + return $dirs; | |
| 163 | + } | |
| 164 | + | |
| 165 | + private function checkPermission($dir, $create=false) | |
| 166 | + { | |
| 167 | + $exist = 'Directory does not exist'; | |
| 168 | + $write = 'Directory is not writable'; | |
| 169 | + $ret = array('class' => 'cross'); | |
| 170 | + | |
| 171 | + if(!file_exists($dir)){ | |
| 172 | + if($create === false){ | |
| 173 | + $this->done = false; | |
| 174 | + $ret['msg'] = $exist; | |
| 175 | + return $ret; | |
| 176 | + } | |
| 177 | + $par_dir = dirname($dir); | |
| 178 | + if(!file_exists($par_dir)){ | |
| 179 | + $this->done = false; | |
| 180 | + $ret['msg'] = $exist; | |
| 181 | + return $ret; | |
| 182 | + } | |
| 183 | + if(!is_writable($par_dir)){ | |
| 184 | + $this->done = false; | |
| 185 | + $ret['msg'] = $exist; | |
| 186 | + return $ret; | |
| 187 | + } | |
| 188 | + @mkdir($dir, '0755'); | |
| 189 | + } | |
| 190 | + | |
| 191 | + if(is_writable($dir)){ | |
| 192 | + $ret['class'] = 'tick'; | |
| 193 | + return $ret; | |
| 194 | + } | |
| 195 | + | |
| 196 | + $this->done = false; | |
| 197 | + $ret['msg'] = $write; | |
| 198 | + return $ret; | |
| 199 | + } | |
| 200 | + | |
| 201 | + private function getDirectories() | |
| 202 | + { | |
| 203 | + return array( | |
| 204 | + array('name' => 'Var Directory', 'setting' => 'varDirectory', 'path' => '${fileSystemRoot}/var', 'create' => false), | |
| 205 | + array('name' => 'Document Directory', 'setting' => 'documentRoot', 'path' => '${varDirectory}/Documents', 'create' => true), | |
| 206 | + array('name' => 'Log Directory', 'setting' => 'logDirectory', 'path' => '${varDirectory}/log', 'create' => true), | |
| 207 | + array('name' => 'Temporary Directory', 'setting' => 'tmpDirectory', 'path' => '${varDirectory}/tmp', 'create' => true), | |
| 208 | + array('name' => 'Uploads Directory', 'setting' => 'uploadDirectory', 'path' => '${varDirectory}/uploads', 'create' => true), | |
| 209 | + ); | |
| 210 | + } | |
| 211 | +} | |
| 212 | +?> | |
| 0 | 213 | \ No newline at end of file | ... | ... |
setup/wizard/steps/database.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Database Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class database extends Step | |
| 45 | +{ | |
| 46 | + /** | |
| 47 | + * Database type | |
| 48 | + * | |
| 49 | + * @author KnowledgeTree Team | |
| 50 | + * @access private | |
| 51 | + * @var array | |
| 52 | + */ | |
| 53 | + private $dtype = ''; | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Database types | |
| 57 | + * | |
| 58 | + * @author KnowledgeTree Team | |
| 59 | + * @access private | |
| 60 | + * @var array | |
| 61 | + */ | |
| 62 | + private $dtypes = array(); | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * Database host | |
| 66 | + * | |
| 67 | + * @author KnowledgeTree Team | |
| 68 | + * @access private | |
| 69 | + * @var string | |
| 70 | + */ | |
| 71 | + private $dhost = ''; | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Database port | |
| 75 | + * | |
| 76 | + * @author KnowledgeTree Team | |
| 77 | + * @access private | |
| 78 | + * @var string | |
| 79 | + */ | |
| 80 | + private $dport = ''; | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Database name | |
| 84 | + * | |
| 85 | + * @author KnowledgeTree Team | |
| 86 | + * @access private | |
| 87 | + * @var string | |
| 88 | + */ | |
| 89 | + private $dname = ''; | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * Database root username | |
| 93 | + * | |
| 94 | + * @author KnowledgeTree Team | |
| 95 | + * @access private | |
| 96 | + * @var string | |
| 97 | + */ | |
| 98 | + private $duname = ''; | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * Database root password | |
| 102 | + * | |
| 103 | + * @author KnowledgeTree Team | |
| 104 | + * @access private | |
| 105 | + * @var string | |
| 106 | + */ | |
| 107 | + private $dpassword = ''; | |
| 108 | + | |
| 109 | + /** | |
| 110 | + * Database dms username | |
| 111 | + * | |
| 112 | + * @author KnowledgeTree Team | |
| 113 | + * @access private | |
| 114 | + * @var string | |
| 115 | + */ | |
| 116 | + private $dmsname = ''; | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Database dms password | |
| 120 | + * | |
| 121 | + * @author KnowledgeTree Team | |
| 122 | + * @access private | |
| 123 | + * @var string | |
| 124 | + */ | |
| 125 | + private $dmspassword = ''; | |
| 126 | + | |
| 127 | + /** | |
| 128 | + * Database table prefix | |
| 129 | + * | |
| 130 | + * @author KnowledgeTree Team | |
| 131 | + * @access private | |
| 132 | + * @var string | |
| 133 | + */ | |
| 134 | + private $tprefix = ''; | |
| 135 | + | |
| 136 | + /** | |
| 137 | + * Flag to drop database | |
| 138 | + * | |
| 139 | + * @author KnowledgeTree Team | |
| 140 | + * @access private | |
| 141 | + * @var boolean | |
| 142 | + */ | |
| 143 | + private $ddrop = false; | |
| 144 | + | |
| 145 | + /** | |
| 146 | + * List of variables needed | |
| 147 | + * | |
| 148 | + * @author KnowledgeTree Team | |
| 149 | + * @access public | |
| 150 | + * @var array | |
| 151 | + */ | |
| 152 | + public $temp_variables = array("step_name"=>"database"); | |
| 153 | + | |
| 154 | + /** | |
| 155 | + * List of errors encountered | |
| 156 | + * | |
| 157 | + * @author KnowledgeTree Team | |
| 158 | + * @access public | |
| 159 | + * @var array | |
| 160 | + */ | |
| 161 | + public $error = array(); | |
| 162 | + | |
| 163 | + /** | |
| 164 | + * Flag to store class information in session | |
| 165 | + * | |
| 166 | + * @author KnowledgeTree Team | |
| 167 | + * @access public | |
| 168 | + * @var array | |
| 169 | + */ | |
| 170 | + public $storeInSession = true; | |
| 171 | + | |
| 172 | + /** | |
| 173 | + * Flag if step needs to be installed | |
| 174 | + * | |
| 175 | + * @author KnowledgeTree Team | |
| 176 | + * @access public | |
| 177 | + * @var array | |
| 178 | + */ | |
| 179 | + protected $runInstall = true; | |
| 180 | + | |
| 181 | + /** | |
| 182 | + * Constructs database object | |
| 183 | + * | |
| 184 | + * @author KnowledgeTree Team | |
| 185 | + * @access public | |
| 186 | + * @param none | |
| 187 | + */ | |
| 188 | + public function __construct() { | |
| 189 | + } | |
| 190 | + | |
| 191 | + /** | |
| 192 | + * Main control of database setup | |
| 193 | + * | |
| 194 | + * @author KnowledgeTree Team | |
| 195 | + * @param none | |
| 196 | + * @access public | |
| 197 | + * @return string | |
| 198 | + */ | |
| 199 | + public function doStep() { | |
| 200 | + $this->setErrorsFromSession(); | |
| 201 | + if($this->inStep("database")) { | |
| 202 | + $res = $this->doProcess(); | |
| 203 | + if($res) { // If theres a response, return it | |
| 204 | + return $res; | |
| 205 | + } | |
| 206 | + } | |
| 207 | + if($this->setDataFromSession("database")) { // Attempt to set values from session | |
| 208 | + | |
| 209 | + $this->setDetails(); // Set any posted variables | |
| 210 | + } else { | |
| 211 | + | |
| 212 | + $this->loadDefaults($this->readXml()); // Load default variables from file | |
| 213 | + } | |
| 214 | + | |
| 215 | + return 'landing'; | |
| 216 | + } | |
| 217 | + | |
| 218 | + /** | |
| 219 | + * Controls setup helper | |
| 220 | + * | |
| 221 | + * @author KnowledgeTree Team | |
| 222 | + * @param none | |
| 223 | + * @access public | |
| 224 | + * @return string | |
| 225 | + */ | |
| 226 | + public function doProcess() { | |
| 227 | + if($this->next()) { | |
| 228 | + $this->setDBConfig(); // Set any posted variables | |
| 229 | + $this->setDetails(); | |
| 230 | + return 'confirm'; | |
| 231 | + } else if($this->previous()) { | |
| 232 | + return 'previous'; | |
| 233 | + } else if($this->confirm()) { | |
| 234 | + $this->setDataFromSession("database"); // Set Session Information | |
| 235 | + $this->setDBConfig(); // Set any posted variables | |
| 236 | + if($this->doTest()) { // Test | |
| 237 | + return 'next'; | |
| 238 | + } else { | |
| 239 | + return 'error'; | |
| 240 | + } | |
| 241 | + } else if($this->edit()) { | |
| 242 | + $this->setDataFromSession("database"); // Set Session Information, since its an edit | |
| 243 | + return 'landing'; | |
| 244 | + } | |
| 245 | + } | |
| 246 | + | |
| 247 | + /** | |
| 248 | + * Test database connectivity | |
| 249 | + * | |
| 250 | + * @author KnowledgeTree Team | |
| 251 | + * @param none | |
| 252 | + * @access public | |
| 253 | + * @return boolean | |
| 254 | + */ | |
| 255 | + public function doTest() { | |
| 256 | + $con = @mysql_connect($this->dhost, $this->duname, $this->dpassword); | |
| 257 | + if (!$con) { | |
| 258 | + $this->error = array("1"=>"Could not connect: " . mysql_error()); | |
| 259 | + return false; | |
| 260 | + } else { | |
| 261 | + return true; | |
| 262 | + } | |
| 263 | + } | |
| 264 | + | |
| 265 | + /** | |
| 266 | + * Check if theres a database type | |
| 267 | + * | |
| 268 | + * @author KnowledgeTree Team | |
| 269 | + * @params none | |
| 270 | + * @access private | |
| 271 | + * @return boolean database type or false | |
| 272 | + */ | |
| 273 | + private function getType() { | |
| 274 | + if(isset($_POST['dtype'])) { | |
| 275 | + return $_POST['dtype']; | |
| 276 | + } | |
| 277 | + | |
| 278 | + return false; | |
| 279 | + } | |
| 280 | + | |
| 281 | + /** | |
| 282 | + * Set Errors if any were encountered | |
| 283 | + * | |
| 284 | + * @author KnowledgeTree Team | |
| 285 | + * @params none | |
| 286 | + * @access private | |
| 287 | + * @return boolean | |
| 288 | + */ | |
| 289 | + private function setErrorsFromSession() { | |
| 290 | + if(isset($_SESSION['database']['errors'])) { | |
| 291 | + $this->error[] = $_SESSION['database']['errors']; | |
| 292 | + | |
| 293 | + return true; | |
| 294 | + } | |
| 295 | + | |
| 296 | + return false; | |
| 297 | + } | |
| 298 | + | |
| 299 | + /** | |
| 300 | + * Set POST information | |
| 301 | + * | |
| 302 | + * @author KnowledgeTree Team | |
| 303 | + * @params none | |
| 304 | + * @access public | |
| 305 | + * @return void | |
| 306 | + */ | |
| 307 | + public function setDBConfig() { | |
| 308 | + $this->dtype = $this->getPostSafe("dtype"); | |
| 309 | + $this->dtypes = array("0"=>"mysql");//$this->getPostSafe("dtypes"); | |
| 310 | + $this->dhost = $this->getPostSafe("dhost"); | |
| 311 | + $this->dport = $this->getPostSafe("dport"); | |
| 312 | + $this->dname = $this->getPostSafe("dname"); | |
| 313 | + $this->duname = $this->getPostSafe("duname"); | |
| 314 | + $this->dpassword = $this->getPostSafe("dpassword"); | |
| 315 | + $this->dmsname = $this->getPostSafe("dmsname"); | |
| 316 | + $this->dmspassword = $this->getPostSafe("dmspassword"); | |
| 317 | + $this->tprefix = $this->getPostSafe("tprefix"); | |
| 318 | + $this->ddrop = $this->getPostSafe("ddrop"); | |
| 319 | + } | |
| 320 | + | |
| 321 | + /** | |
| 322 | + * Load default options on template from xml file | |
| 323 | + * | |
| 324 | + * @author KnowledgeTree Team | |
| 325 | + * @params simple xml object $simplexml | |
| 326 | + * @access public | |
| 327 | + * @return void | |
| 328 | + */ | |
| 329 | + public function loadDefaults($simplexml) { | |
| 330 | + if($simplexml) { | |
| 331 | + $this->temp_variables['dtype'] = ""; | |
| 332 | + $this->temp_variables['dtypes'] = array("0"=>"mysql");//$this->getTypes($simplexml->dtypes); | |
| 333 | + $this->temp_variables['dname'] = (string) $simplexml->dname; | |
| 334 | + $this->temp_variables['duname'] = (string) $simplexml->duname; | |
| 335 | + $this->temp_variables['dhost'] = (string) $simplexml->dhost; | |
| 336 | + $this->temp_variables['dport'] = (string) $simplexml->dport; | |
| 337 | + $this->temp_variables['dpassword'] = ''; | |
| 338 | + $this->temp_variables['dmsname'] = ''; | |
| 339 | + $this->temp_variables['dmspassword'] = ''; | |
| 340 | + $this->temp_variables['tprefix'] = ''; | |
| 341 | + $this->temp_variables['ddrop'] = 0; | |
| 342 | + } | |
| 343 | + } | |
| 344 | + | |
| 345 | + /** | |
| 346 | + * Store options | |
| 347 | + * | |
| 348 | + * @author KnowledgeTree Team | |
| 349 | + * @params SimpleXmlObject $simplexml | |
| 350 | + * @access private | |
| 351 | + * @return void | |
| 352 | + */ | |
| 353 | + private function setDetails() { | |
| 354 | + $this->temp_variables['dtype'] = $this->getPostSafe('dtype'); | |
| 355 | + $this->temp_variables['dtypes'] = array("0"=>"mysql");//$this->getPostSafe('dtypes'); | |
| 356 | + $this->temp_variables['dhost'] = $this->getPostSafe('dhost'); | |
| 357 | + $this->temp_variables['dport'] = $this->getPostSafe('dport'); | |
| 358 | + $this->temp_variables['dname'] = $this->getPostSafe('dname'); | |
| 359 | + $this->temp_variables['duname'] = $this->getPostSafe('duname'); | |
| 360 | + $this->temp_variables['dpassword'] = $this->getPostSafe('dpassword'); | |
| 361 | + $this->temp_variables['dmsname'] = $this->getPostSafe('dmsname'); | |
| 362 | + $this->temp_variables['dmspassword'] = $this->getPostSafe('dmspassword'); | |
| 363 | + $this->temp_variables['tprefix'] = $this->getPostSafe('tprefix'); | |
| 364 | + $this->temp_variables['ddrop'] = $this->getPostSafe('ddrop'); | |
| 365 | + } | |
| 366 | + | |
| 367 | + /** | |
| 368 | + * Extract database types | |
| 369 | + * | |
| 370 | + * @author KnowledgeTree Team | |
| 371 | + * @access private | |
| 372 | + * @params simple xml object $simplexml | |
| 373 | + * @return array | |
| 374 | + */ | |
| 375 | + private function getTypes($xmlTypes) { | |
| 376 | + $t = array(); | |
| 377 | + foreach ($xmlTypes->dtype as $key=>$val) { | |
| 378 | + $t[] = (string) $val; | |
| 379 | + } | |
| 380 | + return $t; | |
| 381 | + } | |
| 382 | + | |
| 383 | + /** | |
| 384 | + * Read xml config file | |
| 385 | + * | |
| 386 | + * @author KnowledgeTree Team | |
| 387 | + * @access private | |
| 388 | + * @params none | |
| 389 | + * @return object SimpleXmlObject | |
| 390 | + */ | |
| 391 | + private function readXml() { | |
| 392 | + $simplexml = simplexml_load_file(CONF_DIR."databases.xml"); | |
| 393 | + | |
| 394 | + return $simplexml; | |
| 395 | + } | |
| 396 | + | |
| 397 | + /** | |
| 398 | + * Stores varibles used by template | |
| 399 | + * | |
| 400 | + * @author KnowledgeTree Team | |
| 401 | + * @params none | |
| 402 | + * @access public | |
| 403 | + * @return array | |
| 404 | + */ | |
| 405 | + public function getStepVars() { | |
| 406 | + return $this->temp_variables; | |
| 407 | + } | |
| 408 | + | |
| 409 | + /** | |
| 410 | + * Runs step install if required | |
| 411 | + * | |
| 412 | + * @author KnowledgeTree Team | |
| 413 | + * @param none | |
| 414 | + * @access public | |
| 415 | + * @return void | |
| 416 | + */ | |
| 417 | + public function installStep() { | |
| 418 | + return $this->installDatabase(); | |
| 419 | + } | |
| 420 | + | |
| 421 | + /** | |
| 422 | + * Helper | |
| 423 | + * | |
| 424 | + * @author KnowledgeTree Team | |
| 425 | + * @params none | |
| 426 | + * @access private | |
| 427 | + * @return void | |
| 428 | + */ | |
| 429 | + private function installDatabase() { | |
| 430 | + $this->{$this->dtype}(); | |
| 431 | + } | |
| 432 | + | |
| 433 | + /** | |
| 434 | + * Helper | |
| 435 | + * | |
| 436 | + * @author KnowledgeTree Team | |
| 437 | + * @params none | |
| 438 | + * @access private | |
| 439 | + * @return void | |
| 440 | + */ | |
| 441 | + private function mysql() { | |
| 442 | + $con = $this->connectMysql(); | |
| 443 | + if($con) { | |
| 444 | + $this->createDB($con); | |
| 445 | + $this->closeMysql($con); | |
| 446 | + } | |
| 447 | + } | |
| 448 | + | |
| 449 | + /** | |
| 450 | + * Connect to mysql | |
| 451 | + * | |
| 452 | + * @author KnowledgeTree Team | |
| 453 | + * @params none | |
| 454 | + * @access private | |
| 455 | + * @return object mysql connection | |
| 456 | + */ | |
| 457 | + private function connectMysql() { | |
| 458 | + $con = @mysql_connect($this->dhost, $this->duname, $this->dpassword); | |
| 459 | + if (!$con) { | |
| 460 | + $this->error = array("2"=>"Could not connect: " . mysql_error()); | |
| 461 | + | |
| 462 | + return false; | |
| 463 | + } | |
| 464 | + | |
| 465 | + return $con; | |
| 466 | + } | |
| 467 | + | |
| 468 | + /** | |
| 469 | + * Helper | |
| 470 | + * | |
| 471 | + * @author KnowledgeTree Team | |
| 472 | + * @params object mysql connection object $con | |
| 473 | + * @access private | |
| 474 | + * @return object mysql connection | |
| 475 | + */ | |
| 476 | + private function createDB($con) { | |
| 477 | + if($this->usedb($con)) { // attempt to use the db | |
| 478 | + if($this->dropdb($con)) { // attempt to drop the db | |
| 479 | + if($this->create($con)) { // attempt to create the db | |
| 480 | + | |
| 481 | + } | |
| 482 | + } | |
| 483 | + } else { | |
| 484 | + if($this->create($con)) { // attempt to create the db | |
| 485 | + | |
| 486 | + } | |
| 487 | + } | |
| 488 | + | |
| 489 | + $this->createDmsUser($con); | |
| 490 | + $this->createSchema($con); | |
| 491 | + $this->populateSchema($con); | |
| 492 | + | |
| 493 | + return $con; | |
| 494 | + } | |
| 495 | + | |
| 496 | + /** | |
| 497 | + * Create database | |
| 498 | + * | |
| 499 | + * @author KnowledgeTree Team | |
| 500 | + * @params object mysql connection object $con | |
| 501 | + * @access private | |
| 502 | + * @return boolean | |
| 503 | + */ | |
| 504 | + private function create($con) { | |
| 505 | + $sql = "CREATE DATABASE {$this->dname}"; | |
| 506 | + if (@mysql_query($sql, $con)) { | |
| 507 | + | |
| 508 | + return true; | |
| 509 | + } | |
| 510 | + | |
| 511 | + return false; | |
| 512 | + } | |
| 513 | + | |
| 514 | + /** | |
| 515 | + * Attempts to use a db | |
| 516 | + * | |
| 517 | + * @author KnowledgeTree Team | |
| 518 | + * @params mysql connection object $con | |
| 519 | + * @access private | |
| 520 | + * @return boolean | |
| 521 | + */ | |
| 522 | + private function usedb($con) { | |
| 523 | + $sql = "USE {$this->dname};"; | |
| 524 | + if (@mysql_query($sql, $con)) { | |
| 525 | + return true; | |
| 526 | + } else { | |
| 527 | + $this->error = array("4"=>"Error using database: ".mysql_error().""); | |
| 528 | + return false; | |
| 529 | + } | |
| 530 | + } | |
| 531 | + | |
| 532 | + /** | |
| 533 | + * Attempts to drop table | |
| 534 | + * | |
| 535 | + * @author KnowledgeTree Team | |
| 536 | + * @access private | |
| 537 | + * @params mysql connection object $con | |
| 538 | + * @return boolean | |
| 539 | + */ | |
| 540 | + private function dropdb($con) { | |
| 541 | + if($this->ddrop) { | |
| 542 | + $sql = "DROP DATABASE {$this->dname};"; | |
| 543 | + if (!@mysql_query($sql, $con)) { | |
| 544 | + $this->error = array("5"=>"Cannot drop database: ".mysql_error().""); | |
| 545 | + | |
| 546 | + return false; | |
| 547 | + } | |
| 548 | + } else { | |
| 549 | + $this->error = array("6"=>"Cannot drop database: ".mysql_error().""); | |
| 550 | + | |
| 551 | + return false; | |
| 552 | + } | |
| 553 | + } | |
| 554 | + | |
| 555 | + /** | |
| 556 | + * Attempts to use a db | |
| 557 | + * | |
| 558 | + * @author KnowledgeTree Team | |
| 559 | + * @params mysql connection object $con | |
| 560 | + * @access private | |
| 561 | + * @return boolean | |
| 562 | + */ | |
| 563 | + private function usedb2($con) { | |
| 564 | + $sql = "USE {$this->dname};"; | |
| 565 | + if (@mysql_query($sql, $con)) { | |
| 566 | + return $con; | |
| 567 | + } else { | |
| 568 | + $this->error = array("4"=>"Error using database: ".mysql_error().""); | |
| 569 | + return false; | |
| 570 | + } | |
| 571 | + } | |
| 572 | + | |
| 573 | + /** | |
| 574 | + * Create dms user | |
| 575 | + * | |
| 576 | + * @author KnowledgeTree Team | |
| 577 | + * @access private | |
| 578 | + * @params none | |
| 579 | + * @return boolean | |
| 580 | + */ | |
| 581 | + private function createDmsUser($con) { | |
| 582 | + //TODO | |
| 583 | + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/user.sql"; | |
| 584 | + exec($com, $output); | |
| 585 | +// $sql = @file_get_contents("sql/user.sql"); | |
| 586 | +// if($sql) { | |
| 587 | +// if (@mysql_query($sql, $con)) { | |
| 588 | +// return true; | |
| 589 | +// } else { | |
| 590 | +// $this->error = array("7"=>"Error populating database : ".mysql_error().""); | |
| 591 | +// return false; | |
| 592 | +// } | |
| 593 | +// } else { | |
| 594 | +// $this->error = array("8"=>"Error Reading sql File : ".mysql_error().""); | |
| 595 | +// return false; | |
| 596 | +// } | |
| 597 | + } | |
| 598 | + | |
| 599 | + /** | |
| 600 | + * Create schema | |
| 601 | + * | |
| 602 | + * @author KnowledgeTree Team | |
| 603 | + * @access private | |
| 604 | + * @params none | |
| 605 | + * @return boolean | |
| 606 | + */ | |
| 607 | + private function createSchema($con) { | |
| 608 | + // TODO : | |
| 609 | + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/structure.sql"; | |
| 610 | + exec($com, $output); | |
| 611 | +// $sql = "USE {$this->dname};"; | |
| 612 | +// $sql .= file_get_contents("sql/structure.sql"); | |
| 613 | +// echo $sql;die; | |
| 614 | +// if($sql) { | |
| 615 | +// if (mysql_query($sql, $con)) { | |
| 616 | +// | |
| 617 | +// return true; | |
| 618 | +// } else { | |
| 619 | +// | |
| 620 | +// $this->error = array("9"=>"Error creating database schema : ".mysql_error().""); | |
| 621 | +// return false; | |
| 622 | +// } | |
| 623 | +// } else { | |
| 624 | +// $this->error = array("10"=>"Error Reading sql File : ".mysql_error().""); | |
| 625 | +// return false; | |
| 626 | +// } | |
| 627 | + } | |
| 628 | + | |
| 629 | + /** | |
| 630 | + * Populate database | |
| 631 | + * | |
| 632 | + * @author KnowledgeTree Team | |
| 633 | + * @access private | |
| 634 | + * @params none | |
| 635 | + * @return boolean | |
| 636 | + */ | |
| 637 | + private function populateSchema($con) { | |
| 638 | + // TODO : | |
| 639 | + $com = "mysql -u{$this->duname} -p{$this->dpassword} {$this->dname} < sql/data.sql"; | |
| 640 | + exec($com, $output); | |
| 641 | +// $sql = @file_get_contents("sql/data.sql"); | |
| 642 | +// if($sql) { | |
| 643 | +// if (@mysql_query($sql, $con)) { | |
| 644 | +// return true; | |
| 645 | +// } else { | |
| 646 | +// $this->error = array("11"=>"Error populating database : ".mysql_error().""); | |
| 647 | +// return false; | |
| 648 | +// } | |
| 649 | +// } else { | |
| 650 | +// $this->error = array("12"=>"Error Reading sql File : ".mysql_error().""); | |
| 651 | +// return false; | |
| 652 | +// } | |
| 653 | + } | |
| 654 | + | |
| 655 | + /** | |
| 656 | + * Close connection if it exists | |
| 657 | + * | |
| 658 | + * @author KnowledgeTree Team | |
| 659 | + * @access private | |
| 660 | + * @params mysql connection object $con | |
| 661 | + * @return void | |
| 662 | + */ | |
| 663 | + private function closeMysql($con) { | |
| 664 | + try { | |
| 665 | + @mysql_close($con); | |
| 666 | + } catch (Exeption $e) { | |
| 667 | + $this->error = array("13"=>"Could not close: " . $e); | |
| 668 | + } | |
| 669 | + } | |
| 670 | + | |
| 671 | + /** | |
| 672 | + * Returns database errors | |
| 673 | + * | |
| 674 | + * @author KnowledgeTree Team | |
| 675 | + * @access public | |
| 676 | + * @params none | |
| 677 | + * @return array | |
| 678 | + */ | |
| 679 | + public function getErrors() { | |
| 680 | + | |
| 681 | + return $this->error; | |
| 682 | + } | |
| 683 | +} | |
| 684 | +?> | |
| 0 | 685 | \ No newline at end of file | ... | ... |
setup/wizard/steps/dependency_check.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Dependency Step Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class dependencyCheck extends Step | |
| 45 | +{ | |
| 46 | + private $maxPHPVersion = '6.0.0'; | |
| 47 | + private $minPHPVersion = '5.0.0'; | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * Constructor | |
| 51 | + * | |
| 52 | + */ | |
| 53 | + public function __construct() | |
| 54 | + { | |
| 55 | + $this->temp_variables = array("step_name"=>"dependency_check"); | |
| 56 | + } | |
| 57 | + | |
| 58 | + public function doStep() { | |
| 59 | + $passed = $this->doRun(); // Check dependencies | |
| 60 | + if($this->next()) { | |
| 61 | + if($passed) | |
| 62 | + return 'next'; | |
| 63 | + else | |
| 64 | + return 'error'; | |
| 65 | + } else if($this->previous()) { | |
| 66 | + | |
| 67 | + | |
| 68 | + return 'previous'; | |
| 69 | + } | |
| 70 | + | |
| 71 | + return 'landing'; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public function doRun() | |
| 75 | + { | |
| 76 | + $check = $this->checkPhpVersion(); | |
| 77 | + $this->temp_variables['version'] = $check; | |
| 78 | + $configs = $this->checkPhpConfiguration(); | |
| 79 | + $this->temp_variables['configurations'] = $configs; | |
| 80 | + $list = $this->getRequiredExtensions(); // get the list of extensions | |
| 81 | + $extensions = array(); | |
| 82 | + foreach($list as $ext){ | |
| 83 | + $ext['available'] = 'no'; | |
| 84 | + if($this->checkExtension($ext['extension'])){ | |
| 85 | + $ext['available'] = 'yes'; | |
| 86 | + }else { | |
| 87 | + if($ext['required'] == 'no'){ | |
| 88 | + $ext['available'] = 'optional'; | |
| 89 | + } | |
| 90 | + } | |
| 91 | + | |
| 92 | + $extensions[] = $ext; | |
| 93 | + } | |
| 94 | + | |
| 95 | + $this->temp_variables['extensions'] = $extensions; | |
| 96 | + | |
| 97 | + return true; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public function getErrors() { | |
| 101 | + return array(); | |
| 102 | + } | |
| 103 | + | |
| 104 | + public function getStepVars() | |
| 105 | + { | |
| 106 | + return $this->temp_variables; | |
| 107 | + } | |
| 108 | + | |
| 109 | + private function checkPhpConfiguration() | |
| 110 | + { | |
| 111 | + $configs = $this->getConfigurations(); | |
| 112 | + | |
| 113 | + foreach($configs as $key => $config) { | |
| 114 | + $setting = ini_get($config['configuration']); | |
| 115 | + | |
| 116 | + switch($config['type']){ | |
| 117 | + case 'bool': | |
| 118 | + $value = ($setting == 1) ? 'ON' : 'OFF'; | |
| 119 | + break; | |
| 120 | + | |
| 121 | + case 'empty': | |
| 122 | + $value = ($setting === false || $setting === '') ? 'unset' : $setting; | |
| 123 | + break; | |
| 124 | + | |
| 125 | + default: | |
| 126 | + $value = $setting; | |
| 127 | + } | |
| 128 | + | |
| 129 | + $class = ($value == $config['recommended']) ? 'green' : 'orange'; | |
| 130 | + $configs[$key]['setting'] = $value; | |
| 131 | + $configs[$key]['class'] = $class; | |
| 132 | + } | |
| 133 | + | |
| 134 | + $limits = $this->getLimits(); | |
| 135 | + | |
| 136 | + foreach($limits as $key => $limit) { | |
| 137 | + $setting = ini_get($limit['configuration']); | |
| 138 | + | |
| 139 | + $setting = $this->prettySizeToActualSize($setting); | |
| 140 | + $recommended = $this->prettySizeToActualSize($limit['recommended']); | |
| 141 | + $class = ($recommended < $setting || $setting = -1) ? 'green' : 'orange'; | |
| 142 | + | |
| 143 | + $limits[$key]['setting'] = $this->prettySize($setting); | |
| 144 | + $limits[$key]['class'] = $class; | |
| 145 | + } | |
| 146 | + $configs = array_merge($configs, $limits); | |
| 147 | + | |
| 148 | + return $configs; | |
| 149 | + } | |
| 150 | + | |
| 151 | + private function checkPhpVersion() | |
| 152 | + { | |
| 153 | + $phpversion = phpversion(); | |
| 154 | + | |
| 155 | + $phpversion5 = version_compare($phpversion, $this->minPHPVersion, '>='); | |
| 156 | + $phpversion6 = version_compare($phpversion, $this->maxPHPVersion, '<'); | |
| 157 | + | |
| 158 | + $check['class'] = 'cross'; | |
| 159 | + if($phpversion5 != 1){ | |
| 160 | + $this->continue = false; | |
| 161 | + $check['version'] = "Your PHP version needs to be PHP 5.0 or higher. You are running version <b>{$phpversion}</b>."; | |
| 162 | + return $check; | |
| 163 | + } | |
| 164 | + | |
| 165 | + if($phpversion6 != 1){ | |
| 166 | + $this->continue = false; | |
| 167 | + $check['version'] = "KnowledgeTree is not supported on PHP 6.0 and higher. You are running version <b>{$phpversion}</b>."; | |
| 168 | + return $check; | |
| 169 | + } | |
| 170 | + $check['class'] = 'tick'; | |
| 171 | + $check['version'] = "You are running version <b>{$phpversion}</b>."; | |
| 172 | + return $check; | |
| 173 | + } | |
| 174 | + | |
| 175 | + private function checkExtension($extension) | |
| 176 | + { | |
| 177 | + if(extension_loaded($extension)){ | |
| 178 | + return true; | |
| 179 | + } | |
| 180 | + $this->continue = false; | |
| 181 | + return false; | |
| 182 | + } | |
| 183 | + | |
| 184 | + private function prettySizeToActualSize($pretty) { | |
| 185 | + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'G') { | |
| 186 | + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024 * 1024; | |
| 187 | + } | |
| 188 | + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'M') { | |
| 189 | + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024; | |
| 190 | + } | |
| 191 | + if (strtoupper(substr($pretty, strlen($pretty) - 1)) == 'K') { | |
| 192 | + return (int)substr($pretty, 0, strlen($pretty)) * 1024 * 1024; | |
| 193 | + } | |
| 194 | + return (int)$pretty; | |
| 195 | + } | |
| 196 | + | |
| 197 | + private function prettySize($v) { | |
| 198 | + $v = (float)$v; | |
| 199 | + foreach (array('B', 'K', 'M', 'G') as $unit) { | |
| 200 | + if ($v < 1024) { | |
| 201 | + return $v . $unit; | |
| 202 | + } | |
| 203 | + $v = $v / 1024; | |
| 204 | + } | |
| 205 | + } | |
| 206 | + | |
| 207 | + private function getRequiredExtensions() | |
| 208 | + { | |
| 209 | + return array( | |
| 210 | + array('extension' => 'fileinfo', 'required' => 'no', 'name' => 'Fileinfo', 'details' => 'Provides better file identification support - not necessary if you use file extensions'), | |
| 211 | + array('extension' => 'iconv', 'required' => 'no', 'name' => 'IconV', 'details' => ''), | |
| 212 | + array('extension' => 'mysql', 'required' => 'yes', 'name' => 'MySQL', 'details' => ''), | |
| 213 | + array('extension' => 'curl', 'required' => 'yes', 'name' => 'cURL', 'details' => ''), | |
| 214 | + array('extension' => 'xmlrpc', 'required' => 'yes', 'name' => 'XMLRPC', 'details' => ''), | |
| 215 | + array('extension' => 'win32', 'required' => 'no', 'name' => 'Win32', 'details' => 'Allows control of Microsoft Windows services'), | |
| 216 | + array('extension' => 'mbstring', 'required' => 'no', 'name' => 'Multi Byte Strings', 'details' => ''), | |
| 217 | + ); | |
| 218 | + } | |
| 219 | + | |
| 220 | + private function getConfigurations() | |
| 221 | + { | |
| 222 | + return array( | |
| 223 | + array('name' => 'Safe Mode', 'configuration' => 'safe_mode', 'recommended' => 'ON', 'type' => 'bool'), | |
| 224 | + array('name' => 'Display Errors', 'configuration' => 'display_errors', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 225 | + array('name' => 'Display Startup Errors', 'configuration' => 'display_startup_errors', 'recommended' => 'ON', 'type' => 'bool'), | |
| 226 | + array('name' => 'File Uploads', 'configuration' => 'file_uploads', 'recommended' => 'ON', 'type' => 'bool'), | |
| 227 | + array('name' => 'Magic Quotes GPC', 'configuration' => 'magic_quotes_gpc', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 228 | + array('name' => 'Magic Quotes Runtime', 'configuration' => 'magic_quotes_runtime', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 229 | + array('name' => 'Register Globals', 'configuration' => 'register_globals', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 230 | + array('name' => 'Output Buffering', 'configuration' => 'output_buffering', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 231 | + array('name' => 'Session auto start', 'configuration' => 'session.auto_start', 'recommended' => 'OFF', 'type' => 'bool'), | |
| 232 | + array('name' => 'Automatic prepend file', 'configuration' => 'auto_prepend_file', 'recommended' => 'unset', 'type' => 'empty'), | |
| 233 | + array('name' => 'Automatic append file', 'configuration' => 'auto_append_file', 'recommended' => 'unset', 'type' => 'empty'), | |
| 234 | + array('name' => 'Open base directory', 'configuration' => 'open_basedir', 'recommended' => 'unset', 'type' => 'empty'), | |
| 235 | + array('name' => 'Default MIME type', 'configuration' => 'default_mimetype', 'recommended' => 'text/html', 'type' => 'string'), | |
| 236 | + ); | |
| 237 | + } | |
| 238 | + | |
| 239 | + private function getLimits() | |
| 240 | + { | |
| 241 | + return array( | |
| 242 | + array('name' => 'Maximum POST size', 'configuration' => 'post_max_size', 'recommended' => '32M', 'type' => 'int'), | |
| 243 | + array('name' => 'Maximum upload size', 'configuration' => 'upload_max_filesize', 'recommended' => '32M', 'type' => 'int'), | |
| 244 | + array('name' => 'Memory limit', 'configuration' => 'memory_limit', 'recommended' => '32M', 'type' => 'int'), | |
| 245 | + ); | |
| 246 | + } | |
| 247 | +} | |
| 248 | +?> | |
| 0 | 249 | \ No newline at end of file | ... | ... |
setup/wizard/steps/install.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Install Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + | |
| 43 | +require_once(WIZARD_DIR.'step.php'); | |
| 44 | + | |
| 45 | +class install extends step | |
| 46 | +{ | |
| 47 | + | |
| 48 | + function __construct() { | |
| 49 | + $this->temp_variables = array("step_name"=>"install"); | |
| 50 | + } | |
| 51 | + | |
| 52 | + public function doStep() { | |
| 53 | + if($this->install()) { | |
| 54 | + | |
| 55 | + return 'install'; | |
| 56 | + } else if($this->previous()) { | |
| 57 | + | |
| 58 | + return 'previous'; | |
| 59 | + } | |
| 60 | + | |
| 61 | + return 'landing'; | |
| 62 | + } | |
| 63 | + | |
| 64 | + public function getStepVars() | |
| 65 | + { | |
| 66 | + return $this->temp_variables; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public function getErrors() { | |
| 70 | + return $this->error; | |
| 71 | + } | |
| 72 | +} | |
| 73 | +?> | |
| 0 | 74 | \ No newline at end of file | ... | ... |
setup/wizard/steps/license.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* License Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class license extends step { | |
| 45 | + | |
| 46 | + function __construct() { | |
| 47 | + $this->temp_variables = array("step_name"=>"license"); | |
| 48 | + } | |
| 49 | + | |
| 50 | + public function doStep() { | |
| 51 | + if($this->next()) { | |
| 52 | + if($this->doRun()) | |
| 53 | + | |
| 54 | + return 'next'; | |
| 55 | + else | |
| 56 | + return 'error'; | |
| 57 | + } else if($this->previous()) { | |
| 58 | + | |
| 59 | + return 'previous'; | |
| 60 | + } | |
| 61 | + | |
| 62 | + return 'landing'; // Just a welcome, so return "next" action | |
| 63 | + } | |
| 64 | + | |
| 65 | + public function doRun() { | |
| 66 | + if(isset($_POST['license'])) { | |
| 67 | + // check if agree | |
| 68 | + if($_POST['license']) { | |
| 69 | + | |
| 70 | + return true; | |
| 71 | + } else { | |
| 72 | + $this->error = array("Error"=>"Please accept license agreement"); | |
| 73 | + | |
| 74 | + return false; | |
| 75 | + } | |
| 76 | + } | |
| 77 | + } | |
| 78 | + | |
| 79 | + public function getStepVars() | |
| 80 | + { | |
| 81 | + return $this->temp_variables; | |
| 82 | + } | |
| 83 | + | |
| 84 | + public function getErrors() { | |
| 85 | + return $this->error; | |
| 86 | + } | |
| 87 | +} | |
| 88 | +?> | |
| 0 | 89 | \ No newline at end of file | ... | ... |
setup/wizard/steps/welcome.php
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Welcome Step Controller. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright(C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software(Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | +require_once(WIZARD_DIR.'step.php'); | |
| 43 | + | |
| 44 | +class welcome extends step { | |
| 45 | + | |
| 46 | + | |
| 47 | + function __construct() { | |
| 48 | + $this->temp_variables = array("step_name"=>"license"); | |
| 49 | + } | |
| 50 | + | |
| 51 | + function doStep() { | |
| 52 | + if($this->next()) { | |
| 53 | + return 'next'; // Just a welcome, so return "next" action | |
| 54 | + } | |
| 55 | + | |
| 56 | + return 'landing'; | |
| 57 | + } | |
| 58 | + | |
| 59 | +} | |
| 60 | + | |
| 61 | +?> | |
| 0 | 62 | \ No newline at end of file | ... | ... |
setup/wizard/template.inc
0 → 100755
| 1 | +<?php | |
| 2 | +/** | |
| 3 | +* Template Engine. | |
| 4 | +* | |
| 5 | +* KnowledgeTree Community Edition | |
| 6 | +* Document Management Made Simple | |
| 7 | +* Copyright (C) 2008,2009 KnowledgeTree Inc. | |
| 8 | +* Portions copyright The Jam Warehouse Software (Pty) Limited | |
| 9 | +* | |
| 10 | +* This program is free software; you can redistribute it and/or modify it under | |
| 11 | +* the terms of the GNU General Public License version 3 as published by the | |
| 12 | +* Free Software Foundation. | |
| 13 | +* | |
| 14 | +* This program is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 16 | +* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
| 17 | +* details. | |
| 18 | +* | |
| 19 | +* You should have received a copy of the GNU General Public License | |
| 20 | +* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | +* | |
| 22 | +* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, | |
| 23 | +* California 94120-7775, or email info@knowledgetree.com. | |
| 24 | +* | |
| 25 | +* The interactive user interfaces in modified source and object code versions | |
| 26 | +* of this program must display Appropriate Legal Notices, as required under | |
| 27 | +* Section 5 of the GNU General Public License version 3. | |
| 28 | +* | |
| 29 | +* In accordance with Section 7(b) of the GNU General Public License version 3, | |
| 30 | +* these Appropriate Legal Notices must retain the display of the "Powered by | |
| 31 | +* KnowledgeTree" logo and retain the original copyright notice. If the display of the | |
| 32 | +* logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices | |
| 33 | +* must display the words "Powered by KnowledgeTree" and retain the original | |
| 34 | +* copyright notice. | |
| 35 | +* | |
| 36 | +* @copyright 2008-2009, KnowledgeTree Inc. | |
| 37 | +* @license GNU General Public License version 3 | |
| 38 | +* @author KnowledgeTree Team | |
| 39 | +* @package Installer | |
| 40 | +* @version Version 0.1 | |
| 41 | +*/ | |
| 42 | + | |
| 43 | +class Template | |
| 44 | +{ | |
| 45 | + /** | |
| 46 | + * Hold all the variables that are going to be imported into the template file | |
| 47 | + * @var array | |
| 48 | + */ | |
| 49 | + var $template_vars = Array(); | |
| 50 | + | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * Constructor | |
| 54 | + * | |
| 55 | + * @author KnowledgeTree Team | |
| 56 | + * @param string $file the file name you want to load | |
| 57 | + * @access public | |
| 58 | + * @return void | |
| 59 | + */ | |
| 60 | + public function Template($file = null) | |
| 61 | + { | |
| 62 | + $this->file = $file; | |
| 63 | + } | |
| 64 | + | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * Set a variable into the template | |
| 68 | + * If the variable is a template object, go and call its template::fetch() method | |
| 69 | + * | |
| 70 | + * @author KnowledgeTree Team | |
| 71 | + * @param string $name The name for this value in the template file | |
| 72 | + * @param string $value The value to show in the template file | |
| 73 | + * @access public | |
| 74 | + * @return void | |
| 75 | + */ | |
| 76 | + public function set($name, $value) | |
| 77 | + { | |
| 78 | + if(is_a($value, 'Template')) { | |
| 79 | + $value = $value->fetch(); | |
| 80 | + } | |
| 81 | + $this->template_vars[$name] = $value; | |
| 82 | + } | |
| 83 | + | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * Create the template and import its variables | |
| 87 | + * | |
| 88 | + * @author KnowledgeTree Team | |
| 89 | + * @param string $file The file to use as the template | |
| 90 | + * @access public | |
| 91 | + * @return string The parsed template | |
| 92 | + */ | |
| 93 | + public function fetch($file = null) | |
| 94 | + { | |
| 95 | + if (is_null($file)) $file = $this->file; | |
| 96 | + | |
| 97 | + if (!file_exists($file)) { | |
| 98 | + trigger_error('Template file '.$file.' does not exist ', E_USER_ERROR); | |
| 99 | + } | |
| 100 | + extract($this->template_vars); // Extract the vars to local namespace | |
| 101 | + ob_start(); | |
| 102 | + include($file); | |
| 103 | + $contents = ob_get_contents(); | |
| 104 | + ob_end_clean(); | |
| 105 | + return $contents; | |
| 106 | + | |
| 107 | + } | |
| 108 | + | |
| 109 | +} | |
| 110 | +?> | |
| 0 | 111 | \ No newline at end of file | ... | ... |
setup/wizard/templates/complete.tpl
0 → 100755
setup/wizard/templates/configuration.tpl
0 → 100755
| 1 | +<h1>System Configuration</h1> | |
| 2 | + | |
| 3 | +<form action="index.php?step_name=configuration" method="POST"> | |
| 4 | + | |
| 5 | +<h3>Server Settings</h3> | |
| 6 | + | |
| 7 | +<div class="error"> | |
| 8 | + <?php | |
| 9 | + foreach ($errors as $error){ | |
| 10 | + echo $error.'<br />'; | |
| 11 | + } | |
| 12 | + ?> | |
| 13 | +</div> | |
| 14 | + | |
| 15 | +<table> | |
| 16 | + <tr> | |
| 17 | + <td><label for='host'>Host: </label></td> | |
| 18 | + <td><input name='host' id='host' size='60' value='<?php echo $server['host']; ?>' /></td> | |
| 19 | + </tr> | |
| 20 | + <tr> | |
| 21 | + <td><label for='port'>Port: </label></td> | |
| 22 | + <td><input name='port' id='port' size='5' value='<?php echo $server['port']; ?>' /></td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <td><label for='root_url'>Root Url: </label></td> | |
| 26 | + <td><input name='root_url' id='root_url' size='60' value='<?php echo $server['root_url']; ?>' /></td> | |
| 27 | + </tr> | |
| 28 | + <tr> | |
| 29 | + <td><label for='file_system_root'>File System Root: </label></td> | |
| 30 | + <td><input name='file_system_root' id='file_system_root' size='60' value='<?php echo $server['file_system_root']; ?>' /></td> | |
| 31 | + </tr> | |
| 32 | + <tr> | |
| 33 | + <td><label for='yes'>SSL Enabled: </label></td> | |
| 34 | + <td> | |
| 35 | + <label for='yes'>Yes: </label><input type='radio' name='ssl_enabled' id='yes' value='yes' <?php echo $server['ssl_enabled'] == 'yes' ? 'CHECKED' : ''; ?> /> | |
| 36 | + <label for='no'>No: </label><input type='radio' name='ssl_enabled' id='no' value='no' <?php echo $server['ssl_enabled'] == 'no' ? 'CHECKED' : ''; ?> /> | |
| 37 | + </td> | |
| 38 | + </tr> | |
| 39 | +</table> | |
| 40 | + | |
| 41 | +<br /> | |
| 42 | +<h3>Paths and Permissions</h3> | |
| 43 | + | |
| 44 | +<table> | |
| 45 | +<?php | |
| 46 | + foreach ($paths as $key => $path){ | |
| 47 | + $row = '<tr>'; | |
| 48 | + | |
| 49 | + $row .= "<td><div class='{$path['class']}'></div></td>\n"; | |
| 50 | + $row .= "<td><label for='{$path['setting']}'>{$path['name']}: </label></td>\n"; | |
| 51 | + $row .= "<td><input name='{$path['setting']}' id='{$path['setting']}' size='60' value='{$path['path']}' /></td>\n"; | |
| 52 | + $row .= '<td class="error">'; | |
| 53 | + $row .= (isset($path['msg'])) ? $path['msg'] : ''; | |
| 54 | + $row .= "</td>\n"; | |
| 55 | + | |
| 56 | + $row .= "</tr>\n"; | |
| 57 | + | |
| 58 | + echo $row; | |
| 59 | + } | |
| 60 | +?> | |
| 61 | +</table> | |
| 62 | + | |
| 63 | +<div class="buttons"> | |
| 64 | + <input type="submit" name="Previous" value="Previous"/> | |
| 65 | + <input type="submit" name="Next" value="Next"/> | |
| 66 | +</div> | |
| 67 | +</form> | |
| 0 | 68 | \ No newline at end of file | ... | ... |
setup/wizard/templates/configuration_confirm.tpl
0 → 100755
| 1 | +<h1>System Configuration</h1> | |
| 2 | + | |
| 3 | +<h3>Server Settings</h3> | |
| 4 | + | |
| 5 | +<table> | |
| 6 | + <tr> | |
| 7 | + <td><b>Host: </b></td> | |
| 8 | + <td><?php echo $server['host']; ?></td> | |
| 9 | + </tr> | |
| 10 | + <tr> | |
| 11 | + <td><b>Port: </b></td> | |
| 12 | + <td><?php echo $server['port']; ?></td> | |
| 13 | + </tr> | |
| 14 | + <tr> | |
| 15 | + <td><b>Root Url: </b></td> | |
| 16 | + <td><?php echo $server['root_url']; ?></td> | |
| 17 | + </tr> | |
| 18 | + <tr> | |
| 19 | + <td><b>File System Root: </b></td> | |
| 20 | + <td><?php echo $server['file_system_root']; ?></td> | |
| 21 | + </tr> | |
| 22 | + <tr> | |
| 23 | + <td><b>SSL Enabled: </b></td> | |
| 24 | + <td><?php echo $server['ssl_enabled']; ?></td> | |
| 25 | + </tr> | |
| 26 | +</table> | |
| 27 | + | |
| 28 | +<br /> | |
| 29 | +<h3>Paths and Permissions</h3> | |
| 30 | + | |
| 31 | +<table> | |
| 32 | +<?php | |
| 33 | + foreach ($paths as $key => $path){ | |
| 34 | + $row = '<tr>'; | |
| 35 | + | |
| 36 | + $row .= "<td><div class='{$path['class']}'></div></td>\n"; | |
| 37 | + $row .= "<td><b>{$path['name']}:</b></td>\n"; | |
| 38 | + $row .= "<td>{$path['path']}</td>\n"; | |
| 39 | + | |
| 40 | + $row .= "</tr>\n"; | |
| 41 | + | |
| 42 | + echo $row; | |
| 43 | + } | |
| 44 | +?> | |
| 45 | +</table> | |
| 46 | + | |
| 47 | +<form action="index.php?step_name=configuration" method="POST"> | |
| 48 | + | |
| 49 | +<div class="buttons"> | |
| 50 | + <!--<input type="submit" onclick="history.back();" name="Back" value="Back"/> | |
| 51 | + <input type="submit" name="Back" value="Back"/>--> | |
| 52 | + <input type="submit" name="Edit" value="Edit"/> | |
| 53 | + <input type="submit" name="Confirm" value="Confirm"/> | |
| 54 | +</div> | |
| 55 | +</form> | |
| 0 | 56 | \ No newline at end of file | ... | ... |
setup/wizard/templates/database.tpl
0 → 100755
| 1 | +<form action="index.php?step_name=<?php echo $step_name; ?>" method="POST"> | |
| 2 | +<div class="dtype"> | |
| 3 | +<?php if($dtypes) { | |
| 4 | + foreach($dtypes as $k=>$v) { | |
| 5 | + ?> | |
| 6 | + <input type="radio" name="dtype" value="<?php echo $v; ?>" <?php if(!$k)echo 'checked="checked"'; ?>"/><?php echo $v; ?> | |
| 7 | +<!-- <input type="hidden" name="dtypes" value="<?php echo $v; ?>">--> | |
| 8 | + <br/> | |
| 9 | +<?php } | |
| 10 | +} | |
| 11 | +?> | |
| 12 | +<!--<input type="hidden" name="dtypes" value="postgres">--> | |
| 13 | +<!--<input type="hidden" name="dtypes" value="oracle">--> | |
| 14 | +</div> | |
| 15 | +Name: | |
| 16 | +<input type="text" value="<?php echo $dname?>" name="dname"/><br/> | |
| 17 | +Root Username: | |
| 18 | +<input type="text" value="<?php echo $duname?>" name="duname"/><br/> | |
| 19 | +Root Password: | |
| 20 | +<input type="text" value="<?php echo $dpassword?>" name="dpassword"/><br/> | |
| 21 | +<div id="options" onclick="showAO();" style="cursor:pointer;">Advanced Options</div> | |
| 22 | +<div class="adv_options" style="display:none;"> | |
| 23 | + <div class="description"> | |
| 24 | + These options are only necessary for some sites. If you're not sure what you should enter here, leave the default settings or check with your hosting provider. | |
| 25 | + </div> | |
| 26 | + Host: | |
| 27 | + <input type="text" value="<?php echo $dhost?>" name="dhost"/><br/> | |
| 28 | + <div class="description"> | |
| 29 | + If your database is located on a different server, change this. | |
| 30 | + </div> | |
| 31 | + Port: | |
| 32 | + <input type="text" value="<?php echo $dport?>" name="dport"/><br/> | |
| 33 | + <div class="description"> | |
| 34 | + If your database server is listening to a non-standard port, enter its number. | |
| 35 | + </div> | |
| 36 | + Table Prefix: | |
| 37 | + <input type="text"><br/> | |
| 38 | + <div class="description"> | |
| 39 | + If more than one application will be sharing this database, enter a table prefix such as kt_ for your KnowledgeTree site here. | |
| 40 | + </div> | |
| 41 | + | |
| 42 | +</div> | |
| 43 | +Drop table if it exists<input type="checkbox" name="ddrop" <?php if($ddrop) echo 'checked="checked"'; ?>> | |
| 44 | +<div class="buttons"> | |
| 45 | + <input type="submit" name="Previous" value="previous"/> | |
| 46 | + <input type="submit" name="Next" value="next"/> | |
| 47 | +</div> | |
| 48 | +<div class="errors"> | |
| 49 | + <?php if(isset($errors)) { | |
| 50 | + foreach($errors as $k=>$e) { | |
| 51 | + echo $e; | |
| 52 | + } | |
| 53 | + }?> | |
| 54 | +</div> | |
| 55 | +</form> | |
| 56 | +<script> | |
| 57 | + function showAO() { | |
| 58 | + var v = document.getElementsByClassName("adv_options"); | |
| 59 | + if(v[0].style.display == 'none') | |
| 60 | + v[0].style.display = 'block'; | |
| 61 | + else | |
| 62 | + v[0].style.display = 'none'; | |
| 63 | + } | |
| 64 | +</script> | |
| 0 | 65 | \ No newline at end of file | ... | ... |
setup/wizard/templates/database_confirm.tpl
0 → 100755
| 1 | +<form action="index.php?step_name=<?php echo $step_name; ?>" method="POST"> | |
| 2 | +DB Configuration Confirmation: | |
| 3 | +<div class="dtype"> | |
| 4 | +<?php if($dtypes) { | |
| 5 | + foreach($dtypes as $k=>$v) { | |
| 6 | + ?> | |
| 7 | + <input type="radio" name="dtype" value="<?php echo $v; ?>" <?php if(!$k)echo 'checked="checked"'; ?>/><?php echo $v; ?> | |
| 8 | + <br/> | |
| 9 | +<?php } | |
| 10 | +} | |
| 11 | +?> | |
| 12 | +</div> | |
| 13 | +Name:<?php echo $dname; ?><br/> | |
| 14 | +Root Username:<?php echo $duname; ?><br/> | |
| 15 | +Root Password:<?php echo $dpassword; ?><br/> | |
| 16 | +Host:<?php echo $dhost; ?><br/> | |
| 17 | +Port:<?php echo $dport; ?><br/> | |
| 18 | +Table Prefix:<?php echo $tprefix; ?><br/> | |
| 19 | +<?php if($ddrop) { ?> You are about to drop the table if it exists <?php } ?> | |
| 20 | +<div class="buttons"> | |
| 21 | + <input type="submit" name="Edit" value="Edit"/> | |
| 22 | + <input type="submit" name="Confirm" value="Confirm"/> | |
| 23 | +</div> | |
| 24 | +</form> | |
| 0 | 25 | \ No newline at end of file | ... | ... |
setup/wizard/templates/dependency_check.tpl
0 → 100755
| 1 | +<h1>PHP Dependencies Check</h1> | |
| 2 | + | |
| 3 | +<h3>PHP Version Check</h3> | |
| 4 | + | |
| 5 | +<?php echo "<span class='{$version['class']}'> </span>{$version['version']}"; ?> | |
| 6 | +<br /><br /> | |
| 7 | +<h3>PHP Extensions</h3> | |
| 8 | + | |
| 9 | +<table> | |
| 10 | +<?php | |
| 11 | + | |
| 12 | + foreach($extensions as $ext) { | |
| 13 | + $row = '<tr>'; | |
| 14 | + | |
| 15 | + switch($ext['available']){ | |
| 16 | + case 'yes': | |
| 17 | + $class = 'tick'; | |
| 18 | + break; | |
| 19 | + case 'optional': | |
| 20 | + $class = 'cross'; | |
| 21 | + break; | |
| 22 | + case 'no': | |
| 23 | + default: | |
| 24 | + $class = 'cross'; | |
| 25 | + } | |
| 26 | + $row .= "<td><div class='{$class}'></div></td>"; | |
| 27 | + $row .= "<td>{$ext['name']}</td>"; | |
| 28 | + $row .= ($ext['available'] != 'yes') ? "<td>{$ext['details']}</td>" : '<td></td>'; | |
| 29 | + | |
| 30 | + $row .= '</tr>'; | |
| 31 | + | |
| 32 | + echo $row."\n"; | |
| 33 | + } | |
| 34 | + | |
| 35 | +?> | |
| 36 | +</table> | |
| 37 | +<br /><br /> | |
| 38 | +<h3>PHP Configuration</h3> | |
| 39 | + | |
| 40 | +<table> | |
| 41 | + | |
| 42 | +<tr> | |
| 43 | + <th>Setting</th> | |
| 44 | + <th>Recommended value</th> | |
| 45 | + <th>Current value</th> | |
| 46 | +</tr> | |
| 47 | + | |
| 48 | +<?php | |
| 49 | + foreach($configurations as $config) { | |
| 50 | + $row = '<tr>'; | |
| 51 | + | |
| 52 | + $row .= "<td>{$config['name']}</td>"; | |
| 53 | + $row .= "<td>{$config['recommended']}</td>"; | |
| 54 | + $row .= "<td class='{$config['class']}'>{$config['setting']}</td>"; | |
| 55 | + | |
| 56 | + $row .= '</tr>'; | |
| 57 | + | |
| 58 | + echo $row."\n"; | |
| 59 | + } | |
| 60 | +?> | |
| 61 | + | |
| 62 | +</table> | |
| 63 | +<form action="index.php?step_name=dependency_check" method="POST"> | |
| 64 | + | |
| 65 | +<div class="buttons"> | |
| 66 | + <input type="submit" name="Previous" value="Previous"/> | |
| 67 | + <input type="submit" name="Next" value="Next"/> | |
| 68 | +</div> | |
| 69 | +</form> | |
| 0 | 70 | \ No newline at end of file | ... | ... |
setup/wizard/templates/install.tpl
0 → 100755
setup/wizard/templates/license.tpl
0 → 100755
| 1 | +<form action="index.php?step_name=license" method="POST"> | |
| 2 | +<div> | |
| 3 | +<textarea cols="100" rows="20"> | |
| 4 | +KnowledgeTree On-premise Commercial End-User | |
| 5 | +License Agreement Version 2.3 | |
| 6 | +PLEASE READ THIS DOCUMENT CAREFULLY BEFORE INSTALLING THE | |
| 7 | +SOFTWARE. BY INSTALLING AND USING THE SOFTWARE, YOU AGREE ON BEHALF | |
| 8 | +OF THE ENTITY LICENSING THE SOFTWARE AND WHO IS BECOMING A PARTY TO | |
| 9 | +THIS LICENSE AGREEMENT (“THE COMPANY”) TO BE BOUND BY THE TERMS OF | |
| 10 | +THIS AGREEMENT AND THAT YOU HAVE THE NECESSARY AUTHORITY TO BIND | |
| 11 | +THE COMPANY TO THIS AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF | |
| 12 | +THE AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. | |
| 13 | +This is an agreement entered into by and between you (the “Company”) and KnowledgeTree Inc. and | |
| 14 | +its subsidiaries (“KT”). This Agreement states the terms and conditions upon which KT offers to | |
| 15 | +license the KnowledgeTree Commercial Editions software provided in this package together with all | |
| 16 | +related documentation and accompanying items including, but not limited to, the executable programs, | |
| 17 | +drivers, libraries and data files associated with such programs (collectively, the “Software”). | |
| 18 | +DEFINITIONS | |
| 19 | +Accessible Code means source code contained within the Software that is accessible under this | |
| 20 | +Agreement. | |
| 21 | +Affiliate means a company which is controlled, under common control or controlling the Company | |
| 22 | +during the period of such control. For the purposes of this Agreement, "control" shall mean ownership, | |
| 23 | +directly or indirectly, of more than 50% of the shares in the Company (or other voting securities) which | |
| 24 | +vote for the election of the board of directors or other managing body of the Company. | |
| 25 | +End User means an employee, contractor or agent of the Company and its Affiliates authorized by the | |
| 26 | +Company to use the Software as per the terms of this Agreement. | |
| 27 | +OEM Distribution means distribution of the Software as either a bundled add-on to, or embedded | |
| 28 | +component of, another application with such application being made available to its users as, but not | |
| 29 | +limited to, an on-premise application, a hosted application, a Software-as-a-Service offering or a | |
| 30 | +subscription service for which the distributor of the application receives a license fee or any form of | |
| 31 | +direct or indirect compensation. | |
| 32 | +Protected Code means source code contained within the Software that is protected against access by | |
| 33 | +KT and is not accessible under this Agreement. | |
| 34 | +Distribution Archive means a software installer package or any other distribution medium commonly | |
| 35 | +utilized to package and distribute software. | |
| 36 | +Customer Service Systems means any online system provided by KT or its service providers to provide | |
| 37 | +Company with product support, access to the Software, or user licenses, though not limited to these | |
| 38 | +services. | |
| 39 | +Unlimited Use License means a grant of license under this agreement that is not limited to a set | |
| 40 | +number of End Users, but is limited to one physical server device that the Software may be run on. | |
| 41 | +Grant of Rights | |
| 42 | +For the term of this Agreement and subject to the Company's payment of the license fees as defined | |
| 43 | +below KT grants the Company a non-exclusive, non-transferable, non-sublicensable right to use and | |
| 44 | +modify the Software only for the Company's own internal use and limited to the number of End Users | |
| 45 | +for which the Company has paid the applicable license fee. | |
| 46 | +Company’s responsibility for End Users | |
| 47 | +The Company shall be responsible for any act or omission of all End Users and for their compliance | |
| 48 | +with all of the terms of this Agreement. Any action or breach by any of the Company's employees, | |
| 49 | +contractors, agents or Affiliates shall be deemed an action or breach by the Company of this | |
| 50 | +Agreement and the Company hereby indemnifies and holds KT harmless from any and all such | |
| 51 | +breaches of this Agreement. The Company waives all of those defenses that the Company may have in | |
| 52 | +law or otherwise which may be raised to avoid liability should the Company not be liable for its | |
| 53 | +employees, contractors', agents' or Affiliates' acts, omissions and non-compliance with the terms of this | |
| 54 | +Agreement. | |
| 55 | +Delivery and acceptance of the Software | |
| 56 | +The Software shall be deemed accepted once the Company has successfully downloaded and unpacked | |
| 57 | +the Distribution Archive. | |
| 58 | +Restrictions | |
| 59 | +The Company shall not, directly or indirectly: (i) remove or alter any copyright, trademark or | |
| 60 | +proprietary notice in the Software; (ii) transfer, use or export the Software in violation of any laws or | |
| 61 | +regulations of any government or governmental agency; (iii) reverse engineer, decompile or modify | |
| 62 | +any protected code which forms part of the Software; (iv) distribute the Software via OEM Distribution | |
| 63 | +without entering into a separate OEM Distribution Agreement with KT; (v) redistribute the Accessible | |
| 64 | +or Protected Code; (vi) use and or modify the Software to develop a competitive product; and (vii) | |
| 65 | +commit any act or omission the likely result of which is that KT’s reputation will be brought into | |
| 66 | +disrepute or which act or omission could reasonably be expected to have or does have a material and | |
| 67 | +adverse effect on KT’s interests. | |
| 68 | +The Software includes license protection mechanisms that are designed to manage and protect the | |
| 69 | +intellectual property rights of KT. The Company must not modify or alter those features to try to defeat | |
| 70 | +the Software use rules that the license protection mechanisms are designed to enforce. | |
| 71 | +Notwithstanding anything to the contrary in this Agreement, during the period of this Agreement the | |
| 72 | +Company may continue to use the Software initially provided under this Agreement with the source | |
| 73 | +code and license key and use differing databases, web servers or operating systems than the database, | |
| 74 | +web server or operating system initially selected by the Company on installation of the Software at no | |
| 75 | +charge. | |
| 76 | +Proprietary Rights | |
| 77 | +KT and its licensors shall own all right, title, and interest to the Software, technology, information, | |
| 78 | +code or software provided to Company, including all portions, copies or modifications thereof. Except | |
| 79 | +as expressly provided herein, no licenses of any kind are granted hereunder, whether by implication, | |
| 80 | +estoppel, or otherwise. | |
| 81 | +Fees and Payment | |
| 82 | +End User Accounts: The Company shall designate an Administrator and notify KT of the identity and | |
| 83 | +contact information for said Administrator. The Administrator may add End Users to the Company's | |
| 84 | +subscription for the Software by placing an order with KT. The Company is responsible for all activity | |
| 85 | +occurring under the Company's End User's accounts. The Company shall notify KT immediately of any | |
| 86 | +unauthorized use of any password or account that provides Company access to the Customer Service | |
| 87 | +Systems, or unauthorized copying or distribution of the Software or related proprietary material. End | |
| 88 | +User accounts cannot be shared or used by more than one individual End User but may be reassigned to | |
| 89 | +new End Users replacing former End Users. | |
| 90 | +License fee: The Company shall pay to KT an amount specified on the KnowledgeTree website for the | |
| 91 | +number of End Users that Company selects. Payment of the license fee shall be due and payable as set | |
| 92 | +forth in the terms and conditions on the KnowledgeTree website. All fees paid to KT are non- | |
| 93 | +refundable. The Company will also pay all applicable taxes, including sales, use, personal property, | |
| 94 | +value-added, excise, customs fees, import duties, stamp duties and any other similar taxes and duties, | |
| 95 | +including penalties and interest, imposed by any federal, state, provincial or other government entity on | |
| 96 | +the transactions contemplated by this Agreement. | |
| 97 | +Records Retention: Unless the company has purchased an Unlimited Use License, the Company shall | |
| 98 | +maintain accurate records necessary to verify the number of End Users. Upon KT's written request, the | |
| 99 | +Company shall provide KT with such records within ten (10) days. If the Company has more End | |
| 100 | +Users than the Company has paid for, the Company shall immediately pay KT an additional license fee | |
| 101 | +in addition to any costs incurred by KT associated with reviewing such records. | |
| 102 | +COPYRIGHT | |
| 103 | +KT reserves all rights not expressly granted to you in this EULA. The Software is protected by | |
| 104 | +copyright and other intellectual property laws and treaties. KT and/or its licensors own the title, | |
| 105 | +copyright, and other intellectual property rights in the Software. The Software is licensed, not sold. The | |
| 106 | +Company may not remove the copyright notice from any copy of the Software or any copy of the | |
| 107 | +written materials, if any, accompanying the Software. | |
| 108 | +MERGER OR INTEGRATION | |
| 109 | +Should the Company merge any portion of the Software or accessible code into, or integrate any | |
| 110 | +portion of the Software or accessible code with, any other program or code, any portion of the Software | |
| 111 | +or accessible code merged into or integrated with another program, if any, will continue to be subject to | |
| 112 | +the terms and conditions of this Agreement, and the Company must reproduce on the merged or | |
| 113 | +integrated portion all copyright and other proprietary rights notices included in the originals of the | |
| 114 | +Software or accessible code. | |
| 115 | +TRANSFER OF LICENSE | |
| 116 | +The Company may not transfer its license in terms of this Agreement to any external third parties. | |
| 117 | +LIMITATIONS ON USING, COPYING, AND MODIFYING THE SOFTWARE | |
| 118 | +Except to the extent expressly permitted by this Agreement or by the laws of the jurisdiction where the | |
| 119 | +Company acquired the Software, it may not use, copy or modify the Software. Nor may the Company | |
| 120 | +sub-license any of its rights under this Agreement. | |
| 121 | +DECOMPILING, DISASSEMBLING, OR REVERSE ENGINEERING | |
| 122 | +The Company acknowledges that the Software contains trade secrets and other proprietary information | |
| 123 | +of KT and its licensors. Except to the extent expressly permitted by this Agreement or by the laws of | |
| 124 | +the jurisdiction where the Company is located, it may not decompile, disassemble or otherwise reverse | |
| 125 | +engineer the Software, or engage in any other activities to obtain underlying information that is not | |
| 126 | +visible to the user in connection with the normal use of the Software. | |
| 127 | + | |
| 128 | +In particular, the Company agrees not for any purpose to transmit the Software or display the | |
| 129 | +Software's object code on any computer screen or to make any hardcopy memory dumps of the | |
| 130 | +Software's object code. If the Company believes that it requires information related to the | |
| 131 | +interoperability of the Software with other programs, it shall not decompile or disassemble the | |
| 132 | +Software to obtain such information, and it agrees to request such information from KT at the address | |
| 133 | +listed below. Upon receiving such a request, KT shall determine whether the Company requires such | |
| 134 | +information for a legitimate purpose and, if so, KT will provide such information to the Company | |
| 135 | +within a reasonable time and on reasonable conditions. | |
| 136 | + | |
| 137 | +In any event, the Company will notify KT of any information derived from reverse engineering or such | |
| 138 | +other activities, and the results thereof will constitute the confidential information of KT that may be | |
| 139 | +used only in connection with the Software. | |
| 140 | +DURATION AND TERMINATION | |
| 141 | +The license granted to the Company is effective for 1 (ONE) year. The license will also terminate | |
| 142 | +automatically without any notice from KT if the Company fails to comply with any term or condition | |
| 143 | +of this Agreement. Upon termination, KT may also enforce any rights provided by law. The provisions | |
| 144 | +of this Agreement that protect the proprietary rights of KT will continue in force after termination. | |
| 145 | +SOFTWARE MAINTENANCE | |
| 146 | +Software Maintenance includes KT’s provisioning to the Company of updates and/or enhancements of | |
| 147 | +the Software made generally available to customers from time to time, and online technical support | |
| 148 | +(and where applicable, phone support) to one Company-designated technical contact for the sole | |
| 149 | +purpose of addressing technical issues relating to the use of the Software (excluding any form of on- | |
| 150 | +site visits by KT personnel or contractors). | |
| 151 | +DISCLAIMER OF ANY WARRANTY | |
| 152 | +KT does not warrant that the functions contained in the Software will meet the Company’s | |
| 153 | +requirements or that the operation of the Software will be correct, uninterrupted or error-free. KT | |
| 154 | +provides evaluation copies of the Product so that customers can assess the Product. | |
| 155 | +THE SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, EITHER | |
| 156 | +EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES | |
| 157 | +OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, TITLE OR | |
| 158 | +NONINFRINGEMENT. | |
| 159 | +The Company assumes responsibility for the support and fault-finding of any modifications made to | |
| 160 | +the Software, or merger and integration undertaken with or between any other program or code. | |
| 161 | +The Company assumes full responsibility for the selection of the Software to achieve its intended | |
| 162 | +results, and for the installation, use and results obtained from the Software. The Company also assumes | |
| 163 | +the entire risk as it applies to the quality and performance of the Software. Should the Software prove | |
| 164 | +defective, the Company (and not KT, or its distributors or dealers) assumes the entire cost of any and | |
| 165 | +all necessary servicing, repair or correction. | |
| 166 | +Some countries/states do not allow the exclusion of implied warranties, so the above exclusion may not | |
| 167 | +apply to the Company. KT disclaims all warranties of any kind if the Software was customized, | |
| 168 | +repackaged or altered in any way by any third party other than KT. | |
| 169 | +INFRINGEMENT | |
| 170 | +During any term of this Agreement, if any portion of the Software is held by a court of competent | |
| 171 | +jurisdiction to infringe any third party intellectual property rights and the Company incurs a liability or | |
| 172 | +expense as a result of such holding, then the Company’s sole remedy shall be, and KT will, at its | |
| 173 | +option: (i) obtain the right for the Company to continue to use the Software consistent with this | |
| 174 | +Agreement; (ii) modify the Software so that it is non-infringing; or (iii) replace the infringing | |
| 175 | +component with a non-infringing component, or (iv) refund all money paid in the then-current calendar | |
| 176 | +quarter under this Agreement and all of the Company’s rights and licenses under this Agreement shall | |
| 177 | +automatically terminate. | |
| 178 | +PUBLICITY RIGHTS | |
| 179 | +a. The Company grants KT the right to include the Company as a customer in promotional | |
| 180 | +material for the Software or for KT. | |
| 181 | +b. The Company can deny KT this right by submitting a written request via e-mail to | |
| 182 | +marketing@knowledgetree.com requesting to be excluded from such promotional material. | |
| 183 | +Confirmation of such denial (via reply e-mail) must be received prior to purchasing for this to | |
| 184 | +be effective. | |
| 185 | +c. Should the Company come to be or already be included in promotional material, as a result of | |
| 186 | +any prior purchases where the Company did not request exclusion from the promotional | |
| 187 | +material, the Company can at any point, submit a written request via e-mail to | |
| 188 | +marketing@knowledgetree.com to have KT remove the Company’s name from the | |
| 189 | +promotional material. Upon receipt of such request, KT will remove any reference to the | |
| 190 | +Company from such promotional material within 30 days and make no further reference to the | |
| 191 | +Company. | |
| 192 | +During any term of this Agreement, the Company grants to KT a non-transferable, non-exclusive, | |
| 193 | +license to reproduce and display its logos, trademarks, trade names and similar identifying material so | |
| 194 | +that KT may refer to the Company as a user of the Software should KT so desire, such as on the KT | |
| 195 | +website, in press releases and in other marketing materials. | |
| 196 | +INDEMNIFICATION | |
| 197 | +If the Company distributes the Software in violation of this Agreement, it hereby indemnifies, hold | |
| 198 | +harmless and defends KT from and against any and all claims or lawsuits, including attorney's fees and | |
| 199 | +costs that arise, result from or are connected with the use or distribution of the Software in violation of | |
| 200 | +this Agreement. | |
| 201 | +LIMITATION OF REMEDIES AND DAMAGES | |
| 202 | +In no event will KT or its licensors be liable for any indirect, incidental, special or consequential | |
| 203 | +damages, or for any personal injury or bodily injury (including death) to any persons caused by KT's | |
| 204 | +negligence, or for any lost profits, lost savings, loss of use, lost revenues or lost data arising from or | |
| 205 | +relating to the Software or this Agreement, even if KT or its licensors have been advised of the | |
| 206 | +possibility of such damages. In no event will KT’s liability or damages to the Company or any other | |
| 207 | +person ever exceed the amount paid by the Company to use the Software, regardless of the form of the | |
| 208 | +claim. | |
| 209 | +Some countries/states do not allow the limitation or exclusion of liability for incidental or | |
| 210 | +consequential damages, so the above limitation or exclusion may not apply to the Company. | |
| 211 | +GOVERNMENT RESTRICTED RIGHTS | |
| 212 | +Programs delivered to the U.S. Defense Dept. are delivered with Restricted Rights and the following | |
| 213 | +applies: "Restricted Rights Legend: Use, duplication or disclosure by Government is subject to | |
| 214 | +restrictions as currently set forth in subparagraph (c)(1)(ii) of DFARS 252-227-7013, Rights in | |
| 215 | +Technical Data and Computer Software (October 1988). Software manufacturer is KnowledgeTree | |
| 216 | +Inc., c/o DLA Piper US LLP, 2000 University Avenue, East Palo Alto, CA 94303. Programs delivered | |
| 217 | +to a U.S. Government Agency not within the Defense, Dept. are delivered with "Restricted Rights" as | |
| 218 | +defined in FAR 52.227-14, Rights in Data - General, including Alternate III (June 1987). | |
| 219 | +CONTRACTOR/MANUFACTURER | |
| 220 | +The Contractor/Manufacturer for the Software is: | |
| 221 | +KnowledgeTree Inc. | |
| 222 | +c/o DLA Piper US LLP | |
| 223 | +2000 University Avenue | |
| 224 | +East Palo Alto, CA 94303 | |
| 225 | +Phone: +1 415.200.0225 | |
| 226 | +GENERAL | |
| 227 | +This Agreement is binding on the Company as well as its employees, employers, contractors and | |
| 228 | +agents, and on any successors and assignees. Neither the Software nor any information derived | |
| 229 | +therefrom may be exported except in accordance with the laws of the State of Delaware or other | |
| 230 | +applicable provisions. This Agreement is governed by the laws of the State of Delaware. This | |
| 231 | +Agreement is the entire agreement between KT and the Company and the Company agrees that KT will | |
| 232 | +not have any liability for any untrue statement or representation made by it, its agents or anyone else | |
| 233 | +(whether innocently or negligently) upon which the Company relied upon entering this Agreement, | |
| 234 | +unless such untrue statement or representation was made fraudulently. This Agreement supersedes any | |
| 235 | +other understandings or agreements, including, but not limited to, advertising, with respect to the | |
| 236 | +Software. If any provision of this Agreement is deemed invalid or unenforceable by any country or | |
| 237 | +government agency having jurisdiction, that particular provision will be deemed modified to the extent | |
| 238 | +necessary to make the provision valid and enforceable, and the remaining provisions will remain in full | |
| 239 | +force and effect. The original of this Agreement has been written in English, and that version will | |
| 240 | +govern. Les parties aux présentes confirment leur volonté que cette convention, de même que tous les | |
| 241 | +documents, y compris tout avis, qui s′y rattachent, soient rédigés en langue anglaise. | |
| 242 | +</textarea> | |
| 243 | +<div class="agree"> | |
| 244 | + <input type="radio" name="license" value="1" checked="checked"/>I accept the agreement | |
| 245 | + <br/> | |
| 246 | + <input type="radio" name="license" value="0"/>I do not accept the agreement | |
| 247 | +</div> | |
| 248 | +<div class="errors"> | |
| 249 | + <?php if(isset($errors)) { | |
| 250 | + foreach($errors as $k=>$e) { | |
| 251 | + echo $e; | |
| 252 | + } | |
| 253 | + }?> | |
| 254 | +</div> | |
| 255 | +<div class="buttons"> | |
| 256 | + <input type="submit" name="Previous" value="Previous"/> | |
| 257 | + <input type="submit" name="Next" value="Next"/> | |
| 258 | +</div> | |
| 259 | +</div> | |
| 260 | +</form> | |
| 0 | 261 | \ No newline at end of file | ... | ... |
setup/wizard/templates/welcome.tpl
0 → 100755
| 1 | +<h1>Welcome to the KnowledgeTree Setup Wizard</h1> | |
| 2 | + | |
| 3 | +<p> | |
| 4 | +KnowledgeTreeTM is document management made simple - easily share, track, secure, and manage the documents and records your organization depends on. | |
| 5 | +</p> | |
| 6 | +<p> | |
| 7 | +KnowledgeTree provides an easy-to-use, production-ready, enterprise document management solution for use by corporations, government institutions, medium | |
| 8 | +to small businesses, and many other types of organizations. KnowledgeTree's open source architecture allows organizations to easily customize and | |
| 9 | +integrate the document management system with their existing infrastructure, providing a more flexible, cost-effective alternative to proprietary | |
| 10 | +applications. | |
| 11 | +</p> | |
| 12 | + | |
| 13 | +<form action="index.php?step_name=welcome" method="POST"> | |
| 14 | +<div class="buttons"> | |
| 15 | + <input type="submit" name="Next" value="Next"/> | |
| 16 | +</div> | |
| 17 | +</form> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
setup/wizard/templates/wizard.tpl
0 → 100755
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| 2 | +<html> | |
| 3 | +<head> | |
| 4 | +<link rel="stylesheet" type="text/css" href="resources/wizard.css" /> | |
| 5 | +</head> | |
| 6 | + | |
| 7 | +<body> | |
| 8 | +<div class="container"> | |
| 9 | + <div class="header"> | |
| 10 | + <div class="logo"></div> | |
| 11 | + </div> | |
| 12 | + <div class="content"> | |
| 13 | + | |
| 14 | + <div class="left"> | |
| 15 | + <?php echo $left; ?> | |
| 16 | + </div> | |
| 17 | + <div class="right"> | |
| 18 | + | |
| 19 | + <?php echo $content; ?> | |
| 20 | +<!-- | |
| 21 | + <div class="buttons"> | |
| 22 | + <a href="index.php?step_name=&step=previous" class="next">Previous</a> | |
| 23 | + <a href="index.php?step_name=&step=next" class="next">Next</a> | |
| 24 | + </div> | |
| 25 | + --> | |
| 26 | + </div> | |
| 27 | + </div> | |
| 28 | + <div class="footer"> | |
| 29 | + <div class="powered-by"></div> | |
| 30 | + </div> | |
| 31 | +</div> | |
| 32 | +</body> | |
| 33 | +</html> | |
| 0 | 34 | \ No newline at end of file | ... | ... |