Commit 314ef3eea908502cd9debe4be8a1d8b2d98649ef

Authored by Paul Barrett
2 parents 8bda82d3 69569af4

Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge

setup/wizard/path.php
@@ -69,8 +69,6 @@ @@ -69,8 +69,6 @@
69 define('WIZARD_DIR', $wizard.DS); 69 define('WIZARD_DIR', $wizard.DS);
70 define('WIZARD_LIB', WIZARD_DIR."lib".DS); 70 define('WIZARD_LIB', WIZARD_DIR."lib".DS);
71 define('SERVICE_LIB', WIZARD_LIB."services".DS); 71 define('SERVICE_LIB', WIZARD_LIB."services".DS);
72 - define('SQL_DIR', WIZARD_DIR."sql".DS);  
73 - define('SQL_UPGRADE_DIR', SQL_DIR."upgrades".DS);  
74 define('CONF_DIR', WIZARD_DIR."config".DS); 72 define('CONF_DIR', WIZARD_DIR."config".DS);
75 define('RES_DIR', WIZARD_DIR."resources".DS); 73 define('RES_DIR', WIZARD_DIR."resources".DS);
76 define('STEP_DIR', WIZARD_DIR."steps".DS); 74 define('STEP_DIR', WIZARD_DIR."steps".DS);
@@ -88,6 +86,8 @@ @@ -88,6 +86,8 @@
88 $asys .= $v.DS; 86 $asys .= $v.DS;
89 } 87 }
90 define('SYSTEM_ROOT', $asys); 88 define('SYSTEM_ROOT', $asys);
  89 + define('SQL_DIR', SYSTEM_DIR."sql".DS);
  90 + define('SQL_INSTALL_DIR', SQL_DIR."mysql".DS."install".DS);
91 // Install Type 91 // Install Type
92 preg_match('/Zend/', $sys, $matches); // TODO: Dirty 92 preg_match('/Zend/', $sys, $matches); // TODO: Dirty
93 if($matches) { 93 if($matches) {
setup/wizard/sql/dms.sql deleted
1 --- phpMyAdmin SQL Dump  
2 --- version 3.1.3.1  
3 --- http://www.phpmyadmin.net  
4 ---  
5 --- Host: localhost  
6 --- Generation Time: Sep 22, 2009 at 08:29 AM  
7 --- Server version: 5.1.31  
8 --- PHP Version: 5.2.10  
9 -  
10 -SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";  
11 -  
12 -  
13 -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;  
14 -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;  
15 -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;  
16 -/*!40101 SET NAMES utf8 */;  
17 -  
18 ---  
19 --- Database: `dms_install`  
20 ---  
21 -  
22 --- --------------------------------------------------------  
23 -  
24 ---  
25 --- Table structure for table `active_sessions`  
26 ---  
27 -  
28 -CREATE TABLE IF NOT EXISTS `active_sessions` (  
29 - `id` int(11) NOT NULL AUTO_INCREMENT,  
30 - `user_id` int(11) DEFAULT NULL,  
31 - `session_id` varchar(32) DEFAULT NULL,  
32 - `lastused` datetime DEFAULT NULL,  
33 - `ip` varchar(15) DEFAULT NULL,  
34 - `apptype` varchar(15) NOT NULL DEFAULT 'webapp',  
35 - PRIMARY KEY (`id`),  
36 - KEY `user_id` (`user_id`),  
37 - KEY `session_id` (`session_id`)  
38 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
39 -  
40 ---  
41 --- Dumping data for table `active_sessions`  
42 ---  
43 -  
44 -INSERT INTO `active_sessions` (`id`, `user_id`, `session_id`, `lastused`, `ip`, `apptype`) VALUES  
45 -(4, 1, 'k9fi4rebvrh53he7vkj7g9ujo0', '2009-09-22 08:29:09', '127.0.0.1', 'webapp');  
46 -  
47 --- --------------------------------------------------------  
48 -  
49 ---  
50 --- Table structure for table `archive_restoration_request`  
51 ---  
52 -  
53 -CREATE TABLE IF NOT EXISTS `archive_restoration_request` (  
54 - `id` int(11) NOT NULL AUTO_INCREMENT,  
55 - `document_id` int(11) NOT NULL DEFAULT '0',  
56 - `request_user_id` int(11) NOT NULL DEFAULT '0',  
57 - `admin_user_id` int(11) NOT NULL DEFAULT '0',  
58 - `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
59 - PRIMARY KEY (`id`),  
60 - KEY `document_id` (`document_id`),  
61 - KEY `request_user_id` (`request_user_id`),  
62 - KEY `admin_user_id` (`admin_user_id`)  
63 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
64 -  
65 ---  
66 --- Dumping data for table `archive_restoration_request`  
67 ---  
68 -  
69 -  
70 --- --------------------------------------------------------  
71 -  
72 ---  
73 --- Table structure for table `archiving_settings`  
74 ---  
75 -  
76 -CREATE TABLE IF NOT EXISTS `archiving_settings` (  
77 - `id` int(11) NOT NULL AUTO_INCREMENT,  
78 - `archiving_type_id` int(11) NOT NULL DEFAULT '0',  
79 - `expiration_date` date DEFAULT NULL,  
80 - `document_transaction_id` int(11) DEFAULT NULL,  
81 - `time_period_id` int(11) DEFAULT NULL,  
82 - PRIMARY KEY (`id`),  
83 - KEY `archiving_type_id` (`archiving_type_id`),  
84 - KEY `time_period_id` (`time_period_id`)  
85 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
86 -  
87 ---  
88 --- Dumping data for table `archiving_settings`  
89 ---  
90 -  
91 -  
92 --- --------------------------------------------------------  
93 -  
94 ---  
95 --- Table structure for table `archiving_type_lookup`  
96 ---  
97 -  
98 -CREATE TABLE IF NOT EXISTS `archiving_type_lookup` (  
99 - `id` int(11) NOT NULL AUTO_INCREMENT,  
100 - `name` varchar(100) DEFAULT NULL,  
101 - PRIMARY KEY (`id`)  
102 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
103 -  
104 ---  
105 --- Dumping data for table `archiving_type_lookup`  
106 ---  
107 -  
108 -INSERT INTO `archiving_type_lookup` (`id`, `name`) VALUES  
109 -(1, 'Date'),  
110 -(2, 'Utilisation');  
111 -  
112 --- --------------------------------------------------------  
113 -  
114 ---  
115 --- Table structure for table `authentication_sources`  
116 ---  
117 -  
118 -CREATE TABLE IF NOT EXISTS `authentication_sources` (  
119 - `id` int(11) NOT NULL AUTO_INCREMENT,  
120 - `name` varchar(50) NOT NULL,  
121 - `namespace` varchar(255) NOT NULL DEFAULT '',  
122 - `authentication_provider` varchar(255) NOT NULL DEFAULT '',  
123 - `config` mediumtext NOT NULL,  
124 - `is_user_source` tinyint(1) NOT NULL DEFAULT '0',  
125 - `is_group_source` tinyint(1) NOT NULL DEFAULT '0',  
126 - PRIMARY KEY (`id`),  
127 - KEY `namespace` (`namespace`)  
128 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
129 -  
130 ---  
131 --- Dumping data for table `authentication_sources`  
132 ---  
133 -  
134 -  
135 --- --------------------------------------------------------  
136 -  
137 ---  
138 --- Table structure for table `baobab_keys`  
139 ---  
140 -  
141 -CREATE TABLE IF NOT EXISTS `baobab_keys` (  
142 - `id` int(11) NOT NULL AUTO_INCREMENT,  
143 - `key_data` blob NOT NULL,  
144 - `signature` blob NOT NULL,  
145 - `licenses` int(11) NOT NULL,  
146 - `expiry_date` datetime NOT NULL,  
147 - `license_id` varchar(50) NOT NULL,  
148 - `company_name` varchar(255) NOT NULL,  
149 - `tier` enum('community','evaluation','basic','plus','premium') NOT NULL DEFAULT 'community',  
150 - PRIMARY KEY (`id`)  
151 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
152 -  
153 ---  
154 --- Dumping data for table `baobab_keys`  
155 ---  
156 -  
157 -  
158 --- --------------------------------------------------------  
159 -  
160 ---  
161 --- Table structure for table `baobab_scan`  
162 ---  
163 -  
164 -CREATE TABLE IF NOT EXISTS `baobab_scan` (  
165 - `checkdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
166 - `verify` int(11) NOT NULL DEFAULT '0'  
167 -) ENGINE=InnoDB DEFAULT CHARSET=latin1;  
168 -  
169 ---  
170 --- Dumping data for table `baobab_scan`  
171 ---  
172 -  
173 -INSERT INTO `baobab_scan` (`checkdate`, `verify`) VALUES  
174 -('1981-01-01 00:00:00', 0);  
175 -  
176 --- --------------------------------------------------------  
177 -  
178 ---  
179 --- Table structure for table `baobab_user_keys`  
180 ---  
181 -  
182 -CREATE TABLE IF NOT EXISTS `baobab_user_keys` (  
183 - `id` int(11) NOT NULL AUTO_INCREMENT,  
184 - `user_id` int(11) NOT NULL,  
185 - `key_id` int(11) NOT NULL,  
186 - PRIMARY KEY (`id`),  
187 - KEY `user_id` (`user_id`),  
188 - KEY `key_id` (`key_id`)  
189 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
190 -  
191 ---  
192 --- Dumping data for table `baobab_user_keys`  
193 ---  
194 -  
195 -  
196 --- --------------------------------------------------------  
197 -  
198 ---  
199 --- Table structure for table `column_entries`  
200 ---  
201 -  
202 -CREATE TABLE IF NOT EXISTS `column_entries` (  
203 - `id` int(11) NOT NULL AUTO_INCREMENT,  
204 - `column_namespace` varchar(255) NOT NULL DEFAULT '',  
205 - `view_namespace` varchar(255) NOT NULL DEFAULT '',  
206 - `config_array` text NOT NULL,  
207 - `position` int(11) NOT NULL DEFAULT '0',  
208 - `required` tinyint(1) NOT NULL DEFAULT '0',  
209 - PRIMARY KEY (`id`),  
210 - KEY `view_namespace` (`view_namespace`)  
211 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
212 -  
213 ---  
214 --- Dumping data for table `column_entries`  
215 ---  
216 -  
217 -INSERT INTO `column_entries` (`id`, `column_namespace`, `view_namespace`, `config_array`, `position`, `required`) VALUES  
218 -(1, 'ktcore.columns.selection', 'ktcore.views.browse', '', 0, 1),  
219 -(2, 'ktcore.columns.title', 'ktcore.views.browse', '', 1, 1),  
220 -(3, 'ktcore.columns.download', 'ktcore.views.browse', '', 2, 0),  
221 -(4, 'ktcore.columns.creationdate', 'ktcore.views.browse', '', 3, 0),  
222 -(5, 'ktcore.columns.modificationdate', 'ktcore.views.browse', '', 4, 0),  
223 -(6, 'ktcore.columns.creator', 'ktcore.views.browse', '', 5, 0),  
224 -(7, 'ktcore.columns.workflow_state', 'ktcore.views.browse', '', 6, 0),  
225 -(8, 'ktcore.columns.selection', 'ktcore.views.search', '', 0, 1),  
226 -(9, 'ktcore.columns.title', 'ktcore.views.search', '', 1, 1),  
227 -(10, 'ktcore.columns.download', 'ktcore.views.search', '', 2, 0),  
228 -(11, 'ktcore.columns.creationdate', 'ktcore.views.search', '', 3, 0),  
229 -(12, 'ktcore.columns.modificationdate', 'ktcore.views.search', '', 4, 0),  
230 -(13, 'ktcore.columns.creator', 'ktcore.views.search', '', 5, 0),  
231 -(14, 'ktcore.columns.workflow_state', 'ktcore.views.search', '', 6, 0),  
232 -(15, 'ktcore.columns.preview', 'ktcore.views.browse', 'a:0:{}', 2, 0);  
233 -  
234 --- --------------------------------------------------------  
235 -  
236 ---  
237 --- Table structure for table `comment_searchable_text`  
238 ---  
239 -  
240 -CREATE TABLE IF NOT EXISTS `comment_searchable_text` (  
241 - `comment_id` int(11) NOT NULL DEFAULT '0',  
242 - `body` mediumtext,  
243 - `document_id` int(11) NOT NULL DEFAULT '0',  
244 - PRIMARY KEY (`comment_id`),  
245 - KEY `document_id` (`document_id`),  
246 - FULLTEXT KEY `body` (`body`)  
247 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
248 -  
249 ---  
250 --- Dumping data for table `comment_searchable_text`  
251 ---  
252 -  
253 -  
254 --- --------------------------------------------------------  
255 -  
256 ---  
257 --- Table structure for table `config_groups`  
258 ---  
259 -  
260 -CREATE TABLE IF NOT EXISTS `config_groups` (  
261 - `id` int(255) unsigned NOT NULL AUTO_INCREMENT,  
262 - `name` varchar(255) NOT NULL,  
263 - `display_name` varchar(255) DEFAULT NULL,  
264 - `description` mediumtext,  
265 - `category` varchar(255) DEFAULT NULL,  
266 - PRIMARY KEY (`id`),  
267 - UNIQUE KEY `name` (`name`)  
268 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
269 -  
270 ---  
271 --- Dumping data for table `config_groups`  
272 ---  
273 -  
274 -INSERT INTO `config_groups` (`id`, `name`, `display_name`, `description`, `category`) VALUES  
275 -(1, 'browse', 'Browse View', 'Configurable options for working in Browse View', 'User Interface Settings'),  
276 -(2, 'cache', 'Cache', 'Configure settings for the KnowledgeTree cache. Only advanced users should change these settings.', 'General Settings'),  
277 -(3, 'CustomErrorMessages', 'Custom Error Messages', 'Configuration settings for custom error messages. Only advanced users should change these settings.', 'User Interface Settings'),  
278 -(4, 'dashboard', 'Dashboard', 'Configures Dashboard Settings', 'General Settings'),  
279 -(5, 'DiskUsage', 'Disk Usage Dashlet', 'Configures the Disk Usage dashlet ', 'General Settings'),  
280 -(6, 'email', 'Email', 'Enables Email on your KnowledgeTree installation and configures Email settings. Note that several KnowledgeTree features use these settings. ', 'Email Settings'),  
281 -(7, 'export', 'Export', 'Configures KnowledgeTree''s ''Bulk Export'' feature.', 'General Settings'),  
282 -(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'),  
283 -(9, 'i18n', 'Internationalization', 'Configures settings for Internationalization.', 'Internationalisation Settings'),  
284 -(10, 'import', 'Import', 'Configures settings on Bulk Import.', 'General Settings'),  
285 -(11, 'indexer', 'Document Indexer', 'Configures the Document Indexer. Only advanced users should change these settings.', 'Search and Indexing Settings'),  
286 -(12, 'KnowledgeTree', 'KnowledgeTree', 'Configures general settings for your KnowledgeTree server installation.', 'General Settings'),  
287 -(13, 'KTWebDAVSettings', 'WebDAV', 'Configuration options for third-party WebDAV clients', 'Client Tools Settings'),  
288 -(14, 'openoffice', 'OpenOffice.org Service', 'Configuration options for the OpenOffice.org service. Note that several KnowledgeTree features use this service.', 'Search and Indexing Settings'),  
289 -(15, 'search', 'Search', 'Configures settings for KnowledgeTree''s Search function.', 'Search and Indexing Settings'),  
290 -(16, 'session', 'Session Management', 'Session management configuration.', 'General Settings'),  
291 -(17, 'storage', 'Storage', 'Configure the KnowledgeTree storage manager.', 'General Settings'),  
292 -(18, 'tweaks', 'Tweaks', 'Small configuration tweaks', 'General Settings'),  
293 -(19, 'ui', 'User Interface', 'General user interface configuration', 'User Interface Settings'),  
294 -(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'),  
295 -(21, 'user_prefs', 'User Preferences', 'Configures user preferences.', 'General Settings'),  
296 -(22, 'webservice', 'Web Services', 'KnowledgeTree Web Service Interface configuration. Note that a number of KnowledgeTree Tools rely on this service.', 'Client Tools Settings'),  
297 -(23, 'ldapAuthentication', 'LDAP Authentication', 'Configures LDAP Authentication', 'General Settings'),  
298 -(24, 'server', 'Server Settings', 'Configuration settings for the server', 'General Settings'),  
299 -(25, 'addInPolicies', 'Office Add-In Policies', 'Configure Central Polices for KnowledgeTree Office Add-In', 'Office Add-In Settings'),  
300 -(26, 'BaobabSettings', 'KnowledgeTree Tools Settings', 'KnowledgeTree Tools Server Configuration', 'Client Tools Settings'),  
301 -(27, 'clientToolPolicies', 'Client Tools Policies', 'Configure Central Polices for KnowledgeTree Tools', 'Client Tools Settings'),  
302 -(28, 'guidInserter', 'GUID Inserter', 'Configuration settings for GUID Inserter', 'General Settings'),  
303 -(29, 'e_signatures', 'Electronic Signatures', 'Configuration settings for the electronic signatures', 'Security Settings');  
304 -  
305 --- --------------------------------------------------------  
306 -  
307 ---  
308 --- Table structure for table `config_settings`  
309 ---  
310 -  
311 -CREATE TABLE IF NOT EXISTS `config_settings` (  
312 - `id` int(11) NOT NULL AUTO_INCREMENT,  
313 - `group_name` varchar(255) NOT NULL,  
314 - `display_name` varchar(255) DEFAULT NULL,  
315 - `description` mediumtext,  
316 - `item` varchar(255) NOT NULL,  
317 - `value` varchar(255) NOT NULL DEFAULT 'default',  
318 - `default_value` varchar(255) NOT NULL,  
319 - `type` enum('boolean','string','numeric_string','numeric','radio','dropdown') DEFAULT 'string',  
320 - `options` mediumtext,  
321 - `can_edit` tinyint(1) NOT NULL DEFAULT '1',  
322 - PRIMARY KEY (`id`)  
323 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
324 -  
325 ---  
326 --- Dumping data for table `config_settings`  
327 ---  
328 -  
329 -INSERT INTO `config_settings` (`id`, `group_name`, `display_name`, `description`, `item`, `value`, `default_value`, `type`, `options`, `can_edit`) VALUES  
330 -(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),  
331 -(2, 'KnowledgeTree', 'Scheduler Interval', 'Defines the frequency, in seconds, at which the Scheduler is set to run.', 'schedulerInterval', 'default', '30', 'numeric_string', NULL, 1),  
332 -(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),  
333 -(4, 'urls', 'Graphics Url', 'The path to the user interface graphics.', 'graphicsUrl', 'default', '${rootUrl}/graphics', 'string', NULL, 1),  
334 -(5, 'urls', 'User Interface Url', 'The path to the core user interface libraries.', 'uiUrl', 'default', '${rootUrl}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1),  
335 -(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),  
336 -(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),  
337 -(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),  
338 -(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),  
339 -(10, 'email', 'Email Server', 'The address of the SMTP server. If the host name fails, try the IP address.', 'emailServer', 'none', 'none', '', NULL, 1),  
340 -(11, 'email', 'Email Port', 'The port of the SMTP server. The default is 25.', 'emailPort', 'default', '', 'numeric_string', NULL, 1),  
341 -(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),  
342 -(13, 'email', 'Email Username', 'The user name of the SMTP (email) server.', 'emailUsername', 'default', 'username', 'string', NULL, 1),  
343 -(14, 'email', 'Email Password', 'The password for the Email server. ', 'emailPassword', 'default', 'password', 'string', NULL, 1),  
344 -(15, 'email', 'Email From', 'Defines the sending email address for emails sent from KnowledgeTree.', 'emailFrom', 'default', 'kt@example.org', 'string', NULL, 1),  
345 -(16, 'email', 'Email From Name', 'The name used by KnowledgeTree for system-generated emails.', 'emailFromName', 'default', 'KnowledgeTree Document Management System', 'string', NULL, 1),  
346 -(17, 'email', 'Allow Attachment', 'Defines whether to allow users to send attachments from within KnowledgeTree. Default is ''False''.', 'allowAttachment', 'default', 'false', 'boolean', NULL, 1),  
347 -(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),  
348 -(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),  
349 -(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),  
350 -(21, 'user_prefs', 'Password Length', 'Defines the minimum password length on password-setting. ', 'passwordLength', 'default', '6', 'numeric_string', NULL, 1),  
351 -(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),  
352 -(23, 'user_prefs', 'Restrict Preferences', 'Defines whether to restrict users from accessing the Preferences menu. Default is ''False''.', 'restrictPreferences', 'default', 'false', 'boolean', NULL, 1),  
353 -(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),  
354 -(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),  
355 -(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),  
356 -(27, 'ui', 'Company Logo Width', 'Defines the width, in pixels, of your custom logo.', 'companyLogoWidth', 'default', '313px', 'string', NULL, 1),  
357 -(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),  
358 -(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),  
359 -(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),  
360 -(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),  
361 -(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),  
362 -(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),  
363 -(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),  
364 -(35, 'externalBinary', 'xls2csv', 'Path to binary', 'xls2csv', 'default', 'xls2csv', 'string', NULL, 1),  
365 -(36, 'externalBinary', 'pdftotext', 'Path to binary', 'pdftotext', 'default', 'pdftotext', 'string', NULL, 1),  
366 -(37, 'externalBinary', 'catppt', 'Path to binary', 'catppt', 'default', 'catppt', 'string', NULL, 1),  
367 -(38, 'externalBinary', 'pstotext', 'Path to binary', 'pstotext', 'default', 'pstotext', 'string', NULL, 1),  
368 -(39, 'externalBinary', 'catdoc', 'Path to binary', 'catdoc', 'default', 'catdoc', 'string', NULL, 1),  
369 -(40, 'externalBinary', 'antiword', 'Path to binary', 'antiword', 'default', 'antiword', 'string', NULL, 1),  
370 -(41, 'externalBinary', 'python', 'Path to binary', 'python', 'default', 'python', 'string', NULL, 1),  
371 -(42, 'externalBinary', 'java', 'Path to binary', 'java', 'default', 'java', 'string', NULL, 1),  
372 -(43, 'externalBinary', 'php', 'Path to binary', 'php', 'default', 'php', 'string', NULL, 1),  
373 -(44, 'externalBinary', 'df', 'Path to binary', 'df', 'default', 'df', 'string', NULL, 1),  
374 -(45, 'cache', 'Proxy Cache Path', 'The path to the proxy cache. Default is <var directory>/cache.', 'proxyCacheDirectory', 'default', '${varDirectory}/proxies', 'string', NULL, 1),  
375 -(46, 'cache', 'Proxy Cache Enabled', 'Enables proxy caching. Default is ''True''. ', 'proxyCacheEnabled', 'default', 'true', 'boolean', NULL, 1),  
376 -(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),  
377 -(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),  
378 -(49, 'search', 'Search Base', 'The location of the Search and Indexing libraries.', 'searchBasePath', 'default', '${fileSystemRoot}/search2', 'string', NULL, 0),  
379 -(50, 'search', 'Fields Path', 'The location of the Search and Indexing fields.', 'fieldsPath', 'default', '${searchBasePath}/search/fields', 'string', NULL, 0),  
380 -(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),  
381 -(52, 'search', 'Results per Page', 'The number of results to display per page.', 'resultsPerPage', 'default', '25', 'numeric_string', NULL, 1),  
382 -(53, 'search', 'Date Format', 'The date format used when making queries using widgets.', 'dateFormat', 'default', 'Y-m-d', 'string', NULL, 0),  
383 -(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),  
384 -(55, 'indexer', 'Core Class', 'Defines the core indexing class. Options include: JavaXMLRPCLuceneIndexer or PHPLuceneIndexer.', 'coreClass', 'default', 'JavaXMLRPCLuceneIndexer', 'string', NULL, 0),  
385 -(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),  
386 -(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),  
387 -(58, 'indexer', 'Indexing Base ', 'The location of the Indexing engine.', 'indexingBasePath', 'default', '${searchBasePath}/indexing', 'string', NULL, 0),  
388 -(59, 'indexer', 'Lucene Directory', 'The location of the Lucene indexes.', 'luceneDirectory', 'default', '${varDirectory}/indexes', 'string', NULL, 0),  
389 -(60, 'indexer', 'Extractors ', 'The location of the text extractors.', 'extractorPath', 'default', '${indexingBasePath}/extractors', 'string', NULL, 0),  
390 -(61, 'indexer', 'Extractor Hook ', 'The location of the extractor hooks.', 'extractorHookPath', 'default', '${indexingBasePath}/extractorHooks', 'string', NULL, 0),  
391 -(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),  
392 -(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),  
393 -(64, 'openoffice', 'Port', 'Defines the port on which OpenOffice listens. ', 'port', 'default', '8100', 'numeric_string', NULL, 1),  
394 -(65, 'webservice', 'Upload Directory', 'Directory to which all uploads via webservices are persisted before moving into the repository.', 'uploadDirectory', '/var/www/installers/knowledgetree/var/uploads', '${varDirectory}/uploads', 'string', NULL, 1),  
395 -(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),  
396 -(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),  
397 -(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),  
398 -(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),  
399 -(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),  
400 -(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),  
401 -(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),  
402 -(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),  
403 -(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),  
404 -(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),  
405 -(76, 'i18n', 'Default Language', 'Defines the default language for the KnowledgeTree user interface. The default is English (en).', 'defaultLanguage', 'default', 'en', 'string', NULL, 1),  
406 -(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),  
407 -(78, 'CustomErrorMessages', 'Custom Error Page Path', 'The file name or URL of the custom error page.', 'customerrorpagepath', 'default', 'customerrorpage.php', 'string', NULL, 1),  
408 -(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),  
409 -(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),  
410 -(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),  
411 -(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),  
412 -(83, 'storage', 'Manager', 'Defines the storage manager to use for storing documents on the file system. ', 'manager', 'default', 'KTOnDiskHashedStorageManager', 'string', NULL, 1),  
413 -(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),  
414 -(85, 'ui', 'Automatic Refresh', 'Set to true to automatically refresh the page after the session would have expired.', 'automaticRefresh', 'default', 'false', 'boolean', NULL, 1),  
415 -(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),  
416 -(87, 'urls', 'Log Directory', 'The path to the Log directory.', 'logDirectory', '/var/www/installers/knowledgetree/var/log', '${varDirectory}/log', 'string', NULL, 1),  
417 -(88, 'urls', 'UI Directory', 'The path to the UI directory.', 'uiDirectory', 'default', '${fileSystemRoot}/presentation/lookAndFeel/knowledgeTree', 'string', NULL, 1),  
418 -(89, 'urls', 'Temp Directory', 'The path to the temp directory.', 'tmpDirectory', '/var/www/installers/knowledgetree/var/tmp', '${varDirectory}/tmp', 'string', NULL, 1),  
419 -(90, 'urls', 'Stopwords File', 'The path to the stopword file.', 'stopwordsFile', 'default', '${fileSystemRoot}/config/stopwords.txt', 'string', NULL, 1),  
420 -(91, 'cache', 'Cache Enabled', 'Enables the KnowledgeTree cache. Default is ''False''.', 'cacheEnabled', 'default', 'false', 'boolean', NULL, 1),  
421 -(92, 'cache', 'Cache Directory', 'The location of the KnowledgeTree cache.', 'cacheDirectory', 'default', '${varDirectory}/cache', 'string', NULL, 1),  
422 -(93, 'openoffice', 'Program Path', 'Defines the path to the OpenOffice program directory. ', 'programPath', 'default', '../openoffice/program', 'string', NULL, 1),  
423 -(94, 'urls', 'Document Directory', 'The path to the documents directory', 'documentRoot', '/var/www/installers/knowledgetree/var/Documents', '${varDirectory}/Documents', 'string', NULL, 1),  
424 -(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),  
425 -(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),  
426 -(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),  
427 -(98, 'ldapAuthentication', 'Create Groups Automatically', 'Defines whether to allow LDAP groups to be created automatically. Default is ''False''.', 'autoGroupCreation', 'default', 'false', 'boolean', 'string', 1),  
428 -(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),  
429 -(100, 'import', 'Disable Bulk Import', 'Disable the bulk import plugin', 'disableBulkImport', 'default', 'false', 'string', NULL, 1),  
430 -(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),  
431 -(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),  
432 -(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),  
433 -(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),  
434 -(105, 'search', 'Maximum results from SQL query', 'The maximum results from an SQL query', 'maxSqlResults', 'default', '10000', 'numeric_string', NULL, 1),  
435 -(106, 'indexer', 'Enable the Document Indexer', 'Enables the indexing of document content for full text searching.', 'enableIndexing', 'default', 'true', 'boolean', NULL, 1),  
436 -(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),  
437 -(108, 'server', 'Internal Server port', 'The internal port for the server.', 'internal_server_port', 'default', '80', 'numeric_string', NULL, 1),  
438 -(109, 'server', 'External Server IP', 'The external IP for the server.', 'server_name', '127.0.0.1', '', 'string', NULL, 1),  
439 -(110, 'server', 'External Server port', 'The external port for the server.', 'server_port', '80', '', 'numeric_string', NULL, 1),  
440 -(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', '/installers/knowledgetree', '', 'string', NULL, 1),  
441 -(112, 'urls', 'Var Directory', 'The path to the var directory.', 'varDirectory', '/var/www/installers/knowledgetree/var', '${fileSystemRoot}/var', 'string', NULL, 1),  
442 -(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),  
443 -(114, 'ui', 'System URL', 'The system url, used in the main logo.', 'systemUrl', 'default', 'http://www.knowledgetree.com', 'string', '', 1),  
444 -(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),  
445 -(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),  
446 -(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),  
447 -(118, 'urls', 'PDF Directoy', 'The path for storing the generated PDF Documents', 'pdfDirectory', 'default', '${varDirectory}/Pdf', 'string', '', 1),  
448 -(119, 'addInPolicies', 'Capture Reasons: Check in', 'Defines whether a reason is required on ''check in'' action in KnowledgeTree Office Add-In for Windows. Default is ''True''.', 'captureReasonsCheckin', 'true', 'true', 'boolean', NULL, 1),  
449 -(120, 'addInPolicies', 'Capture Reasons: Check-out', 'Defines whether a reason is required on ''check-out'' action in KnowledgeTree Office Add-In for Windows. Default is ''True''.', 'captureReasonsCheckout', 'true', 'true', 'boolean', NULL, 1),  
450 -(121, 'addInPolicies', 'Allow: Remember Session', 'Defines whether passwords may be stored on the client. Default is ''True''.', 'allowRememberPassword', 'true', 'true', 'boolean', NULL, 1),  
451 -(122, 'BaobabSettings', 'Debug', 'Switch debug output to ''on'' only if you must view ''all'' debugging information. 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),  
452 -(123, 'BaobabSettings', 'Safemode', 'To allow write access to WebDAV clients, set safe mode to ''off''. 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),  
453 -(124, 'clientToolPolicies', 'Explorer: Metadata Capture', 'Defines whether the client is prompted for metadata when adding a document through KnowledgeTree Explorer. Default is ''True''.', 'explorerMetadataCapture', 'true', 'true', 'boolean', NULL, 1),  
454 -(125, 'clientToolPolicies', 'Office: Metadata Capture', 'Defines whether the client is prompted for metadata when adding a document to KnowledgeTree from within Microsoft Office. Default is ''True''.', 'officeMetadataCapture', 'true', 'true', 'boolean', NULL, 1),  
455 -(126, 'clientToolPolicies', 'Capture Reasons: Delete', 'Defines whether a reason is required on ''delete'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsDelete', 'true', 'true', 'boolean', NULL, 1),  
456 -(127, 'clientToolPolicies', 'Capture Reasons: Check in', 'Defines whether a reason is required on ''check in'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsCheckin', 'true', 'true', 'boolean', NULL, 1),  
457 -(128, 'clientToolPolicies', 'Capture Reasons: Check-out', 'Defines whether a reason is required on ''check-out'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsCheckout', 'true', 'true', 'boolean', NULL, 1),  
458 -(129, 'clientToolPolicies', 'Capture Reasons: Cancel Check-out', 'Defines whether a reason is required on ''cancel check-out'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsCancelCheckout', 'true', 'true', 'boolean', NULL, 1),  
459 -(130, 'clientToolPolicies', 'Capture Reasons: Copy', 'Defines whether a reason is required on ''copy'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsCopyInKT', 'true', 'true', 'boolean', NULL, 1),  
460 -(131, 'clientToolPolicies', 'Capture Reasons: Move', 'Defines whether a reason is required on ''move'' action in KnowledgeTree Client Tools for Windows. Default is ''True''.', 'captureReasonsMoveInKT', 'true', 'true', 'boolean', NULL, 1),  
461 -(132, 'clientToolPolicies', 'Allow Remember Password', 'Defines whether passwords may be stored on the client. Default is ''True''.', 'allowRememberPassword', 'true', 'true', 'boolean', NULL, 1),  
462 -(133, 'guidInserter', 'Backup latest content version', 'Defines whether to backup latest content version prior to GUID Insert', 'doBackup', 'default', 'true', 'boolean', NULL, 1),  
463 -(134, 'e_signatures', 'Enable Electronic Signatures', 'Enables the electronic signature functionality on write actions.', 'enableESignatures', 'default', 'false', 'boolean', '', 1),  
464 -(135, 'e_signatures', 'Enable Administrative Electronic Signature', 'Enables the electronic signature functionality for accessing the Administrative section.', 'enableAdminSignatures', 'default', 'false', 'boolean', '', 1),  
465 -(136, 'e_signatures', 'Enable API Electronic Signatures', 'Enables the electronic signature functionality in the API and for all client tools.', 'enableApiSignatures', 'default', 'false', 'boolean', '', 1),  
466 -(137, 'e_signatures', 'Set Time Interval for Administrative Electronic Signature', 'Sets the time-interval (in seconds) before re-authentication is required in the administrative section', 'adminSignatureTime', 'default', '600', 'numeric_string', '', 1),  
467 -(138, 'urls', 'PDF Directoy', 'The path for storing the generated PDF Documents', 'pdfDirectory', 'default', '${varDirectory}/Pdf', 'string', '', 1);  
468 -  
469 --- --------------------------------------------------------  
470 -  
471 ---  
472 --- Table structure for table `custom_sequences`  
473 ---  
474 -  
475 -CREATE TABLE IF NOT EXISTS `custom_sequences` (  
476 - `token` varchar(100) NOT NULL,  
477 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
478 - `seq_no` int(11) DEFAULT '0',  
479 - `reset_frequency` enum('monthly','yearly','never') DEFAULT 'never',  
480 - `last_reset` date DEFAULT NULL,  
481 - PRIMARY KEY (`token`,`document_type_id`)  
482 -) ENGINE=MyISAM DEFAULT CHARSET=latin1;  
483 -  
484 ---  
485 --- Dumping data for table `custom_sequences`  
486 ---  
487 -  
488 -  
489 --- --------------------------------------------------------  
490 -  
491 ---  
492 --- Table structure for table `dashlet_disables`  
493 ---  
494 -  
495 -CREATE TABLE IF NOT EXISTS `dashlet_disables` (  
496 - `id` int(11) NOT NULL AUTO_INCREMENT,  
497 - `user_id` int(11) NOT NULL DEFAULT '0',  
498 - `dashlet_namespace` varchar(255) NOT NULL DEFAULT '',  
499 - PRIMARY KEY (`id`),  
500 - KEY `user_id` (`user_id`),  
501 - KEY `dashlet_namespace` (`dashlet_namespace`)  
502 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
503 -  
504 ---  
505 --- Dumping data for table `dashlet_disables`  
506 ---  
507 -  
508 -  
509 --- --------------------------------------------------------  
510 -  
511 ---  
512 --- Table structure for table `data_types`  
513 ---  
514 -  
515 -CREATE TABLE IF NOT EXISTS `data_types` (  
516 - `id` int(11) NOT NULL AUTO_INCREMENT,  
517 - `name` varchar(255) NOT NULL,  
518 - PRIMARY KEY (`id`)  
519 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
520 -  
521 ---  
522 --- Dumping data for table `data_types`  
523 ---  
524 -  
525 -INSERT INTO `data_types` (`id`, `name`) VALUES  
526 -(1, 'STRING'),  
527 -(2, 'CHAR'),  
528 -(3, 'TEXT'),  
529 -(4, 'INT'),  
530 -(5, 'FLOAT'),  
531 -(6, 'LARGE TEXT'),  
532 -(7, 'DATE');  
533 -  
534 --- --------------------------------------------------------  
535 -  
536 ---  
537 --- Table structure for table `discussion_comments`  
538 ---  
539 -  
540 -CREATE TABLE IF NOT EXISTS `discussion_comments` (  
541 - `id` int(11) NOT NULL AUTO_INCREMENT,  
542 - `thread_id` int(11) NOT NULL DEFAULT '0',  
543 - `in_reply_to` int(11) DEFAULT NULL,  
544 - `user_id` int(11) NOT NULL DEFAULT '0',  
545 - `subject` mediumtext,  
546 - `body` mediumtext,  
547 - `date` datetime DEFAULT NULL,  
548 - PRIMARY KEY (`id`),  
549 - KEY `thread_id` (`thread_id`),  
550 - KEY `user_id` (`user_id`),  
551 - KEY `in_reply_to` (`in_reply_to`)  
552 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
553 -  
554 ---  
555 --- Dumping data for table `discussion_comments`  
556 ---  
557 -  
558 -  
559 --- --------------------------------------------------------  
560 -  
561 ---  
562 --- Table structure for table `discussion_threads`  
563 ---  
564 -  
565 -CREATE TABLE IF NOT EXISTS `discussion_threads` (  
566 - `id` int(11) NOT NULL AUTO_INCREMENT,  
567 - `document_id` int(11) NOT NULL,  
568 - `first_comment_id` int(11) DEFAULT NULL,  
569 - `last_comment_id` int(11) DEFAULT NULL,  
570 - `views` int(11) NOT NULL DEFAULT '0',  
571 - `replies` int(11) NOT NULL DEFAULT '0',  
572 - `creator_id` int(11) NOT NULL,  
573 - `close_reason` mediumtext NOT NULL,  
574 - `close_metadata_version` int(11) NOT NULL DEFAULT '0',  
575 - `state` int(1) NOT NULL DEFAULT '0',  
576 - PRIMARY KEY (`id`),  
577 - KEY `document_id` (`document_id`),  
578 - KEY `first_comment_id` (`first_comment_id`),  
579 - KEY `last_comment_id` (`last_comment_id`),  
580 - KEY `creator_id` (`creator_id`)  
581 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
582 -  
583 ---  
584 --- Dumping data for table `discussion_threads`  
585 ---  
586 -  
587 -  
588 --- --------------------------------------------------------  
589 -  
590 ---  
591 --- Table structure for table `documents`  
592 ---  
593 -  
594 -CREATE TABLE IF NOT EXISTS `documents` (  
595 - `id` int(11) NOT NULL AUTO_INCREMENT,  
596 - `creator_id` int(11) DEFAULT NULL,  
597 - `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
598 - `folder_id` int(11) DEFAULT NULL,  
599 - `is_checked_out` tinyint(1) NOT NULL DEFAULT '0',  
600 - `parent_folder_ids` mediumtext,  
601 - `full_path` mediumtext,  
602 - `checked_out_user_id` int(11) DEFAULT NULL,  
603 - `status_id` int(11) DEFAULT NULL,  
604 - `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
605 - `permission_object_id` int(11) DEFAULT NULL,  
606 - `permission_lookup_id` int(11) DEFAULT NULL,  
607 - `metadata_version` int(11) NOT NULL DEFAULT '0',  
608 - `modified_user_id` int(11) DEFAULT NULL,  
609 - `metadata_version_id` int(11) DEFAULT NULL,  
610 - `owner_id` int(11) DEFAULT NULL,  
611 - `immutable` tinyint(1) NOT NULL DEFAULT '0',  
612 - `restore_folder_id` int(11) DEFAULT NULL,  
613 - `restore_folder_path` text,  
614 - `checkedout` datetime DEFAULT NULL,  
615 - `oem_no` varchar(255) DEFAULT NULL,  
616 - `linked_document_id` int(11) DEFAULT NULL,  
617 - `guid` varchar(60) DEFAULT NULL,  
618 - PRIMARY KEY (`id`),  
619 - KEY `creator_id` (`creator_id`),  
620 - KEY `folder_id` (`folder_id`),  
621 - KEY `checked_out_user_id` (`checked_out_user_id`),  
622 - KEY `status_id` (`status_id`),  
623 - KEY `permission_object_id` (`permission_object_id`),  
624 - KEY `permission_lookup_id` (`permission_lookup_id`),  
625 - KEY `modified_user_id` (`modified_user_id`),  
626 - KEY `metadata_version_id` (`metadata_version_id`),  
627 - KEY `created` (`created`),  
628 - KEY `modified` (`modified`),  
629 - KEY `full_path` (`full_path`(255)),  
630 - KEY `immutable` (`immutable`),  
631 - KEY `checkedout` (`checkedout`),  
632 - KEY `oem_no` (`oem_no`)  
633 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
634 -  
635 ---  
636 --- Dumping data for table `documents`  
637 ---  
638 -  
639 -  
640 --- --------------------------------------------------------  
641 -  
642 ---  
643 --- Table structure for table `document_alerts`  
644 ---  
645 -  
646 -CREATE TABLE IF NOT EXISTS `document_alerts` (  
647 - `id` int(11) NOT NULL AUTO_INCREMENT,  
648 - `document_id` int(11) NOT NULL,  
649 - `doc_type_alert_id` int(11) DEFAULT NULL,  
650 - `alert_date` date NOT NULL,  
651 - `last_alert` date DEFAULT NULL,  
652 - `comment` mediumtext NOT NULL,  
653 - `creator_id` int(11) NOT NULL,  
654 - `date_created` datetime NOT NULL,  
655 - `modifier_id` int(11) DEFAULT NULL,  
656 - `date_modified` datetime DEFAULT NULL,  
657 - PRIMARY KEY (`id`),  
658 - KEY `document_id` (`document_id`)  
659 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
660 -  
661 ---  
662 --- Dumping data for table `document_alerts`  
663 ---  
664 -  
665 -  
666 --- --------------------------------------------------------  
667 -  
668 ---  
669 --- Table structure for table `document_alerts_users`  
670 ---  
671 -  
672 -CREATE TABLE IF NOT EXISTS `document_alerts_users` (  
673 - `alert_id` int(11) DEFAULT NULL,  
674 - `type_id` int(11) DEFAULT NULL,  
675 - `member_id` int(11) NOT NULL,  
676 - `member_type` enum('user','group','role') NOT NULL DEFAULT 'user',  
677 - KEY `alert_id` (`alert_id`)  
678 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
679 -  
680 ---  
681 --- Dumping data for table `document_alerts_users`  
682 ---  
683 -  
684 -  
685 --- --------------------------------------------------------  
686 -  
687 ---  
688 --- Table structure for table `document_archiving_link`  
689 ---  
690 -  
691 -CREATE TABLE IF NOT EXISTS `document_archiving_link` (  
692 - `id` int(11) NOT NULL AUTO_INCREMENT,  
693 - `document_id` int(11) NOT NULL DEFAULT '0',  
694 - `archiving_settings_id` int(11) NOT NULL DEFAULT '0',  
695 - PRIMARY KEY (`id`),  
696 - KEY `document_id` (`document_id`),  
697 - KEY `archiving_settings_id` (`archiving_settings_id`)  
698 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
699 -  
700 ---  
701 --- Dumping data for table `document_archiving_link`  
702 ---  
703 -  
704 -  
705 --- --------------------------------------------------------  
706 -  
707 ---  
708 --- Table structure for table `document_content_version`  
709 ---  
710 -  
711 -CREATE TABLE IF NOT EXISTS `document_content_version` (  
712 - `id` int(11) NOT NULL AUTO_INCREMENT,  
713 - `document_id` int(11) NOT NULL DEFAULT '0',  
714 - `filename` mediumtext NOT NULL,  
715 - `size` bigint(20) NOT NULL DEFAULT '0',  
716 - `mime_id` int(11) DEFAULT '9',  
717 - `major_version` int(11) NOT NULL DEFAULT '0',  
718 - `minor_version` int(11) NOT NULL DEFAULT '0',  
719 - `storage_path` varchar(1024) DEFAULT NULL,  
720 - `md5hash` char(32) DEFAULT NULL,  
721 - PRIMARY KEY (`id`),  
722 - KEY `document_id` (`document_id`),  
723 - KEY `mime_id` (`mime_id`),  
724 - KEY `storage_path` (`storage_path`(255)),  
725 - KEY `filename` (`filename`(255)),  
726 - KEY `size` (`size`)  
727 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
728 -  
729 ---  
730 --- Dumping data for table `document_content_version`  
731 ---  
732 -  
733 -  
734 --- --------------------------------------------------------  
735 -  
736 ---  
737 --- Table structure for table `document_fields`  
738 ---  
739 -  
740 -CREATE TABLE IF NOT EXISTS `document_fields` (  
741 - `id` int(11) NOT NULL AUTO_INCREMENT,  
742 - `name` varchar(255) NOT NULL DEFAULT '',  
743 - `data_type` varchar(100) NOT NULL DEFAULT '',  
744 - `is_generic` tinyint(1) DEFAULT NULL,  
745 - `has_lookup` tinyint(1) DEFAULT NULL,  
746 - `has_lookuptree` tinyint(1) DEFAULT NULL,  
747 - `parent_fieldset` int(11) DEFAULT NULL,  
748 - `is_mandatory` tinyint(1) NOT NULL DEFAULT '0',  
749 - `description` mediumtext NOT NULL,  
750 - `position` int(11) NOT NULL DEFAULT '0',  
751 - `is_html` tinyint(1) DEFAULT NULL,  
752 - `max_length` int(11) DEFAULT NULL,  
753 - `has_inetlookup` tinyint(1) DEFAULT NULL,  
754 - `inetlookup_type` varchar(255) DEFAULT NULL,  
755 - PRIMARY KEY (`id`),  
756 - KEY `parent_fieldset` (`parent_fieldset`)  
757 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
758 -  
759 ---  
760 --- Dumping data for table `document_fields`  
761 ---  
762 -  
763 -INSERT INTO `document_fields` (`id`, `name`, `data_type`, `is_generic`, `has_lookup`, `has_lookuptree`, `parent_fieldset`, `is_mandatory`, `description`, `position`, `is_html`, `max_length`, `has_inetlookup`, `inetlookup_type`) VALUES  
764 -(2, 'Tag', 'STRING', 0, 0, 0, 2, 0, 'Tag Words', 0, NULL, NULL, NULL, NULL),  
765 -(3, 'Document Author', 'STRING', 0, 0, 0, 3, 0, 'Please add a document author', 0, NULL, NULL, NULL, NULL),  
766 -(4, 'Category', 'STRING', 0, 1, 0, 3, 0, 'Please select a category', 1, NULL, NULL, NULL, NULL),  
767 -(5, 'Media Type', 'STRING', 0, 1, 0, 3, 0, 'Please select a media type', 2, NULL, NULL, NULL, NULL);  
768 -  
769 --- --------------------------------------------------------  
770 -  
771 ---  
772 --- Table structure for table `document_fields_link`  
773 ---  
774 -  
775 -CREATE TABLE IF NOT EXISTS `document_fields_link` (  
776 - `id` int(11) NOT NULL AUTO_INCREMENT,  
777 - `document_field_id` int(11) NOT NULL DEFAULT '0',  
778 - `value` mediumtext NOT NULL,  
779 - `metadata_version_id` int(11) DEFAULT NULL,  
780 - PRIMARY KEY (`id`),  
781 - KEY `document_field_id` (`document_field_id`),  
782 - KEY `metadata_version_id` (`metadata_version_id`)  
783 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
784 -  
785 ---  
786 --- Dumping data for table `document_fields_link`  
787 ---  
788 -  
789 -  
790 --- --------------------------------------------------------  
791 -  
792 ---  
793 --- Table structure for table `document_incomplete`  
794 ---  
795 -  
796 -CREATE TABLE IF NOT EXISTS `document_incomplete` (  
797 - `id` int(11) NOT NULL AUTO_INCREMENT,  
798 - `contents` tinyint(1) unsigned NOT NULL DEFAULT '0',  
799 - `metadata` tinyint(1) unsigned NOT NULL DEFAULT '0',  
800 - PRIMARY KEY (`id`)  
801 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
802 -  
803 ---  
804 --- Dumping data for table `document_incomplete`  
805 ---  
806 -  
807 -  
808 --- --------------------------------------------------------  
809 -  
810 ---  
811 --- Table structure for table `document_link`  
812 ---  
813 -  
814 -CREATE TABLE IF NOT EXISTS `document_link` (  
815 - `id` int(11) NOT NULL AUTO_INCREMENT,  
816 - `parent_document_id` int(11) NOT NULL DEFAULT '0',  
817 - `child_document_id` int(11) NOT NULL DEFAULT '0',  
818 - `link_type_id` int(11) NOT NULL DEFAULT '0',  
819 - `external_url` varchar(255) DEFAULT NULL,  
820 - `external_name` varchar(50) DEFAULT NULL,  
821 - PRIMARY KEY (`id`),  
822 - KEY `parent_document_id` (`parent_document_id`),  
823 - KEY `child_document_id` (`child_document_id`),  
824 - KEY `link_type_id` (`link_type_id`)  
825 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
826 -  
827 ---  
828 --- Dumping data for table `document_link`  
829 ---  
830 -  
831 -  
832 --- --------------------------------------------------------  
833 -  
834 ---  
835 --- Table structure for table `document_link_types`  
836 ---  
837 -  
838 -CREATE TABLE IF NOT EXISTS `document_link_types` (  
839 - `id` int(11) NOT NULL AUTO_INCREMENT,  
840 - `name` varchar(100) NOT NULL,  
841 - `reverse_name` varchar(100) NOT NULL,  
842 - `description` varchar(255) NOT NULL,  
843 - PRIMARY KEY (`id`)  
844 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
845 -  
846 ---  
847 --- Dumping data for table `document_link_types`  
848 ---  
849 -  
850 -INSERT INTO `document_link_types` (`id`, `name`, `reverse_name`, `description`) VALUES  
851 -(-1, 'depended on', 'was depended on by', 'Depends relationship whereby one documents depends on another''s creation to go through approval'),  
852 -(0, 'Default', 'Default (reverse)', 'Default link type'),  
853 -(3, 'Attachment', '', 'Document Attachment'),  
854 -(4, 'Reference', '', 'Document Reference'),  
855 -(5, 'Copy', '', 'Document Copy');  
856 -  
857 --- --------------------------------------------------------  
858 -  
859 ---  
860 --- Table structure for table `document_metadata_version`  
861 ---  
862 -  
863 -CREATE TABLE IF NOT EXISTS `document_metadata_version` (  
864 - `id` int(11) NOT NULL AUTO_INCREMENT,  
865 - `document_id` int(11) NOT NULL DEFAULT '0',  
866 - `content_version_id` int(11) NOT NULL DEFAULT '0',  
867 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
868 - `name` mediumtext NOT NULL,  
869 - `description` varchar(255) DEFAULT NULL,  
870 - `status_id` int(11) DEFAULT NULL,  
871 - `metadata_version` int(11) NOT NULL DEFAULT '0',  
872 - `version_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
873 - `version_creator_id` int(11) NOT NULL DEFAULT '0',  
874 - `workflow_id` int(11) DEFAULT NULL,  
875 - `workflow_state_id` int(11) DEFAULT NULL,  
876 - `custom_doc_no` varchar(255) DEFAULT NULL,  
877 - PRIMARY KEY (`id`),  
878 - KEY `document_type_id` (`document_type_id`),  
879 - KEY `status_id` (`status_id`),  
880 - KEY `document_id` (`document_id`),  
881 - KEY `version_creator_id` (`version_creator_id`),  
882 - KEY `content_version_id` (`content_version_id`),  
883 - KEY `workflow_id` (`workflow_id`),  
884 - KEY `workflow_state_id` (`workflow_state_id`),  
885 - KEY `version_created` (`version_created`)  
886 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
887 -  
888 ---  
889 --- Dumping data for table `document_metadata_version`  
890 ---  
891 -  
892 -  
893 --- --------------------------------------------------------  
894 -  
895 ---  
896 --- Table structure for table `document_role_allocations`  
897 ---  
898 -  
899 -CREATE TABLE IF NOT EXISTS `document_role_allocations` (  
900 - `id` int(11) NOT NULL AUTO_INCREMENT,  
901 - `document_id` int(11) NOT NULL DEFAULT '0',  
902 - `role_id` int(11) NOT NULL DEFAULT '0',  
903 - `permission_descriptor_id` int(11) NOT NULL DEFAULT '0',  
904 - PRIMARY KEY (`id`),  
905 - KEY `role_id` (`role_id`),  
906 - KEY `permission_descriptor_id` (`permission_descriptor_id`),  
907 - KEY `document_id_role_id` (`document_id`,`role_id`)  
908 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
909 -  
910 ---  
911 --- Dumping data for table `document_role_allocations`  
912 ---  
913 -  
914 -  
915 --- --------------------------------------------------------  
916 -  
917 ---  
918 --- Table structure for table `document_searchable_text`  
919 ---  
920 -  
921 -CREATE TABLE IF NOT EXISTS `document_searchable_text` (  
922 - `document_id` int(11) DEFAULT NULL,  
923 - `document_text` longtext,  
924 - KEY `document_id` (`document_id`),  
925 - FULLTEXT KEY `document_text` (`document_text`)  
926 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
927 -  
928 ---  
929 --- Dumping data for table `document_searchable_text`  
930 ---  
931 -  
932 -  
933 --- --------------------------------------------------------  
934 -  
935 ---  
936 --- Table structure for table `document_subscriptions`  
937 ---  
938 -  
939 -CREATE TABLE IF NOT EXISTS `document_subscriptions` (  
940 - `id` int(11) NOT NULL AUTO_INCREMENT,  
941 - `user_id` int(11) NOT NULL DEFAULT '0',  
942 - `document_id` int(11) NOT NULL DEFAULT '0',  
943 - `is_alerted` tinyint(1) DEFAULT NULL,  
944 - PRIMARY KEY (`id`),  
945 - KEY `user_id` (`user_id`),  
946 - KEY `document_id` (`document_id`)  
947 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
948 -  
949 ---  
950 --- Dumping data for table `document_subscriptions`  
951 ---  
952 -  
953 -  
954 --- --------------------------------------------------------  
955 -  
956 ---  
957 --- Table structure for table `document_tags`  
958 ---  
959 -  
960 -CREATE TABLE IF NOT EXISTS `document_tags` (  
961 - `document_id` int(11) NOT NULL,  
962 - `tag_id` int(11) NOT NULL,  
963 - PRIMARY KEY (`document_id`,`tag_id`),  
964 - KEY `tag_id` (`tag_id`)  
965 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
966 -  
967 ---  
968 --- Dumping data for table `document_tags`  
969 ---  
970 -  
971 -  
972 --- --------------------------------------------------------  
973 -  
974 ---  
975 --- Table structure for table `document_text`  
976 ---  
977 -  
978 -CREATE TABLE IF NOT EXISTS `document_text` (  
979 - `document_id` int(11) NOT NULL DEFAULT '0',  
980 - `document_text` longtext,  
981 - PRIMARY KEY (`document_id`),  
982 - FULLTEXT KEY `document_text` (`document_text`)  
983 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
984 -  
985 ---  
986 --- Dumping data for table `document_text`  
987 ---  
988 -  
989 -  
990 --- --------------------------------------------------------  
991 -  
992 ---  
993 --- Table structure for table `document_transactions`  
994 ---  
995 -  
996 -CREATE TABLE IF NOT EXISTS `document_transactions` (  
997 - `id` int(11) NOT NULL AUTO_INCREMENT,  
998 - `document_id` int(11) DEFAULT NULL,  
999 - `version` varchar(10) DEFAULT NULL,  
1000 - `user_id` int(11) DEFAULT NULL,  
1001 - `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
1002 - `ip` varchar(15) DEFAULT NULL,  
1003 - `filename` mediumtext NOT NULL,  
1004 - `comment` mediumtext NOT NULL,  
1005 - `transaction_namespace` varchar(255) NOT NULL DEFAULT 'ktcore.transactions.event',  
1006 - `session_id` int(11) DEFAULT NULL,  
1007 - `admin_mode` tinyint(1) NOT NULL DEFAULT '0',  
1008 - PRIMARY KEY (`id`),  
1009 - KEY `session_id` (`session_id`),  
1010 - KEY `document_id` (`document_id`),  
1011 - KEY `user_id` (`user_id`),  
1012 - KEY `datetime` (`datetime`,`transaction_namespace`)  
1013 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1014 -  
1015 ---  
1016 --- Dumping data for table `document_transactions`  
1017 ---  
1018 -  
1019 -  
1020 --- --------------------------------------------------------  
1021 -  
1022 ---  
1023 --- Table structure for table `document_transaction_text`  
1024 ---  
1025 -  
1026 -CREATE TABLE IF NOT EXISTS `document_transaction_text` (  
1027 - `document_id` int(11) NOT NULL DEFAULT '0',  
1028 - `document_text` mediumtext,  
1029 - PRIMARY KEY (`document_id`),  
1030 - FULLTEXT KEY `document_text` (`document_text`)  
1031 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
1032 -  
1033 ---  
1034 --- Dumping data for table `document_transaction_text`  
1035 ---  
1036 -  
1037 -  
1038 --- --------------------------------------------------------  
1039 -  
1040 ---  
1041 --- Table structure for table `document_transaction_types_lookup`  
1042 ---  
1043 -  
1044 -CREATE TABLE IF NOT EXISTS `document_transaction_types_lookup` (  
1045 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1046 - `name` varchar(100) NOT NULL DEFAULT '',  
1047 - `namespace` varchar(255) NOT NULL,  
1048 - PRIMARY KEY (`id`),  
1049 - UNIQUE KEY `namespace` (`namespace`)  
1050 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1051 -  
1052 ---  
1053 --- Dumping data for table `document_transaction_types_lookup`  
1054 ---  
1055 -  
1056 -INSERT INTO `document_transaction_types_lookup` (`id`, `name`, `namespace`) VALUES  
1057 -(1, 'Create', 'ktcore.transactions.create'),  
1058 -(2, 'Update', 'ktcore.transactions.update'),  
1059 -(3, 'Delete', 'ktcore.transactions.delete'),  
1060 -(4, 'Rename', 'ktcore.transactions.rename'),  
1061 -(5, 'Move', 'ktcore.transactions.move'),  
1062 -(6, 'Download', 'ktcore.transactions.download'),  
1063 -(7, 'Check In', 'ktcore.transactions.check_in'),  
1064 -(8, 'Check Out', 'ktcore.transactions.check_out'),  
1065 -(9, 'Collaboration Step Rollback', 'ktcore.transactions.collaboration_step_rollback'),  
1066 -(10, 'View', 'ktcore.transactions.view'),  
1067 -(11, 'Expunge', 'ktcore.transactions.expunge'),  
1068 -(12, 'Force CheckIn', 'ktcore.transactions.force_checkin'),  
1069 -(13, 'Email Link', 'ktcore.transactions.email_link'),  
1070 -(14, 'Collaboration Step Approve', 'ktcore.transactions.collaboration_step_approve'),  
1071 -(15, 'Email Attachment', 'ktcore.transactions.email_attachment'),  
1072 -(16, 'Workflow state transition', 'ktcore.transactions.workflow_state_transition'),  
1073 -(17, 'Permissions changed', 'ktcore.transactions.permissions_change'),  
1074 -(18, 'Role allocations changed', 'ktcore.transactions.role_allocations_change'),  
1075 -(19, 'Bulk Export', 'ktstandard.transactions.bulk_export'),  
1076 -(20, 'Copy', 'ktcore.transactions.copy'),  
1077 -(21, 'Delete Version', 'ktcore.transactions.delete_version'),  
1078 -(22, 'Alert added / modified', 'alerts.transactions.alert'),  
1079 -(23, 'Document type alert added / modified', 'alerts.transactions.type_alert');  
1080 -  
1081 --- --------------------------------------------------------  
1082 -  
1083 ---  
1084 --- Table structure for table `document_types_lookup`  
1085 ---  
1086 -  
1087 -CREATE TABLE IF NOT EXISTS `document_types_lookup` (  
1088 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1089 - `name` varchar(100) DEFAULT NULL,  
1090 - `disabled` tinyint(1) NOT NULL DEFAULT '0',  
1091 - `scheme` varchar(100) DEFAULT NULL,  
1092 - `regen_on_checkin` tinyint(4) NOT NULL DEFAULT '0',  
1093 - PRIMARY KEY (`id`),  
1094 - KEY `name` (`name`)  
1095 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1096 -  
1097 ---  
1098 --- Dumping data for table `document_types_lookup`  
1099 ---  
1100 -  
1101 -INSERT INTO `document_types_lookup` (`id`, `name`, `disabled`, `scheme`, `regen_on_checkin`) VALUES  
1102 -(1, 'Default', 0, '<DOCID>', 0);  
1103 -  
1104 --- --------------------------------------------------------  
1105 -  
1106 ---  
1107 --- Table structure for table `document_type_alerts`  
1108 ---  
1109 -  
1110 -CREATE TABLE IF NOT EXISTS `document_type_alerts` (  
1111 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1112 - `document_type_id` int(11) NOT NULL,  
1113 - `alert_period` int(11) NOT NULL,  
1114 - `comment` mediumtext NOT NULL,  
1115 - `reset` int(11) NOT NULL DEFAULT '0',  
1116 - `repeatable` int(11) NOT NULL DEFAULT '0',  
1117 - `apply_to_all` int(11) NOT NULL DEFAULT '0',  
1118 - `creator_id` int(11) NOT NULL,  
1119 - `date_created` datetime NOT NULL,  
1120 - `modifier_id` int(11) DEFAULT NULL,  
1121 - `date_modified` datetime DEFAULT NULL,  
1122 - `update_processed` int(11) NOT NULL DEFAULT '0',  
1123 - PRIMARY KEY (`id`),  
1124 - KEY `document_type_id` (`document_type_id`)  
1125 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1126 -  
1127 ---  
1128 --- Dumping data for table `document_type_alerts`  
1129 ---  
1130 -  
1131 -  
1132 --- --------------------------------------------------------  
1133 -  
1134 ---  
1135 --- Table structure for table `document_type_fieldsets_link`  
1136 ---  
1137 -  
1138 -CREATE TABLE IF NOT EXISTS `document_type_fieldsets_link` (  
1139 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1140 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
1141 - `fieldset_id` int(11) NOT NULL DEFAULT '0',  
1142 - PRIMARY KEY (`id`),  
1143 - KEY `document_type_id` (`document_type_id`),  
1144 - KEY `fieldset_id` (`fieldset_id`)  
1145 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1146 -  
1147 ---  
1148 --- Dumping data for table `document_type_fieldsets_link`  
1149 ---  
1150 -  
1151 -  
1152 --- --------------------------------------------------------  
1153 -  
1154 ---  
1155 --- Table structure for table `document_type_fields_link`  
1156 ---  
1157 -  
1158 -CREATE TABLE IF NOT EXISTS `document_type_fields_link` (  
1159 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1160 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
1161 - `field_id` int(11) NOT NULL DEFAULT '0',  
1162 - `is_mandatory` tinyint(1) NOT NULL DEFAULT '0',  
1163 - PRIMARY KEY (`id`),  
1164 - KEY `document_type_id` (`document_type_id`),  
1165 - KEY `field_id` (`field_id`)  
1166 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1167 -  
1168 ---  
1169 --- Dumping data for table `document_type_fields_link`  
1170 ---  
1171 -  
1172 -  
1173 --- --------------------------------------------------------  
1174 -  
1175 ---  
1176 --- Table structure for table `download_files`  
1177 ---  
1178 -  
1179 -CREATE TABLE IF NOT EXISTS `download_files` (  
1180 - `document_id` int(11) NOT NULL,  
1181 - `session` varchar(100) NOT NULL,  
1182 - `download_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,  
1183 - `downloaded` int(10) unsigned NOT NULL DEFAULT '0',  
1184 - `filesize` int(10) unsigned NOT NULL,  
1185 - `content_version` int(10) unsigned NOT NULL,  
1186 - `hash` varchar(100) NOT NULL,  
1187 - PRIMARY KEY (`document_id`,`session`)  
1188 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1189 -  
1190 ---  
1191 --- Dumping data for table `download_files`  
1192 ---  
1193 -  
1194 -  
1195 --- --------------------------------------------------------  
1196 -  
1197 ---  
1198 --- Table structure for table `download_queue`  
1199 ---  
1200 -  
1201 -CREATE TABLE IF NOT EXISTS `download_queue` (  
1202 - `code` char(16) NOT NULL,  
1203 - `folder_id` int(11) NOT NULL,  
1204 - `object_id` int(11) NOT NULL,  
1205 - `object_type` enum('document','folder') NOT NULL DEFAULT 'folder',  
1206 - `user_id` int(11) NOT NULL,  
1207 - `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1208 - `status` tinyint(4) NOT NULL DEFAULT '0',  
1209 - `errors` mediumtext,  
1210 - KEY `code` (`code`)  
1211 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1212 -  
1213 ---  
1214 --- Dumping data for table `download_queue`  
1215 ---  
1216 -  
1217 -  
1218 --- --------------------------------------------------------  
1219 -  
1220 ---  
1221 --- Table structure for table `fieldsets`  
1222 ---  
1223 -  
1224 -CREATE TABLE IF NOT EXISTS `fieldsets` (  
1225 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1226 - `name` varchar(255) NOT NULL DEFAULT '',  
1227 - `namespace` varchar(255) NOT NULL DEFAULT '',  
1228 - `mandatory` tinyint(1) NOT NULL DEFAULT '0',  
1229 - `is_conditional` tinyint(1) NOT NULL DEFAULT '0',  
1230 - `master_field` int(11) DEFAULT NULL,  
1231 - `is_generic` tinyint(1) NOT NULL DEFAULT '0',  
1232 - `is_complex` tinyint(1) NOT NULL DEFAULT '0',  
1233 - `is_complete` tinyint(1) NOT NULL DEFAULT '1',  
1234 - `is_system` tinyint(1) unsigned NOT NULL DEFAULT '0',  
1235 - `description` mediumtext NOT NULL,  
1236 - `disabled` tinyint(1) NOT NULL DEFAULT '0',  
1237 - PRIMARY KEY (`id`),  
1238 - KEY `master_field` (`master_field`),  
1239 - KEY `is_generic` (`is_generic`),  
1240 - KEY `is_complete` (`is_complete`),  
1241 - KEY `is_system` (`is_system`)  
1242 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1243 -  
1244 ---  
1245 --- Dumping data for table `fieldsets`  
1246 ---  
1247 -  
1248 -INSERT INTO `fieldsets` (`id`, `name`, `namespace`, `mandatory`, `is_conditional`, `master_field`, `is_generic`, `is_complex`, `is_complete`, `is_system`, `description`, `disabled`) VALUES  
1249 -(2, 'Tag Cloud', 'tagcloud', 0, 0, NULL, 1, 0, 0, 0, 'Tag Cloud', 0),  
1250 -(3, 'General information', 'generalinformation', 0, 0, NULL, 1, 0, 0, 0, 'General document information', 0);  
1251 -  
1252 --- --------------------------------------------------------  
1253 -  
1254 ---  
1255 --- Table structure for table `field_behaviours`  
1256 ---  
1257 -  
1258 -CREATE TABLE IF NOT EXISTS `field_behaviours` (  
1259 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1260 - `name` varchar(255) NOT NULL,  
1261 - `human_name` varchar(100) NOT NULL,  
1262 - `field_id` int(11) NOT NULL DEFAULT '0',  
1263 - PRIMARY KEY (`id`),  
1264 - KEY `field_id` (`field_id`),  
1265 - KEY `name` (`name`)  
1266 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1267 -  
1268 ---  
1269 --- Dumping data for table `field_behaviours`  
1270 ---  
1271 -  
1272 -  
1273 --- --------------------------------------------------------  
1274 -  
1275 ---  
1276 --- Table structure for table `field_behaviour_options`  
1277 ---  
1278 -  
1279 -CREATE TABLE IF NOT EXISTS `field_behaviour_options` (  
1280 - `behaviour_id` int(11) NOT NULL DEFAULT '0',  
1281 - `field_id` int(11) NOT NULL DEFAULT '0',  
1282 - `instance_id` int(11) NOT NULL DEFAULT '0',  
1283 - KEY `field_id` (`field_id`),  
1284 - KEY `instance_id` (`instance_id`),  
1285 - KEY `behaviour_id_field_id` (`behaviour_id`,`field_id`)  
1286 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1287 -  
1288 ---  
1289 --- Dumping data for table `field_behaviour_options`  
1290 ---  
1291 -  
1292 -  
1293 --- --------------------------------------------------------  
1294 -  
1295 ---  
1296 --- Table structure for table `field_orders`  
1297 ---  
1298 -  
1299 -CREATE TABLE IF NOT EXISTS `field_orders` (  
1300 - `parent_field_id` int(11) NOT NULL DEFAULT '0',  
1301 - `child_field_id` int(11) NOT NULL DEFAULT '0',  
1302 - `fieldset_id` int(11) NOT NULL DEFAULT '0',  
1303 - UNIQUE KEY `child_field_id` (`child_field_id`),  
1304 - KEY `parent_field_id` (`parent_field_id`),  
1305 - KEY `fieldset_id` (`fieldset_id`)  
1306 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1307 -  
1308 ---  
1309 --- Dumping data for table `field_orders`  
1310 ---  
1311 -  
1312 -  
1313 --- --------------------------------------------------------  
1314 -  
1315 ---  
1316 --- Table structure for table `field_value_instances`  
1317 ---  
1318 -  
1319 -CREATE TABLE IF NOT EXISTS `field_value_instances` (  
1320 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1321 - `field_id` int(11) NOT NULL DEFAULT '0',  
1322 - `field_value_id` int(11) NOT NULL DEFAULT '0',  
1323 - `behaviour_id` int(11) DEFAULT '0',  
1324 - PRIMARY KEY (`id`),  
1325 - KEY `field_value_id` (`field_value_id`),  
1326 - KEY `behaviour_id` (`behaviour_id`),  
1327 - KEY `field_id` (`field_id`)  
1328 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1329 -  
1330 ---  
1331 --- Dumping data for table `field_value_instances`  
1332 ---  
1333 -  
1334 -  
1335 --- --------------------------------------------------------  
1336 -  
1337 ---  
1338 --- Table structure for table `folders`  
1339 ---  
1340 -  
1341 -CREATE TABLE IF NOT EXISTS `folders` (  
1342 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1343 - `name` varchar(255) DEFAULT NULL,  
1344 - `description` varchar(255) DEFAULT NULL,  
1345 - `parent_id` int(11) DEFAULT NULL,  
1346 - `creator_id` int(11) DEFAULT NULL,  
1347 - `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
1348 - `modified_user_id` int(11) DEFAULT NULL,  
1349 - `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
1350 - `is_public` tinyint(1) NOT NULL DEFAULT '0',  
1351 - `parent_folder_ids` mediumtext,  
1352 - `full_path` mediumtext,  
1353 - `permission_object_id` int(11) DEFAULT NULL,  
1354 - `permission_lookup_id` int(11) DEFAULT NULL,  
1355 - `restrict_document_types` tinyint(1) NOT NULL DEFAULT '0',  
1356 - `owner_id` int(11) DEFAULT NULL,  
1357 - `linked_folder_id` int(11) DEFAULT NULL,  
1358 - PRIMARY KEY (`id`),  
1359 - KEY `creator_id` (`creator_id`),  
1360 - KEY `permission_object_id` (`permission_object_id`),  
1361 - KEY `permission_lookup_id` (`permission_lookup_id`),  
1362 - KEY `parent_id_name` (`parent_id`,`name`)  
1363 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1364 -  
1365 ---  
1366 --- Dumping data for table `folders`  
1367 ---  
1368 -  
1369 -INSERT INTO `folders` (`id`, `name`, `description`, `parent_id`, `creator_id`, `created`, `modified_user_id`, `modified`, `is_public`, `parent_folder_ids`, `full_path`, `permission_object_id`, `permission_lookup_id`, `restrict_document_types`, `owner_id`, `linked_folder_id`) VALUES  
1370 -(1, 'Root Folder', 'Root Folder', NULL, 1, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', 0, NULL, NULL, 1, 5, 0, 1, NULL),  
1371 -(2, 'DroppedDocuments', 'DroppedDocuments', 1, 1, '2009-09-22 08:29:09', 1, '2009-09-22 08:29:09', 0, '1', 'DroppedDocuments', 2, 8, 0, 1, NULL),  
1372 -(3, 'admin', 'admin', 2, 1, '2009-09-22 08:29:10', 1, '2009-09-22 08:29:10', 0, '1,2', 'DroppedDocuments/admin', 3, 10, 0, 1, NULL);  
1373 -  
1374 --- --------------------------------------------------------  
1375 -  
1376 ---  
1377 --- Table structure for table `folders_users_roles_link`  
1378 ---  
1379 -  
1380 -CREATE TABLE IF NOT EXISTS `folders_users_roles_link` (  
1381 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1382 - `group_folder_approval_id` int(11) NOT NULL DEFAULT '0',  
1383 - `user_id` int(11) NOT NULL DEFAULT '0',  
1384 - `document_id` int(11) NOT NULL DEFAULT '0',  
1385 - `datetime` datetime DEFAULT NULL,  
1386 - `done` tinyint(1) DEFAULT NULL,  
1387 - `active` tinyint(1) DEFAULT NULL,  
1388 - `dependant_documents_created` tinyint(1) DEFAULT NULL,  
1389 - PRIMARY KEY (`id`),  
1390 - KEY `user_id` (`user_id`),  
1391 - KEY `document_id` (`document_id`)  
1392 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1393 -  
1394 ---  
1395 --- Dumping data for table `folders_users_roles_link`  
1396 ---  
1397 -  
1398 -  
1399 --- --------------------------------------------------------  
1400 -  
1401 ---  
1402 --- Table structure for table `folder_descendants`  
1403 ---  
1404 -  
1405 -CREATE TABLE IF NOT EXISTS `folder_descendants` (  
1406 - `parent_id` int(11) NOT NULL,  
1407 - `folder_id` int(11) NOT NULL,  
1408 - KEY `parent_id` (`parent_id`),  
1409 - KEY `folder_id` (`folder_id`)  
1410 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1411 -  
1412 ---  
1413 --- Dumping data for table `folder_descendants`  
1414 ---  
1415 -  
1416 -  
1417 --- --------------------------------------------------------  
1418 -  
1419 ---  
1420 --- Table structure for table `folder_doctypes_link`  
1421 ---  
1422 -  
1423 -CREATE TABLE IF NOT EXISTS `folder_doctypes_link` (  
1424 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1425 - `folder_id` int(11) NOT NULL DEFAULT '0',  
1426 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
1427 - PRIMARY KEY (`id`),  
1428 - KEY `folder_id` (`folder_id`),  
1429 - KEY `document_type_id` (`document_type_id`)  
1430 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1431 -  
1432 ---  
1433 --- Dumping data for table `folder_doctypes_link`  
1434 ---  
1435 -  
1436 -INSERT INTO `folder_doctypes_link` (`id`, `folder_id`, `document_type_id`) VALUES  
1437 -(1, 1, 1);  
1438 -  
1439 --- --------------------------------------------------------  
1440 -  
1441 ---  
1442 --- Table structure for table `folder_searchable_text`  
1443 ---  
1444 -  
1445 -CREATE TABLE IF NOT EXISTS `folder_searchable_text` (  
1446 - `folder_id` int(11) NOT NULL DEFAULT '0',  
1447 - `folder_text` mediumtext,  
1448 - PRIMARY KEY (`folder_id`),  
1449 - FULLTEXT KEY `folder_text` (`folder_text`)  
1450 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
1451 -  
1452 ---  
1453 --- Dumping data for table `folder_searchable_text`  
1454 ---  
1455 -  
1456 -INSERT INTO `folder_searchable_text` (`folder_id`, `folder_text`) VALUES  
1457 -(1, 'Root Folder');  
1458 -  
1459 --- --------------------------------------------------------  
1460 -  
1461 ---  
1462 --- Table structure for table `folder_subscriptions`  
1463 ---  
1464 -  
1465 -CREATE TABLE IF NOT EXISTS `folder_subscriptions` (  
1466 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1467 - `user_id` int(11) NOT NULL DEFAULT '0',  
1468 - `folder_id` int(11) NOT NULL DEFAULT '0',  
1469 - `is_alerted` tinyint(1) DEFAULT NULL,  
1470 - `with_subfolders` tinyint(1) NOT NULL DEFAULT '0',  
1471 - PRIMARY KEY (`id`),  
1472 - KEY `user_id` (`user_id`),  
1473 - KEY `folder_id` (`folder_id`)  
1474 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1475 -  
1476 ---  
1477 --- Dumping data for table `folder_subscriptions`  
1478 ---  
1479 -  
1480 -  
1481 --- --------------------------------------------------------  
1482 -  
1483 ---  
1484 --- Table structure for table `folder_transactions`  
1485 ---  
1486 -  
1487 -CREATE TABLE IF NOT EXISTS `folder_transactions` (  
1488 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1489 - `folder_id` int(11) DEFAULT NULL,  
1490 - `user_id` int(11) DEFAULT NULL,  
1491 - `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
1492 - `ip` varchar(15) DEFAULT NULL,  
1493 - `comment` varchar(255) NOT NULL,  
1494 - `transaction_namespace` varchar(255) NOT NULL,  
1495 - `session_id` int(11) DEFAULT NULL,  
1496 - `admin_mode` tinyint(1) NOT NULL DEFAULT '0',  
1497 - PRIMARY KEY (`id`),  
1498 - KEY `folder_id` (`folder_id`),  
1499 - KEY `session_id` (`session_id`)  
1500 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1501 -  
1502 ---  
1503 --- Dumping data for table `folder_transactions`  
1504 ---  
1505 -  
1506 -INSERT INTO `folder_transactions` (`id`, `folder_id`, `user_id`, `datetime`, `ip`, `comment`, `transaction_namespace`, `session_id`, `admin_mode`) VALUES  
1507 -(1, 2, 1, '2009-09-22 08:29:09', '127.0.0.1', 'Folder created', 'ktcore.transactions.create', 4, 0),  
1508 -(2, 3, 1, '2009-09-22 08:29:10', '127.0.0.1', 'Folder created', 'ktcore.transactions.create', 4, 0);  
1509 -  
1510 --- --------------------------------------------------------  
1511 -  
1512 ---  
1513 --- Table structure for table `folder_workflow_map`  
1514 ---  
1515 -  
1516 -CREATE TABLE IF NOT EXISTS `folder_workflow_map` (  
1517 - `folder_id` int(11) NOT NULL DEFAULT '0',  
1518 - `workflow_id` int(11) DEFAULT NULL,  
1519 - PRIMARY KEY (`folder_id`),  
1520 - KEY `workflow_id` (`workflow_id`)  
1521 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1522 -  
1523 ---  
1524 --- Dumping data for table `folder_workflow_map`  
1525 ---  
1526 -  
1527 -  
1528 --- --------------------------------------------------------  
1529 -  
1530 ---  
1531 --- Table structure for table `groups_groups_link`  
1532 ---  
1533 -  
1534 -CREATE TABLE IF NOT EXISTS `groups_groups_link` (  
1535 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1536 - `parent_group_id` int(11) NOT NULL DEFAULT '0',  
1537 - `member_group_id` int(11) NOT NULL DEFAULT '0',  
1538 - PRIMARY KEY (`id`),  
1539 - KEY `parent_group_id` (`parent_group_id`),  
1540 - KEY `member_group_id` (`member_group_id`)  
1541 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1542 -  
1543 ---  
1544 --- Dumping data for table `groups_groups_link`  
1545 ---  
1546 -  
1547 -  
1548 --- --------------------------------------------------------  
1549 -  
1550 ---  
1551 --- Table structure for table `groups_lookup`  
1552 ---  
1553 -  
1554 -CREATE TABLE IF NOT EXISTS `groups_lookup` (  
1555 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1556 - `name` varchar(100) NOT NULL DEFAULT '',  
1557 - `is_sys_admin` tinyint(1) NOT NULL DEFAULT '0',  
1558 - `is_unit_admin` tinyint(1) NOT NULL DEFAULT '0',  
1559 - `unit_id` int(11) DEFAULT NULL,  
1560 - `authentication_details_s2` varchar(255) DEFAULT NULL,  
1561 - `authentication_details_s1` varchar(255) DEFAULT NULL,  
1562 - `authentication_source_id` int(11) DEFAULT NULL,  
1563 - PRIMARY KEY (`id`),  
1564 - UNIQUE KEY `name` (`name`),  
1565 - KEY `unit_id` (`unit_id`),  
1566 - KEY `authentication_source_id_authentication_details_s1` (`authentication_source_id`,`authentication_details_s1`)  
1567 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1568 -  
1569 ---  
1570 --- Dumping data for table `groups_lookup`  
1571 ---  
1572 -  
1573 -INSERT INTO `groups_lookup` (`id`, `name`, `is_sys_admin`, `is_unit_admin`, `unit_id`, `authentication_details_s2`, `authentication_details_s1`, `authentication_source_id`) VALUES  
1574 -(1, 'System Administrators', 1, 0, NULL, NULL, NULL, NULL);  
1575 -  
1576 --- --------------------------------------------------------  
1577 -  
1578 ---  
1579 --- Table structure for table `help`  
1580 ---  
1581 -  
1582 -CREATE TABLE IF NOT EXISTS `help` (  
1583 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1584 - `fSection` varchar(100) NOT NULL DEFAULT '',  
1585 - `help_info` mediumtext NOT NULL,  
1586 - PRIMARY KEY (`id`)  
1587 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1588 -  
1589 ---  
1590 --- Dumping data for table `help`  
1591 ---  
1592 -  
1593 -INSERT INTO `help` (`id`, `fSection`, `help_info`) VALUES  
1594 -(1, 'browse', 'dochelp.html'),  
1595 -(2, 'dashboard', 'dashboardHelp.html'),  
1596 -(3, 'addFolder', 'addFolderHelp.html'),  
1597 -(4, 'editFolder', 'editFolderHelp.html'),  
1598 -(5, 'addFolderCollaboration', 'addFolderCollaborationHelp.html'),  
1599 -(6, 'modifyFolderCollaboration', 'addFolderCollaborationHelp.html'),  
1600 -(7, 'addDocument', 'addDocumentHelp.html'),  
1601 -(8, 'viewDocument', 'viewDocumentHelp.html'),  
1602 -(9, 'modifyDocument', 'modifyDocumentHelp.html'),  
1603 -(10, 'modifyDocumentRouting', 'modifyDocumentRoutingHelp.html'),  
1604 -(11, 'emailDocument', 'emailDocumentHelp.html'),  
1605 -(12, 'deleteDocument', 'deleteDocumentHelp.html'),  
1606 -(13, 'administration', 'administrationHelp.html'),  
1607 -(14, 'addGroup', 'addGroupHelp.html'),  
1608 -(15, 'editGroup', 'editGroupHelp.html'),  
1609 -(16, 'removeGroup', 'removeGroupHelp.html'),  
1610 -(17, 'assignGroupToUnit', 'assignGroupToUnitHelp.html'),  
1611 -(18, 'removeGroupFromUnit', 'removeGroupFromUnitHelp.html'),  
1612 -(19, 'addUnit', 'addUnitHelp.html'),  
1613 -(20, 'editUnit', 'editUnitHelp.html'),  
1614 -(21, 'removeUnit', 'removeUnitHelp.html'),  
1615 -(22, 'addOrg', 'addOrgHelp.html'),  
1616 -(23, 'editOrg', 'editOrgHelp.html'),  
1617 -(24, 'removeOrg', 'removeOrgHelp.html'),  
1618 -(25, 'addRole', 'addRoleHelp.html'),  
1619 -(26, 'editRole', 'editRoleHelp.html'),  
1620 -(27, 'removeRole', 'removeRoleHelp.html'),  
1621 -(28, 'addLink', 'addLinkHelp.html'),  
1622 -(29, 'addLinkSuccess', 'addLinkHelp.html'),  
1623 -(30, 'editLink', 'editLinkHelp.html'),  
1624 -(31, 'removeLink', 'removeLinkHelp.html'),  
1625 -(32, 'systemAdministration', 'systemAdministrationHelp.html'),  
1626 -(33, 'deleteFolder', 'deleteFolderHelp.html'),  
1627 -(34, 'editDocType', 'editDocTypeHelp.html'),  
1628 -(35, 'removeDocType', 'removeDocTypeHelp.html'),  
1629 -(36, 'addDocType', 'addDocTypeHelp.html'),  
1630 -(37, 'addDocTypeSuccess', 'addDocTypeHelp.html'),  
1631 -(38, 'manageSubscriptions', 'manageSubscriptionsHelp.html'),  
1632 -(39, 'addSubscription', 'addSubscriptionHelp.html'),  
1633 -(40, 'removeSubscription', 'removeSubscriptionHelp.html'),  
1634 -(41, 'preferences', 'preferencesHelp.html'),  
1635 -(42, 'editPrefsSuccess', 'preferencesHelp.html'),  
1636 -(43, 'modifyDocumentGenericMetaData', 'modifyDocumentGenericMetaDataHelp.html'),  
1637 -(44, 'viewHistory', 'viewHistoryHelp.html'),  
1638 -(45, 'checkInDocument', 'checkInDocumentHelp.html'),  
1639 -(46, 'checkOutDocument', 'checkOutDocumentHelp.html'),  
1640 -(47, 'advancedSearch', 'advancedSearchHelp.html'),  
1641 -(48, 'deleteFolderCollaboration', 'deleteFolderCollaborationHelp.html'),  
1642 -(49, 'addFolderDocType', 'addFolderDocTypeHelp.html'),  
1643 -(50, 'deleteFolderDocType', 'deleteFolderDocTypeHelp.html'),  
1644 -(51, 'addGroupFolderLink', 'addGroupFolderLinkHelp.html'),  
1645 -(52, 'deleteGroupFolderLink', 'deleteGroupFolderLinkHelp.html'),  
1646 -(53, 'addWebsite', 'addWebsiteHelp.html'),  
1647 -(54, 'addWebsiteSuccess', 'addWebsiteHelp.html'),  
1648 -(55, 'editWebsite', 'editWebsiteHelp.html'),  
1649 -(56, 'removeWebSite', 'removeWebSiteHelp.html'),  
1650 -(57, 'standardSearch', 'standardSearchHelp.html'),  
1651 -(58, 'modifyDocumentTypeMetaData', 'modifyDocumentTypeMetaDataHelp.html'),  
1652 -(59, 'addDocField', 'addDocFieldHelp.html'),  
1653 -(60, 'editDocField', 'editDocFieldHelp.html'),  
1654 -(61, 'removeDocField', 'removeDocFieldHelp.html'),  
1655 -(62, 'addMetaData', 'addMetaDataHelp.html'),  
1656 -(63, 'editMetaData', 'editMetaDataHelp.html'),  
1657 -(64, 'removeMetaData', 'removeMetaDataHelp.html'),  
1658 -(65, 'addUser', 'addUserHelp.html'),  
1659 -(66, 'editUser', 'editUserHelp.html'),  
1660 -(67, 'removeUser', 'removeUserHelp.html'),  
1661 -(68, 'addUserToGroup', 'addUserToGroupHelp.html'),  
1662 -(69, 'removeUserFromGroup', 'removeUserFromGroupHelp.html'),  
1663 -(70, 'viewDiscussion', 'viewDiscussionThread.html'),  
1664 -(71, 'addComment', 'addDiscussionComment.html'),  
1665 -(72, 'listNews', 'listDashboardNewsHelp.html'),  
1666 -(73, 'editNews', 'editDashboardNewsHelp.html'),  
1667 -(74, 'previewNews', 'previewDashboardNewsHelp.html'),  
1668 -(75, 'addNews', 'addDashboardNewsHelp.html'),  
1669 -(76, 'modifyDocumentArchiveSettings', 'modifyDocumentArchiveSettingsHelp.html'),  
1670 -(77, 'addDocumentArchiveSettings', 'addDocumentArchiveSettingsHelp.html'),  
1671 -(78, 'listDocFields', 'listDocumentFieldsAdmin.html'),  
1672 -(79, 'editDocFieldLookups', 'editDocFieldLookups.html'),  
1673 -(80, 'addMetaDataForField', 'addMetaDataForField.html'),  
1674 -(81, 'editMetaDataForField', 'editMetaDataForField.html'),  
1675 -(82, 'removeMetaDataFromField', 'removeMetaDataFromField.html'),  
1676 -(83, 'listDocs', 'listDocumentsCheckoutHelp.html'),  
1677 -(84, 'editDocCheckout', 'editDocCheckoutHelp.html'),  
1678 -(85, 'listDocTypes', 'listDocTypesHelp.html'),  
1679 -(86, 'editDocTypeFields', 'editDocFieldHelp.html'),  
1680 -(87, 'addDocTypeFieldsLink', 'addDocTypeFieldHelp.html'),  
1681 -(88, 'listGroups', 'listGroupsHelp.html'),  
1682 -(89, 'editGroupUnit', 'editGroupUnitHelp.html'),  
1683 -(90, 'listOrg', 'listOrgHelp.html'),  
1684 -(91, 'listRole', 'listRolesHelp.html'),  
1685 -(92, 'listUnits', 'listUnitHelp.html'),  
1686 -(93, 'editUnitOrg', 'editUnitOrgHelp.html'),  
1687 -(94, 'removeUnitFromOrg', 'removeUnitFromOrgHelp.html'),  
1688 -(95, 'addUnitToOrg', 'addUnitToOrgHelp.html'),  
1689 -(96, 'listUsers', 'listUsersHelp.html'),  
1690 -(97, 'editUserGroups', 'editUserGroupsHelp.html'),  
1691 -(98, 'listWebsites', 'listWebsitesHelp.html'),  
1692 -(99, 'loginDisclaimer', 'loginDisclaimer.html'),  
1693 -(100, 'pageDisclaimer', 'pageDisclaimer.html');  
1694 -  
1695 --- --------------------------------------------------------  
1696 -  
1697 ---  
1698 --- Table structure for table `help_replacement`  
1699 ---  
1700 -  
1701 -CREATE TABLE IF NOT EXISTS `help_replacement` (  
1702 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1703 - `name` varchar(255) NOT NULL DEFAULT '',  
1704 - `description` mediumtext NOT NULL,  
1705 - `title` varchar(255) NOT NULL DEFAULT '',  
1706 - PRIMARY KEY (`id`)  
1707 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1708 -  
1709 ---  
1710 --- Dumping data for table `help_replacement`  
1711 ---  
1712 -  
1713 -  
1714 --- --------------------------------------------------------  
1715 -  
1716 ---  
1717 --- Table structure for table `index_files`  
1718 ---  
1719 -  
1720 -CREATE TABLE IF NOT EXISTS `index_files` (  
1721 - `document_id` int(11) NOT NULL,  
1722 - `user_id` int(11) NOT NULL,  
1723 - `indexdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,  
1724 - `processdate` datetime DEFAULT NULL,  
1725 - `what` char(1) DEFAULT NULL,  
1726 - `status_msg` mediumtext,  
1727 - PRIMARY KEY (`document_id`),  
1728 - KEY `user_id` (`user_id`)  
1729 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1730 -  
1731 ---  
1732 --- Dumping data for table `index_files`  
1733 ---  
1734 -  
1735 -  
1736 --- --------------------------------------------------------  
1737 -  
1738 ---  
1739 --- Table structure for table `interceptor_instances`  
1740 ---  
1741 -  
1742 -CREATE TABLE IF NOT EXISTS `interceptor_instances` (  
1743 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1744 - `name` varchar(255) NOT NULL,  
1745 - `interceptor_namespace` varchar(255) NOT NULL,  
1746 - `config` text,  
1747 - PRIMARY KEY (`id`),  
1748 - KEY `interceptor_namespace` (`interceptor_namespace`)  
1749 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1750 -  
1751 ---  
1752 --- Dumping data for table `interceptor_instances`  
1753 ---  
1754 -  
1755 -INSERT INTO `interceptor_instances` (`id`, `name`, `interceptor_namespace`, `config`) VALUES  
1756 -(1, 'Password Reset Interceptor', 'password.reset.login.interceptor', ''),  
1757 -(2, 'Password Reset Interceptor', 'password.reset.login.interceptor', ''),  
1758 -(3, 'Password Reset Interceptor', 'password.reset.login.interceptor', ''),  
1759 -(4, 'Password Reset Interceptor', 'password.reset.login.interceptor', '');  
1760 -  
1761 --- --------------------------------------------------------  
1762 -  
1763 ---  
1764 --- Table structure for table `links`  
1765 ---  
1766 -  
1767 -CREATE TABLE IF NOT EXISTS `links` (  
1768 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1769 - `name` varchar(100) NOT NULL,  
1770 - `url` varchar(100) NOT NULL,  
1771 - `rank` int(11) NOT NULL DEFAULT '0',  
1772 - PRIMARY KEY (`id`)  
1773 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1774 -  
1775 ---  
1776 --- Dumping data for table `links`  
1777 ---  
1778 -  
1779 -  
1780 --- --------------------------------------------------------  
1781 -  
1782 ---  
1783 --- Table structure for table `metadata_lookup`  
1784 ---  
1785 -  
1786 -CREATE TABLE IF NOT EXISTS `metadata_lookup` (  
1787 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1788 - `document_field_id` int(11) NOT NULL DEFAULT '0',  
1789 - `name` varchar(255) DEFAULT NULL,  
1790 - `treeorg_parent` int(11) DEFAULT NULL,  
1791 - `disabled` tinyint(1) NOT NULL DEFAULT '0',  
1792 - `is_stuck` tinyint(1) NOT NULL DEFAULT '0',  
1793 - PRIMARY KEY (`id`),  
1794 - KEY `document_field_id` (`document_field_id`),  
1795 - KEY `disabled` (`disabled`)  
1796 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1797 -  
1798 ---  
1799 --- Dumping data for table `metadata_lookup`  
1800 ---  
1801 -  
1802 -INSERT INTO `metadata_lookup` (`id`, `document_field_id`, `name`, `treeorg_parent`, `disabled`, `is_stuck`) VALUES  
1803 -(2, 4, 'Technical', NULL, 0, 0),  
1804 -(3, 4, 'Financial', NULL, 0, 0),  
1805 -(4, 4, 'Legal', NULL, 0, 0),  
1806 -(5, 4, 'Administrative', NULL, 0, 0),  
1807 -(6, 4, 'Miscellaneous', NULL, 0, 0),  
1808 -(7, 4, 'Sales', NULL, 0, 0),  
1809 -(8, 5, 'Text', NULL, 0, 0),  
1810 -(9, 5, 'Image', NULL, 0, 0),  
1811 -(10, 5, 'Audio', NULL, 0, 0),  
1812 -(11, 5, 'Video', NULL, 0, 0);  
1813 -  
1814 --- --------------------------------------------------------  
1815 -  
1816 ---  
1817 --- Table structure for table `metadata_lookup_tree`  
1818 ---  
1819 -  
1820 -CREATE TABLE IF NOT EXISTS `metadata_lookup_tree` (  
1821 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1822 - `document_field_id` int(11) NOT NULL DEFAULT '0',  
1823 - `name` varchar(255) DEFAULT NULL,  
1824 - `metadata_lookup_tree_parent` int(11) DEFAULT NULL,  
1825 - PRIMARY KEY (`id`),  
1826 - KEY `document_field_id` (`document_field_id`),  
1827 - KEY `metadata_lookup_tree_parent` (`metadata_lookup_tree_parent`)  
1828 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1829 -  
1830 ---  
1831 --- Dumping data for table `metadata_lookup_tree`  
1832 ---  
1833 -  
1834 -  
1835 --- --------------------------------------------------------  
1836 -  
1837 ---  
1838 --- Table structure for table `mime_documents`  
1839 ---  
1840 -  
1841 -CREATE TABLE IF NOT EXISTS `mime_documents` (  
1842 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1843 - `mime_doc` varchar(100) DEFAULT NULL,  
1844 - `icon_path` varchar(20) DEFAULT NULL,  
1845 - PRIMARY KEY (`id`)  
1846 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1847 -  
1848 ---  
1849 --- Dumping data for table `mime_documents`  
1850 ---  
1851 -  
1852 -  
1853 --- --------------------------------------------------------  
1854 -  
1855 ---  
1856 --- Table structure for table `mime_document_mapping`  
1857 ---  
1858 -  
1859 -CREATE TABLE IF NOT EXISTS `mime_document_mapping` (  
1860 - `mime_document_id` int(11) NOT NULL,  
1861 - `mime_type_id` int(11) NOT NULL,  
1862 - PRIMARY KEY (`mime_type_id`,`mime_document_id`),  
1863 - KEY `mime_document_id` (`mime_document_id`)  
1864 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
1865 -  
1866 ---  
1867 --- Dumping data for table `mime_document_mapping`  
1868 ---  
1869 -  
1870 -  
1871 --- --------------------------------------------------------  
1872 -  
1873 ---  
1874 --- Table structure for table `mime_extractors`  
1875 ---  
1876 -  
1877 -CREATE TABLE IF NOT EXISTS `mime_extractors` (  
1878 - `id` mediumint(9) NOT NULL AUTO_INCREMENT,  
1879 - `name` varchar(50) NOT NULL,  
1880 - `active` tinyint(1) NOT NULL DEFAULT '0',  
1881 - PRIMARY KEY (`id`)  
1882 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1883 -  
1884 ---  
1885 --- Dumping data for table `mime_extractors`  
1886 ---  
1887 -  
1888 -  
1889 --- --------------------------------------------------------  
1890 -  
1891 ---  
1892 --- Table structure for table `mime_types`  
1893 ---  
1894 -  
1895 -CREATE TABLE IF NOT EXISTS `mime_types` (  
1896 - `id` int(11) NOT NULL AUTO_INCREMENT,  
1897 - `filetypes` varchar(100) NOT NULL,  
1898 - `mimetypes` varchar(100) NOT NULL,  
1899 - `icon_path` varchar(255) DEFAULT NULL,  
1900 - `friendly_name` varchar(255) NOT NULL DEFAULT '',  
1901 - `extractor_id` mediumint(9) DEFAULT NULL,  
1902 - `mime_document_id` int(11) DEFAULT NULL,  
1903 - PRIMARY KEY (`id`),  
1904 - KEY `mime_document_id` (`mime_document_id`),  
1905 - KEY `extractor_id` (`extractor_id`),  
1906 - KEY `filetypes` (`filetypes`),  
1907 - KEY `mimetypes` (`mimetypes`)  
1908 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
1909 -  
1910 ---  
1911 --- Dumping data for table `mime_types`  
1912 ---  
1913 -  
1914 -INSERT INTO `mime_types` (`id`, `filetypes`, `mimetypes`, `icon_path`, `friendly_name`, `extractor_id`, `mime_document_id`) VALUES  
1915 -(1, 'ai', 'application/ai', 'image', 'Adobe Illustrator Vector Graphic', NULL, NULL),  
1916 -(2, 'aif', 'audio/x-aiff', NULL, '', NULL, NULL),  
1917 -(3, 'aifc', 'audio/x-aiff', NULL, '', NULL, NULL),  
1918 -(4, 'aiff', 'audio/x-aiff', NULL, '', NULL, NULL),  
1919 -(5, 'asc', 'text/plain', 'text', 'Plain Text', NULL, NULL),  
1920 -(6, 'au', 'audio/basic', NULL, '', NULL, NULL),  
1921 -(7, 'avi', 'video/x-msvideo', NULL, 'Video File', NULL, NULL),  
1922 -(8, 'bcpio', 'application/x-bcpio', NULL, '', NULL, NULL),  
1923 -(9, 'bin', 'application/octet-stream', NULL, 'Binary File', NULL, NULL),  
1924 -(10, 'bmp', 'image/bmp', 'image', 'BMP Image', NULL, NULL),  
1925 -(11, 'cdf', 'application/x-netcdf', NULL, '', NULL, NULL),  
1926 -(12, 'class', 'application/octet-stream', NULL, '', NULL, NULL),  
1927 -(13, 'cpio', 'application/x-cpio', NULL, '', NULL, NULL),  
1928 -(14, 'cpt', 'application/mac-compactpro', NULL, '', NULL, NULL),  
1929 -(15, 'csh', 'application/x-csh', NULL, '', NULL, NULL),  
1930 -(16, 'css', 'text/css', NULL, '', NULL, NULL),  
1931 -(17, 'dcr', 'application/x-director', NULL, '', NULL, NULL),  
1932 -(18, 'dir', 'application/x-director', NULL, '', NULL, NULL),  
1933 -(19, 'dms', 'application/octet-stream', NULL, '', NULL, NULL),  
1934 -(20, 'doc', 'application/msword', 'word', 'Word Document', NULL, NULL),  
1935 -(21, 'dvi', 'application/x-dvi', NULL, '', NULL, NULL),  
1936 -(22, 'dxr', 'application/x-director', NULL, '', NULL, NULL),  
1937 -(23, 'eps', 'application/eps', 'image', 'Encapsulated Postscript', NULL, NULL),  
1938 -(24, 'etx', 'text/x-setext', NULL, '', NULL, NULL),  
1939 -(25, 'exe', 'application/octet-stream', NULL, '', NULL, NULL),  
1940 -(26, 'ez', 'application/andrew-inset', NULL, '', NULL, NULL),  
1941 -(27, 'gif', 'image/gif', 'image', 'GIF Image', NULL, NULL),  
1942 -(28, 'gtar', 'application/x-gtar', 'compressed', '', NULL, NULL),  
1943 -(29, 'hdf', 'application/x-hdf', NULL, '', NULL, NULL),  
1944 -(30, 'hqx', 'application/mac-binhex40', NULL, '', NULL, NULL),  
1945 -(31, 'htm', 'text/html', 'html', 'HTML Webpage', NULL, NULL),  
1946 -(32, 'html', 'text/html', 'html', 'HTML Webpage', NULL, NULL),  
1947 -(33, 'ice', 'x-conference/x-cooltalk', NULL, '', NULL, NULL),  
1948 -(34, 'ief', 'image/ief', 'image', '', NULL, NULL),  
1949 -(35, 'iges', 'model/iges', NULL, '', NULL, NULL),  
1950 -(36, 'igs', 'model/iges', NULL, '', NULL, NULL),  
1951 -(37, 'jpe', 'image/jpeg', 'image', 'JPEG Image', NULL, NULL),  
1952 -(38, 'jpeg', 'image/jpeg', 'image', 'JPEG Image', NULL, NULL),  
1953 -(39, 'jpg', 'image/jpeg', 'image', 'JPEG Image', NULL, NULL),  
1954 -(40, 'js', 'application/x-javascript', 'html', '', NULL, NULL),  
1955 -(41, 'kar', 'audio/midi', NULL, '', NULL, NULL),  
1956 -(42, 'latex', 'application/x-latex', NULL, '', NULL, NULL),  
1957 -(43, 'lha', 'application/octet-stream', NULL, '', NULL, NULL),  
1958 -(44, 'lzh', 'application/octet-stream', NULL, '', NULL, NULL),  
1959 -(45, 'man', 'application/x-troff-man', NULL, '', NULL, NULL),  
1960 -(46, 'mdb', 'application/access', 'database', 'Access Database', NULL, NULL),  
1961 -(47, 'mdf', 'application/access', 'database', 'Access Database', NULL, NULL),  
1962 -(48, 'me', 'application/x-troff-me', NULL, '', NULL, NULL),  
1963 -(49, 'mesh', 'model/mesh', NULL, '', NULL, NULL),  
1964 -(50, 'mid', 'audio/midi', NULL, '', NULL, NULL),  
1965 -(51, 'midi', 'audio/midi', NULL, '', NULL, NULL),  
1966 -(52, 'mif', 'application/vnd.mif', NULL, '', NULL, NULL),  
1967 -(53, 'mov', 'video/quicktime', NULL, 'Video File', NULL, NULL),  
1968 -(54, 'movie', 'video/x-sgi-movie', NULL, 'Video File', NULL, NULL),  
1969 -(55, 'mp2', 'audio/mpeg', NULL, '', NULL, NULL),  
1970 -(56, 'mp3', 'audio/mpeg', NULL, '', NULL, NULL),  
1971 -(57, 'mpe', 'video/mpeg', NULL, 'Video File', NULL, NULL),  
1972 -(58, 'mpeg', 'video/mpeg', NULL, 'Video File', NULL, NULL),  
1973 -(59, 'mpg', 'video/mpeg', NULL, 'Video File', NULL, NULL),  
1974 -(60, 'mpga', 'audio/mpeg', NULL, '', NULL, NULL),  
1975 -(61, 'mpp', 'application/vnd.ms-project', 'office', '', NULL, NULL),  
1976 -(62, 'ms', 'application/x-troff-ms', NULL, '', NULL, NULL),  
1977 -(63, 'msh', 'model/mesh', NULL, '', NULL, NULL),  
1978 -(64, 'nc', 'application/x-netcdf', NULL, '', NULL, NULL),  
1979 -(65, 'oda', 'application/oda', NULL, '', NULL, NULL),  
1980 -(66, 'pbm', 'image/x-portable-bitmap', 'image', '', NULL, NULL),  
1981 -(67, 'pdb', 'chemical/x-pdb', NULL, '', NULL, NULL),  
1982 -(68, 'pdf', 'application/pdf', 'pdf', 'Acrobat PDF', NULL, NULL),  
1983 -(69, 'pgm', 'image/x-portable-graymap', 'image', '', NULL, NULL),  
1984 -(70, 'pgn', 'application/x-chess-pgn', NULL, '', NULL, NULL),  
1985 -(71, 'png', 'image/png', 'image', 'PNG Image', NULL, NULL),  
1986 -(72, 'pnm', 'image/x-portable-anymap', 'image', '', NULL, NULL),  
1987 -(73, 'ppm', 'image/x-portable-pixmap', 'image', '', NULL, NULL),  
1988 -(74, 'ppt', 'application/vnd.ms-powerpoint', 'office', 'Powerpoint Presentation', NULL, NULL),  
1989 -(75, 'ps', 'application/postscript', 'pdf', 'Postscript Document', NULL, NULL),  
1990 -(76, 'qt', 'video/quicktime', NULL, 'Video File', NULL, NULL),  
1991 -(77, 'ra', 'audio/x-realaudio', NULL, '', NULL, NULL),  
1992 -(78, 'ram', 'audio/x-pn-realaudio', NULL, '', NULL, NULL),  
1993 -(79, 'ras', 'image/x-cmu-raster', 'image', '', NULL, NULL),  
1994 -(80, 'rgb', 'image/x-rgb', 'image', '', NULL, NULL),  
1995 -(81, 'rm', 'audio/x-pn-realaudio', NULL, '', NULL, NULL),  
1996 -(82, 'roff', 'application/x-troff', NULL, '', NULL, NULL),  
1997 -(83, 'rpm', 'audio/x-pn-realaudio-plugin', NULL, '', NULL, NULL),  
1998 -(84, 'rtf', 'text/rtf', NULL, '', NULL, NULL),  
1999 -(85, 'rtx', 'text/richtext', NULL, '', NULL, NULL),  
2000 -(86, 'sgm', 'text/sgml', NULL, '', NULL, NULL),  
2001 -(87, 'sgml', 'text/sgml', NULL, '', NULL, NULL),  
2002 -(88, 'sh', 'application/x-sh', NULL, '', NULL, NULL),  
2003 -(89, 'shar', 'application/x-shar', NULL, '', NULL, NULL),  
2004 -(90, 'silo', 'model/mesh', NULL, '', NULL, NULL),  
2005 -(91, 'sit', 'application/x-stuffit', NULL, '', NULL, NULL),  
2006 -(92, 'skd', 'application/x-koan', NULL, '', NULL, NULL),  
2007 -(93, 'skm', 'application/x-koan', NULL, '', NULL, NULL),  
2008 -(94, 'skp', 'application/x-koan', NULL, '', NULL, NULL),  
2009 -(95, 'skt', 'application/x-koan', NULL, '', NULL, NULL),  
2010 -(96, 'smi', 'application/smil', NULL, '', NULL, NULL),  
2011 -(97, 'smil', 'application/smil', NULL, '', NULL, NULL),  
2012 -(98, 'snd', 'audio/basic', NULL, '', NULL, NULL),  
2013 -(99, 'spl', 'application/x-futuresplash', NULL, '', NULL, NULL),  
2014 -(100, 'src', 'application/x-wais-source', NULL, '', NULL, NULL),  
2015 -(101, 'sv4cpio', 'application/x-sv4cpio', NULL, '', NULL, NULL),  
2016 -(102, 'sv4crc', 'application/x-sv4crc', NULL, '', NULL, NULL),  
2017 -(103, 'swf', 'application/x-shockwave-flash', NULL, '', NULL, NULL),  
2018 -(104, 't', 'application/x-troff', NULL, '', NULL, NULL),  
2019 -(105, 'tar', 'application/x-tar', 'compressed', 'Tar or Compressed Tar File', NULL, NULL),  
2020 -(106, 'tcl', 'application/x-tcl', NULL, '', NULL, NULL),  
2021 -(107, 'tex', 'application/x-tex', NULL, '', NULL, NULL),  
2022 -(108, 'texi', 'application/x-texinfo', NULL, '', NULL, NULL),  
2023 -(109, 'texinfo', 'application/x-texinfo', NULL, '', NULL, NULL),  
2024 -(110, 'tif', 'image/tiff', 'image', 'TIFF Image', NULL, NULL),  
2025 -(111, 'tiff', 'image/tiff', 'image', 'TIFF Image', NULL, NULL),  
2026 -(112, 'tr', 'application/x-troff', NULL, '', NULL, NULL),  
2027 -(113, 'tsv', 'text/tab-separated-values', NULL, '', NULL, NULL),  
2028 -(114, 'txt', 'text/plain', 'text', 'Plain Text', NULL, NULL),  
2029 -(115, 'ustar', 'application/x-ustar', NULL, '', NULL, NULL),  
2030 -(116, 'vcd', 'application/x-cdlink', NULL, '', NULL, NULL),  
2031 -(117, 'vrml', 'model/vrml', NULL, '', NULL, NULL),  
2032 -(118, 'vsd', 'application/vnd.visio', 'office', '', NULL, NULL),  
2033 -(119, 'wav', 'audio/x-wav', NULL, '', NULL, NULL),  
2034 -(120, 'wrl', 'model/vrml', NULL, '', NULL, NULL),  
2035 -(121, 'xbm', 'image/x-xbitmap', 'image', '', NULL, NULL),  
2036 -(122, 'xls', 'application/vnd.ms-excel', 'excel', 'Excel Spreadsheet', NULL, NULL),  
2037 -(123, 'xml', 'text/xml', NULL, '', NULL, NULL),  
2038 -(124, 'xpm', 'image/x-xpixmap', 'image', '', NULL, NULL),  
2039 -(125, 'xwd', 'image/x-xwindowdump', 'image', '', NULL, NULL),  
2040 -(126, 'xyz', 'chemical/x-pdb', NULL, '', NULL, NULL),  
2041 -(127, 'zip', 'application/zip', 'compressed', 'ZIP Compressed File', NULL, NULL),  
2042 -(128, 'gz', 'application/x-gzip', 'compressed', 'GZIP Compressed File', NULL, NULL),  
2043 -(129, 'tgz', 'application/x-gzip', 'compressed', 'Tar or Compressed Tar File', NULL, NULL),  
2044 -(130, 'sxw', 'application/vnd.sun.xml.writer', 'openoffice', 'OpenOffice.org Writer Document', NULL, NULL),  
2045 -(131, 'stw', 'application/vnd.sun.xml.writer.template', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2046 -(132, 'sxc', 'application/vnd.sun.xml.calc', 'openoffice', 'OpenOffice.org Spreadsheet', NULL, NULL),  
2047 -(133, 'stc', 'application/vnd.sun.xml.calc.template', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2048 -(134, 'sxd', 'application/vnd.sun.xml.draw', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2049 -(135, 'std', 'application/vnd.sun.xml.draw.template', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2050 -(136, 'sxi', 'application/vnd.sun.xml.impress', 'openoffice', 'OpenOffice.org Presentation', NULL, NULL),  
2051 -(137, 'sti', 'application/vnd.sun.xml.impress.template', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2052 -(138, 'sxg', 'application/vnd.sun.xml.writer.global', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2053 -(139, 'sxm', 'application/vnd.sun.xml.math', 'openoffice', 'OpenOffice.org File', NULL, NULL),  
2054 -(140, 'xlt', 'application/vnd.ms-excel', 'excel', 'Excel Template', NULL, NULL),  
2055 -(141, 'dot', 'application/msword', 'word', 'Word Template', NULL, NULL),  
2056 -(142, 'bz2', 'application/x-bzip2', 'compressed', 'BZIP2 Compressed File', NULL, NULL),  
2057 -(143, 'diff', 'text/plain', 'text', 'Source Diff File', NULL, NULL),  
2058 -(144, 'patch', 'text/plain', 'text', 'Patch File', NULL, NULL),  
2059 -(145, 'odt', 'application/vnd.oasis.opendocument.text', 'opendocument', 'OpenDocument Text', NULL, NULL),  
2060 -(146, 'ott', 'application/vnd.oasis.opendocument.text-template', 'opendocument', 'OpenDocument Text Template', NULL, NULL),  
2061 -(147, 'oth', 'application/vnd.oasis.opendocument.text-web', 'opendocument', 'HTML Document Template', NULL, NULL),  
2062 -(148, 'odm', 'application/vnd.oasis.opendocument.text-master', 'opendocument', 'OpenDocument Master Document', NULL, NULL),  
2063 -(149, 'odg', 'application/vnd.oasis.opendocument.graphics', 'opendocument', 'OpenDocument Drawing', NULL, NULL),  
2064 -(150, 'otg', 'application/vnd.oasis.opendocument.graphics-template', 'opendocument', 'OpenDocument Drawing Template', NULL, NULL),  
2065 -(151, 'odp', 'application/vnd.oasis.opendocument.presentation', 'opendocument', 'OpenDocument Presentation', NULL, NULL),  
2066 -(152, 'otp', 'application/vnd.oasis.opendocument.presentation-template', 'opendocument', 'OpenDocument Presentation Template', NULL, NULL),  
2067 -(153, 'ods', 'application/vnd.oasis.opendocument.spreadsheet', 'opendocument', 'OpenDocument Spreadsheet', NULL, NULL),  
2068 -(154, 'ots', 'application/vnd.oasis.opendocument.spreadsheet-template', 'opendocument', 'OpenDocument Spreadsheet Template', NULL, NULL),  
2069 -(155, 'odc', 'application/vnd.oasis.opendocument.chart', 'opendocument', 'OpenDocument Chart', NULL, NULL),  
2070 -(156, 'odf', 'application/vnd.oasis.opendocument.formula', 'opendocument', 'OpenDocument Formula', NULL, NULL),  
2071 -(157, 'odb', 'application/vnd.oasis.opendocument.database', 'opendocument', 'OpenDocument Database', NULL, NULL),  
2072 -(158, 'odi', 'application/vnd.oasis.opendocument.image', 'opendocument', 'OpenDocument Image', NULL, NULL),  
2073 -(159, 'zip', 'application/x-zip', 'compressed', 'ZIP Compressed File', NULL, NULL),  
2074 -(160, 'csv', 'text/csv', 'excel', 'Comma delimited spreadsheet', NULL, NULL),  
2075 -(161, 'msi', 'application/x-msi', 'compressed', 'MSI Installer file', NULL, NULL),  
2076 -(162, 'pps', 'application/vnd.ms-powerpoint', 'office', 'Powerpoint Presentation', NULL, NULL),  
2077 -(163, 'docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'word', 'Word Document', NULL, NULL),  
2078 -(164, 'dotx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'word', 'Word Document', NULL, NULL),  
2079 -(165, 'potx', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'office', 'Powerpoint Presentation', NULL, NULL),  
2080 -(166, 'ppsx', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'office', 'Powerpoint Presentation', NULL, NULL),  
2081 -(167, 'pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'office', 'Powerpoint Presentation', NULL, NULL),  
2082 -(168, 'xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'excel', 'Excel Spreadsheet', NULL, NULL),  
2083 -(169, 'xltx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'excel', 'Excel Spreadsheet', NULL, NULL),  
2084 -(170, 'msg', 'application/vnd.ms-outlook', 'office', 'Outlook Item', NULL, NULL),  
2085 -(171, 'db', 'application/db', '', 'Misc DB file', NULL, NULL);  
2086 -  
2087 --- --------------------------------------------------------  
2088 -  
2089 ---  
2090 --- Table structure for table `news`  
2091 ---  
2092 -  
2093 -CREATE TABLE IF NOT EXISTS `news` (  
2094 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2095 - `synopsis` varchar(255) NOT NULL DEFAULT '',  
2096 - `body` mediumtext,  
2097 - `rank` int(11) DEFAULT NULL,  
2098 - `image` mediumtext,  
2099 - `image_size` int(11) DEFAULT NULL,  
2100 - `image_mime_type_id` int(11) DEFAULT NULL,  
2101 - `active` tinyint(1) DEFAULT NULL,  
2102 - PRIMARY KEY (`id`),  
2103 - KEY `image_mime_type_id` (`image_mime_type_id`)  
2104 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2105 -  
2106 ---  
2107 --- Dumping data for table `news`  
2108 ---  
2109 -  
2110 -  
2111 --- --------------------------------------------------------  
2112 -  
2113 ---  
2114 --- Table structure for table `notifications`  
2115 ---  
2116 -  
2117 -CREATE TABLE IF NOT EXISTS `notifications` (  
2118 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2119 - `user_id` int(11) NOT NULL DEFAULT '0',  
2120 - `label` varchar(255) NOT NULL DEFAULT '',  
2121 - `type` varchar(255) NOT NULL DEFAULT '',  
2122 - `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
2123 - `data_int_1` int(11) DEFAULT NULL,  
2124 - `data_int_2` int(11) DEFAULT NULL,  
2125 - `data_str_1` varchar(255) DEFAULT NULL,  
2126 - `data_str_2` varchar(255) DEFAULT NULL,  
2127 - `data_text_1` text,  
2128 - PRIMARY KEY (`id`),  
2129 - KEY `user_id` (`user_id`),  
2130 - KEY `data_int_1` (`data_int_1`)  
2131 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2132 -  
2133 ---  
2134 --- Dumping data for table `notifications`  
2135 ---  
2136 -  
2137 -  
2138 --- --------------------------------------------------------  
2139 -  
2140 ---  
2141 --- Table structure for table `organisations_lookup`  
2142 ---  
2143 -  
2144 -CREATE TABLE IF NOT EXISTS `organisations_lookup` (  
2145 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2146 - `name` varchar(100) NOT NULL,  
2147 - PRIMARY KEY (`id`),  
2148 - UNIQUE KEY `name` (`name`)  
2149 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2150 -  
2151 ---  
2152 --- Dumping data for table `organisations_lookup`  
2153 ---  
2154 -  
2155 -INSERT INTO `organisations_lookup` (`id`, `name`) VALUES  
2156 -(1, 'Default Organisation');  
2157 -  
2158 --- --------------------------------------------------------  
2159 -  
2160 ---  
2161 --- Table structure for table `permissions`  
2162 ---  
2163 -  
2164 -CREATE TABLE IF NOT EXISTS `permissions` (  
2165 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2166 - `name` varchar(100) NOT NULL,  
2167 - `human_name` varchar(100) NOT NULL,  
2168 - `built_in` tinyint(1) NOT NULL DEFAULT '0',  
2169 - PRIMARY KEY (`id`),  
2170 - UNIQUE KEY `name` (`name`)  
2171 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2172 -  
2173 ---  
2174 --- Dumping data for table `permissions`  
2175 ---  
2176 -  
2177 -INSERT INTO `permissions` (`id`, `name`, `human_name`, `built_in`) VALUES  
2178 -(1, 'ktcore.permissions.read', 'Read', 1),  
2179 -(2, 'ktcore.permissions.write', 'Write', 1),  
2180 -(3, 'ktcore.permissions.addFolder', 'Add Folder', 1),  
2181 -(4, 'ktcore.permissions.security', 'Manage security', 1),  
2182 -(5, 'ktcore.permissions.delete', 'Delete', 1),  
2183 -(6, 'ktcore.permissions.workflow', 'Manage workflow', 1),  
2184 -(7, 'ktcore.permissions.folder_details', 'Folder Details', 1),  
2185 -(8, 'ktcore.permissions.folder_rename', 'Rename Folder', 1);  
2186 -  
2187 --- --------------------------------------------------------  
2188 -  
2189 ---  
2190 --- Table structure for table `permission_assignments`  
2191 ---  
2192 -  
2193 -CREATE TABLE IF NOT EXISTS `permission_assignments` (  
2194 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2195 - `permission_id` int(11) NOT NULL DEFAULT '0',  
2196 - `permission_object_id` int(11) NOT NULL DEFAULT '0',  
2197 - `permission_descriptor_id` int(11) DEFAULT NULL,  
2198 - PRIMARY KEY (`id`),  
2199 - UNIQUE KEY `permission_object_id_permission_id` (`permission_object_id`,`permission_id`),  
2200 - KEY `permission_id` (`permission_id`),  
2201 - KEY `permission_descriptor_id` (`permission_descriptor_id`)  
2202 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2203 -  
2204 ---  
2205 --- Dumping data for table `permission_assignments`  
2206 ---  
2207 -  
2208 -INSERT INTO `permission_assignments` (`id`, `permission_id`, `permission_object_id`, `permission_descriptor_id`) VALUES  
2209 -(1, 1, 1, 2),  
2210 -(2, 2, 1, 2),  
2211 -(3, 3, 1, 2),  
2212 -(4, 4, 1, 2),  
2213 -(5, 5, 1, 2),  
2214 -(6, 6, 1, 2),  
2215 -(7, 7, 1, 2),  
2216 -(8, 8, 1, 2),  
2217 -(9, 1, 2, 3),  
2218 -(10, 2, 2, 3),  
2219 -(11, 3, 2, 3),  
2220 -(12, 4, 2, 2),  
2221 -(13, 5, 2, 2),  
2222 -(14, 6, 2, 2),  
2223 -(15, 7, 2, 3),  
2224 -(16, 8, 2, 2),  
2225 -(17, 1, 3, 3),  
2226 -(18, 2, 3, 3),  
2227 -(19, 3, 3, 3),  
2228 -(20, 4, 3, 3),  
2229 -(21, 5, 3, 3),  
2230 -(22, 6, 3, 3),  
2231 -(23, 7, 3, 3),  
2232 -(24, 8, 3, 3);  
2233 -  
2234 --- --------------------------------------------------------  
2235 -  
2236 ---  
2237 --- Table structure for table `permission_descriptors`  
2238 ---  
2239 -  
2240 -CREATE TABLE IF NOT EXISTS `permission_descriptors` (  
2241 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2242 - `descriptor` varchar(32) NOT NULL DEFAULT '',  
2243 - `descriptor_text` mediumtext NOT NULL,  
2244 - PRIMARY KEY (`id`),  
2245 - UNIQUE KEY `descriptor` (`descriptor`)  
2246 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2247 -  
2248 ---  
2249 --- Dumping data for table `permission_descriptors`  
2250 ---  
2251 -  
2252 -INSERT INTO `permission_descriptors` (`id`, `descriptor`, `descriptor_text`) VALUES  
2253 -(1, 'd41d8cd98f00b204e9800998ecf8427e', ''),  
2254 -(2, 'a689e7c4dc953de8d93b1ed4843b2dfe', 'group(1)'),  
2255 -(3, '426b9d5f4837e3407e43f96722cbe308', 'group(1)role(5)'),  
2256 -(4, '69956554f671b2f1819ff895730ceff9', 'user(1)'),  
2257 -(5, 'bca11de862fdb4a335a3001ea80d9b61', 'group(1)user(1)');  
2258 -  
2259 --- --------------------------------------------------------  
2260 -  
2261 ---  
2262 --- Table structure for table `permission_descriptor_groups`  
2263 ---  
2264 -  
2265 -CREATE TABLE IF NOT EXISTS `permission_descriptor_groups` (  
2266 - `descriptor_id` int(11) NOT NULL DEFAULT '0',  
2267 - `group_id` int(11) NOT NULL DEFAULT '0',  
2268 - PRIMARY KEY (`descriptor_id`,`group_id`),  
2269 - KEY `group_id` (`group_id`)  
2270 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2271 -  
2272 ---  
2273 --- Dumping data for table `permission_descriptor_groups`  
2274 ---  
2275 -  
2276 -INSERT INTO `permission_descriptor_groups` (`descriptor_id`, `group_id`) VALUES  
2277 -(2, 1),  
2278 -(3, 1),  
2279 -(5, 1);  
2280 -  
2281 --- --------------------------------------------------------  
2282 -  
2283 ---  
2284 --- Table structure for table `permission_descriptor_roles`  
2285 ---  
2286 -  
2287 -CREATE TABLE IF NOT EXISTS `permission_descriptor_roles` (  
2288 - `descriptor_id` int(11) NOT NULL DEFAULT '0',  
2289 - `role_id` int(11) NOT NULL DEFAULT '0',  
2290 - PRIMARY KEY (`descriptor_id`,`role_id`),  
2291 - KEY `role_id` (`role_id`)  
2292 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2293 -  
2294 ---  
2295 --- Dumping data for table `permission_descriptor_roles`  
2296 ---  
2297 -  
2298 -INSERT INTO `permission_descriptor_roles` (`descriptor_id`, `role_id`) VALUES  
2299 -(3, 5);  
2300 -  
2301 --- --------------------------------------------------------  
2302 -  
2303 ---  
2304 --- Table structure for table `permission_descriptor_users`  
2305 ---  
2306 -  
2307 -CREATE TABLE IF NOT EXISTS `permission_descriptor_users` (  
2308 - `descriptor_id` int(11) NOT NULL DEFAULT '0',  
2309 - `user_id` int(11) NOT NULL DEFAULT '0',  
2310 - PRIMARY KEY (`descriptor_id`,`user_id`),  
2311 - KEY `user_id` (`user_id`)  
2312 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2313 -  
2314 ---  
2315 --- Dumping data for table `permission_descriptor_users`  
2316 ---  
2317 -  
2318 -INSERT INTO `permission_descriptor_users` (`descriptor_id`, `user_id`) VALUES  
2319 -(4, 1),  
2320 -(5, 1);  
2321 -  
2322 --- --------------------------------------------------------  
2323 -  
2324 ---  
2325 --- Table structure for table `permission_dynamic_assignments`  
2326 ---  
2327 -  
2328 -CREATE TABLE IF NOT EXISTS `permission_dynamic_assignments` (  
2329 - `dynamic_condition_id` int(11) NOT NULL DEFAULT '0',  
2330 - `permission_id` int(11) NOT NULL DEFAULT '0',  
2331 - KEY `dynamic_condition_id` (`dynamic_condition_id`),  
2332 - KEY `permission_id` (`permission_id`)  
2333 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2334 -  
2335 ---  
2336 --- Dumping data for table `permission_dynamic_assignments`  
2337 ---  
2338 -  
2339 -  
2340 --- --------------------------------------------------------  
2341 -  
2342 ---  
2343 --- Table structure for table `permission_dynamic_conditions`  
2344 ---  
2345 -  
2346 -CREATE TABLE IF NOT EXISTS `permission_dynamic_conditions` (  
2347 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2348 - `permission_object_id` int(11) NOT NULL DEFAULT '0',  
2349 - `group_id` int(11) NOT NULL DEFAULT '0',  
2350 - `condition_id` int(11) NOT NULL DEFAULT '0',  
2351 - PRIMARY KEY (`id`),  
2352 - KEY `permission_object_id` (`permission_object_id`),  
2353 - KEY `group_id` (`group_id`),  
2354 - KEY `condition_id` (`condition_id`)  
2355 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2356 -  
2357 ---  
2358 --- Dumping data for table `permission_dynamic_conditions`  
2359 ---  
2360 -  
2361 -  
2362 --- --------------------------------------------------------  
2363 -  
2364 ---  
2365 --- Table structure for table `permission_lookups`  
2366 ---  
2367 -  
2368 -CREATE TABLE IF NOT EXISTS `permission_lookups` (  
2369 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2370 - PRIMARY KEY (`id`)  
2371 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2372 -  
2373 ---  
2374 --- Dumping data for table `permission_lookups`  
2375 ---  
2376 -  
2377 -INSERT INTO `permission_lookups` (`id`) VALUES  
2378 -(1),  
2379 -(2),  
2380 -(3),  
2381 -(4),  
2382 -(5),  
2383 -(6),  
2384 -(7),  
2385 -(8),  
2386 -(9),  
2387 -(10);  
2388 -  
2389 --- --------------------------------------------------------  
2390 -  
2391 ---  
2392 --- Table structure for table `permission_lookup_assignments`  
2393 ---  
2394 -  
2395 -CREATE TABLE IF NOT EXISTS `permission_lookup_assignments` (  
2396 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2397 - `permission_id` int(11) NOT NULL DEFAULT '0',  
2398 - `permission_lookup_id` int(11) NOT NULL DEFAULT '0',  
2399 - `permission_descriptor_id` int(11) DEFAULT NULL,  
2400 - PRIMARY KEY (`id`),  
2401 - UNIQUE KEY `permission_lookup_id_permission_id` (`permission_lookup_id`,`permission_id`),  
2402 - KEY `permission_id` (`permission_id`),  
2403 - KEY `permission_descriptor_id` (`permission_descriptor_id`)  
2404 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2405 -  
2406 ---  
2407 --- Dumping data for table `permission_lookup_assignments`  
2408 ---  
2409 -  
2410 -INSERT INTO `permission_lookup_assignments` (`id`, `permission_id`, `permission_lookup_id`, `permission_descriptor_id`) VALUES  
2411 -(1, 1, 1, 1),  
2412 -(2, 2, 1, 1),  
2413 -(3, 3, 1, 1),  
2414 -(4, 1, 2, 2),  
2415 -(5, 2, 2, 2),  
2416 -(6, 3, 2, 2),  
2417 -(7, 1, 3, 2),  
2418 -(8, 2, 3, 2),  
2419 -(9, 3, 3, 2),  
2420 -(10, 4, 3, 2),  
2421 -(11, 5, 3, 2),  
2422 -(12, 1, 4, 2),  
2423 -(13, 2, 4, 2),  
2424 -(14, 3, 4, 2),  
2425 -(15, 4, 4, 2),  
2426 -(16, 5, 4, 2),  
2427 -(17, 6, 4, 2),  
2428 -(18, 1, 5, 2),  
2429 -(19, 2, 5, 2),  
2430 -(20, 3, 5, 2),  
2431 -(21, 4, 5, 2),  
2432 -(22, 5, 5, 2),  
2433 -(23, 6, 5, 2),  
2434 -(24, 7, 5, 2),  
2435 -(25, 1, 6, 2),  
2436 -(26, 2, 6, 2),  
2437 -(27, 3, 6, 2),  
2438 -(28, 4, 6, 2),  
2439 -(29, 5, 6, 2),  
2440 -(30, 6, 6, 2),  
2441 -(31, 7, 6, 2),  
2442 -(32, 8, 6, 2),  
2443 -(33, 1, 7, 3),  
2444 -(34, 2, 7, 3),  
2445 -(35, 3, 7, 3),  
2446 -(36, 4, 7, 2),  
2447 -(37, 5, 7, 2),  
2448 -(38, 6, 7, 2),  
2449 -(39, 7, 7, 3),  
2450 -(40, 8, 7, 2),  
2451 -(41, 1, 8, 5),  
2452 -(42, 2, 8, 5),  
2453 -(43, 3, 8, 5),  
2454 -(44, 4, 8, 2),  
2455 -(45, 5, 8, 2),  
2456 -(46, 6, 8, 2),  
2457 -(47, 7, 8, 5),  
2458 -(48, 8, 8, 2),  
2459 -(49, 1, 9, 3),  
2460 -(50, 2, 9, 3),  
2461 -(51, 3, 9, 3),  
2462 -(52, 4, 9, 3),  
2463 -(53, 5, 9, 3),  
2464 -(54, 6, 9, 3),  
2465 -(55, 7, 9, 3),  
2466 -(56, 8, 9, 3),  
2467 -(57, 1, 10, 5),  
2468 -(58, 2, 10, 5),  
2469 -(59, 3, 10, 5),  
2470 -(60, 4, 10, 5),  
2471 -(61, 5, 10, 5),  
2472 -(62, 6, 10, 5),  
2473 -(63, 7, 10, 5),  
2474 -(64, 8, 10, 5);  
2475 -  
2476 --- --------------------------------------------------------  
2477 -  
2478 ---  
2479 --- Table structure for table `permission_objects`  
2480 ---  
2481 -  
2482 -CREATE TABLE IF NOT EXISTS `permission_objects` (  
2483 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2484 - PRIMARY KEY (`id`)  
2485 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2486 -  
2487 ---  
2488 --- Dumping data for table `permission_objects`  
2489 ---  
2490 -  
2491 -INSERT INTO `permission_objects` (`id`) VALUES  
2492 -(1),  
2493 -(2),  
2494 -(3);  
2495 -  
2496 --- --------------------------------------------------------  
2497 -  
2498 ---  
2499 --- Table structure for table `plugins`  
2500 ---  
2501 -  
2502 -CREATE TABLE IF NOT EXISTS `plugins` (  
2503 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2504 - `namespace` varchar(255) NOT NULL DEFAULT '',  
2505 - `path` varchar(255) NOT NULL DEFAULT '',  
2506 - `version` int(11) NOT NULL DEFAULT '0',  
2507 - `disabled` tinyint(1) NOT NULL DEFAULT '0',  
2508 - `data` mediumtext,  
2509 - `unavailable` tinyint(1) NOT NULL DEFAULT '0',  
2510 - `friendly_name` varchar(255) DEFAULT '',  
2511 - `orderby` int(11) NOT NULL DEFAULT '0',  
2512 - `list_admin` int(11) NOT NULL DEFAULT '1',  
2513 - PRIMARY KEY (`id`),  
2514 - UNIQUE KEY `namespace` (`namespace`),  
2515 - KEY `disabled` (`disabled`)  
2516 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2517 -  
2518 ---  
2519 --- Dumping data for table `plugins`  
2520 ---  
2521 -  
2522 -INSERT INTO `plugins` (`id`, `namespace`, `path`, `version`, `disabled`, `data`, `unavailable`, `friendly_name`, `orderby`, `list_admin`) VALUES  
2523 -(1,'ktcore.tagcloud.plugin','plugins/tagcloud/TagCloudPlugin.php',0,0,NULL,0,'Tag Cloud Plugin',0,1),  
2524 -(2,'ktcore.rss.plugin','plugins/rssplugin/RSSPlugin.php',0,0,NULL,0,'RSS Plugin',0,1),  
2525 -(3,'ktcore.language.plugin','plugins/ktcore/KTCoreLanguagePlugin.php',0,0,NULL,0,'Core Language Support',-75,0),  
2526 -(4,'ktcore.plugin','plugins/ktcore/KTCorePlugin.php',0,0,NULL,0,'Core Application Functionality',-25,0),  
2527 -(5,'ktstandard.ldapauthentication.plugin','plugins/ktstandard/KTLDAPAuthenticationPlugin.php',0,0,NULL,0,'LDAP Authentication Plugin',0,1),  
2528 -(6,'ktstandard.pdf.plugin','plugins/ktstandard/PDFGeneratorPlugin.php',0,0,NULL,0,'PDF Generator Plugin',0,1),  
2529 -(7,'ktstandard.bulkexport.plugin','plugins/ktstandard/KTBulkExportPlugin.php',0,0,NULL,0,'Bulk Export Plugin',0,1),  
2530 -(8,'ktstandard.immutableaction.plugin','plugins/ktstandard/ImmutableActionPlugin.php',0,0,NULL,0,'Immutable action plugin',0,1),  
2531 -(9,'ktstandard.subscriptions.plugin','plugins/ktstandard/KTSubscriptions.php',0,0,NULL,0,'Subscription Plugin',0,1),  
2532 -(10,'ktstandard.discussion.plugin','plugins/ktstandard/KTDiscussion.php',0,0,NULL,0,'Document Discussions Plugin',0,1),  
2533 -(11,'ktstandard.email.plugin','plugins/ktstandard/KTEmail.php',0,0,NULL,0,'Email Plugin',0,1),  
2534 -(12,'ktstandard.indexer.plugin','plugins/ktstandard/KTIndexer.php',0,0,NULL,0,'Full-text Content Indexing',0,1),  
2535 -(13,'ktstandard.documentlinks.plugin','plugins/ktstandard/KTDocumentLinks.php',0,0,NULL,0,'Inter-document linking',0,1),  
2536 -(14,'ktstandard.workflowassociation.plugin','plugins/ktstandard/KTWorkflowAssociation.php',0,0,NULL,0,'Workflow Association Plugin',0,1),  
2537 -(15,'ktstandard.workflowassociation.documenttype.plugin','plugins/ktstandard/workflow/TypeAssociator.php',0,0,NULL,0,'Workflow allocation by document type',0,1),  
2538 -(16,'ktstandard.workflowassociation.folder.plugin','plugins/ktstandard/workflow/FolderAssociator.php',0,0,NULL,0,'Workflow allocation by location',0,1),  
2539 -(17,'ktstandard.disclaimers.plugin','plugins/ktstandard/KTDisclaimers.php',0,0,NULL,0,'Disclaimers Plugin',0,1),  
2540 -(18,'nbm.browseable.plugin','plugins/browseabledashlet/BrowseableDashletPlugin.php',0,0,NULL,0,'Orphaned Folders Plugin',0,1),  
2541 -(19,'ktstandard.ktwebdavdashlet.plugin','plugins/ktstandard/KTWebDAVDashletPlugin.php',0,0,NULL,0,'WebDAV Dashlet Plugin',0,1),  
2542 -(20,'ktcore.housekeeper.plugin','plugins/housekeeper/HouseKeeperPlugin.php',0,0,NULL,0,'Housekeeper',0,1),  
2543 -(21,'ktstandard.preview.plugin','plugins/ktstandard/documentpreview/documentPreviewPlugin.php',0,0,NULL,0,'Property Preview Plugin',0,1),  
2544 -(22,'ktlive.mydropdocuments.plugin','plugins/MyDropDocumentsPlugin/MyDropDocumentsPlugin.php',0,0,NULL,0,'Drop Documents Plugin',0,1);  
2545 -  
2546 --- --------------------------------------------------------  
2547 -  
2548 ---  
2549 --- Table structure for table `plugin_helper`  
2550 ---  
2551 -  
2552 -CREATE TABLE IF NOT EXISTS `plugin_helper` (  
2553 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2554 - `namespace` varchar(120) NOT NULL,  
2555 - `plugin` varchar(120) NOT NULL,  
2556 - `classname` varchar(120) DEFAULT NULL,  
2557 - `pathname` varchar(255) DEFAULT NULL,  
2558 - `object` varchar(1000) NOT NULL,  
2559 - `classtype` varchar(120) NOT NULL,  
2560 - `viewtype` enum('general','dashboard','plugin','folder','document','admindispatcher','dispatcher') NOT NULL DEFAULT 'general',  
2561 - PRIMARY KEY (`id`),  
2562 - KEY `name` (`namespace`),  
2563 - KEY `parent` (`plugin`),  
2564 - KEY `view` (`viewtype`)  
2565 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2566 -  
2567 --- --------------------------------------------------------  
2568 -  
2569 ---  
2570 --- Table structure for table `plugin_rss`  
2571 ---  
2572 -  
2573 -CREATE TABLE IF NOT EXISTS `plugin_rss` (  
2574 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2575 - `user_id` int(11) NOT NULL,  
2576 - `url` varchar(200) NOT NULL,  
2577 - `title` varchar(100) NOT NULL,  
2578 - PRIMARY KEY (`id`),  
2579 - KEY `user_id` (`user_id`)  
2580 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2581 -  
2582 ---  
2583 --- Dumping data for table `plugin_rss`  
2584 ---  
2585 -  
2586 --- --------------------------------------------------------  
2587 -  
2588 ---  
2589 --- Table structure for table `quicklinks`  
2590 ---  
2591 -  
2592 -CREATE TABLE IF NOT EXISTS `quicklinks` (  
2593 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2594 - `target_id` int(11) NOT NULL DEFAULT '0',  
2595 - `is_folder` tinyint(1) NOT NULL DEFAULT '0',  
2596 - `position` int(11) NOT NULL DEFAULT '0',  
2597 - `active` tinyint(1) NOT NULL DEFAULT '1',  
2598 - `user_id` int(11) NOT NULL DEFAULT '0',  
2599 - PRIMARY KEY (`id`)  
2600 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
2601 -  
2602 ---  
2603 --- Dumping data for table `quicklinks`  
2604 ---  
2605 -  
2606 -  
2607 --- --------------------------------------------------------  
2608 -  
2609 ---  
2610 --- Table structure for table `roles`  
2611 ---  
2612 -  
2613 -CREATE TABLE IF NOT EXISTS `roles` (  
2614 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2615 - `name` varchar(255) NOT NULL,  
2616 - PRIMARY KEY (`id`),  
2617 - UNIQUE KEY `name` (`name`)  
2618 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2619 -  
2620 ---  
2621 --- Dumping data for table `roles`  
2622 ---  
2623 -  
2624 -INSERT INTO `roles` (`id`, `name`) VALUES  
2625 -(-4, 'Authenticated Users'),  
2626 -(4, 'Creator'),  
2627 -(-3, 'Everyone'),  
2628 -(-2, 'Owner'),  
2629 -(2, 'Publisher'),  
2630 -(3, 'Reviewer'),  
2631 -(5, 'WorkSpaceOwner');  
2632 -  
2633 --- --------------------------------------------------------  
2634 -  
2635 ---  
2636 --- Table structure for table `role_allocations`  
2637 ---  
2638 -  
2639 -CREATE TABLE IF NOT EXISTS `role_allocations` (  
2640 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2641 - `folder_id` int(11) NOT NULL DEFAULT '0',  
2642 - `role_id` int(11) NOT NULL DEFAULT '0',  
2643 - `permission_descriptor_id` int(11) NOT NULL DEFAULT '0',  
2644 - PRIMARY KEY (`id`),  
2645 - KEY `folder_id` (`folder_id`),  
2646 - KEY `role_id` (`role_id`),  
2647 - KEY `permission_descriptor_id` (`permission_descriptor_id`)  
2648 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2649 -  
2650 ---  
2651 --- Dumping data for table `role_allocations`  
2652 ---  
2653 -  
2654 -INSERT INTO `role_allocations` (`id`, `folder_id`, `role_id`, `permission_descriptor_id`) VALUES  
2655 -(1, 2, 5, 4),  
2656 -(2, 3, 5, 4);  
2657 -  
2658 --- --------------------------------------------------------  
2659 -  
2660 ---  
2661 --- Table structure for table `saved_searches`  
2662 ---  
2663 -  
2664 -CREATE TABLE IF NOT EXISTS `saved_searches` (  
2665 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2666 - `name` varchar(255) NOT NULL,  
2667 - `namespace` varchar(255) NOT NULL,  
2668 - `is_condition` tinyint(1) NOT NULL DEFAULT '0',  
2669 - `is_complete` tinyint(1) NOT NULL DEFAULT '0',  
2670 - `user_id` int(10) DEFAULT NULL,  
2671 - `search` mediumtext NOT NULL,  
2672 - PRIMARY KEY (`id`),  
2673 - UNIQUE KEY `namespace` (`namespace`),  
2674 - KEY `user_id` (`user_id`)  
2675 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2676 -  
2677 ---  
2678 --- Dumping data for table `saved_searches`  
2679 ---  
2680 -  
2681 -  
2682 --- --------------------------------------------------------  
2683 -  
2684 ---  
2685 --- Table structure for table `scheduler_tasks`  
2686 ---  
2687 -  
2688 -CREATE TABLE IF NOT EXISTS `scheduler_tasks` (  
2689 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2690 - `task` varchar(50) NOT NULL,  
2691 - `script_url` varchar(255) NOT NULL,  
2692 - `script_params` varchar(255) DEFAULT NULL,  
2693 - `is_complete` tinyint(1) NOT NULL DEFAULT '0',  
2694 - `frequency` varchar(25) DEFAULT NULL,  
2695 - `run_time` datetime DEFAULT NULL,  
2696 - `previous_run_time` datetime DEFAULT NULL,  
2697 - `run_duration` float DEFAULT NULL,  
2698 - `status` enum('enabled','disabled','system') NOT NULL DEFAULT 'disabled',  
2699 - PRIMARY KEY (`id`),  
2700 - UNIQUE KEY `task` (`task`)  
2701 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2702 -  
2703 ---  
2704 --- Dumping data for table `scheduler_tasks`  
2705 ---  
2706 -  
2707 -INSERT INTO `scheduler_tasks` (`id`, `task`, `script_url`, `script_params`, `is_complete`, `frequency`, `run_time`, `previous_run_time`, `run_duration`, `status`) VALUES  
2708 -(1, 'Document Processor', 'search2/bin/cronDocumentProcessor.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'system'),  
2709 -(2, 'Index Migration', 'search2/bin/cronMigration.php', '', 0, '5mins', '2007-10-01 00:00:00', NULL, 0, 'system'),  
2710 -(3, 'Index Optimization', 'search2/bin/cronOptimize.php', '', 0, 'weekly', '2007-10-01 00:00:00', NULL, 0, 'system'),  
2711 -(4, 'Periodic Document Expunge', 'bin/expungeall.php', '', 0, 'weekly', '2007-10-01 00:00:00', NULL, 0, 'disabled'),  
2712 -(5, 'Database Maintenance', 'bin/dbmaint.php', 'optimize', 0, 'monthly', '2007-10-01 00:00:00', NULL, 0, 'disabled'),  
2713 -(6, 'OpenOffice test', 'bin/checkopenoffice.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'enabled'),  
2714 -(7, 'Cleanup Temporary Directory', 'search2/bin/cronCleanup.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'enabled'),  
2715 -(8, 'Disk Usage and Folder Utilisation Statistics', 'plugins/housekeeper/bin/UpdateStats.php', '', 0, '5mins', '2007-10-01 00:00:00', NULL, 0, 'enabled'),  
2716 -(9, 'Refresh Index Statistics', 'search2/bin/cronIndexStats.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'enabled'),  
2717 -(10, 'Refresh Resource Dependancies', 'search2/bin/cronResources.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'enabled'),  
2718 -(11, 'Bulk Download Queue', 'bin/ajaxtasks/downloadTask.php', '', 0, '1min', '2007-10-01 00:00:00', NULL, 0, 'system'),  
2719 -(12, 'Document Alerts', 'plugins/commercial-plugins/alerts/alertTask.php', '', 0, 'daily', '2009-08-26 06:00:00', '2009-08-25 06:00:00', 0, 'enabled');  
2720 -  
2721 --- --------------------------------------------------------  
2722 -  
2723 ---  
2724 --- Table structure for table `search_document_user_link`  
2725 ---  
2726 -  
2727 -CREATE TABLE IF NOT EXISTS `search_document_user_link` (  
2728 - `document_id` int(11) DEFAULT NULL,  
2729 - `user_id` int(11) DEFAULT NULL,  
2730 - KEY `document_id` (`document_id`),  
2731 - KEY `user_id` (`user_id`)  
2732 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2733 -  
2734 ---  
2735 --- Dumping data for table `search_document_user_link`  
2736 ---  
2737 -  
2738 -  
2739 --- --------------------------------------------------------  
2740 -  
2741 ---  
2742 --- Table structure for table `search_ranking`  
2743 ---  
2744 -  
2745 -CREATE TABLE IF NOT EXISTS `search_ranking` (  
2746 - `groupname` varchar(100) NOT NULL,  
2747 - `itemname` varchar(100) NOT NULL,  
2748 - `ranking` float DEFAULT '0',  
2749 - `type` enum('T','M','S') DEFAULT 'T' COMMENT 'T=Table, M=Metadata, S=Searchable',  
2750 - PRIMARY KEY (`groupname`,`itemname`)  
2751 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2752 -  
2753 ---  
2754 --- Dumping data for table `search_ranking`  
2755 ---  
2756 -  
2757 -INSERT INTO `search_ranking` (`groupname`, `itemname`, `ranking`, `type`) VALUES  
2758 -('Discussion', '', 150, 'S'),  
2759 -('documents', 'checked_out_user_id', 1, 'T'),  
2760 -('documents', 'created', 1, 'T'),  
2761 -('documents', 'creator_id', 1, 'T'),  
2762 -('documents', 'id', 1, 'T'),  
2763 -('documents', 'immutable', 1, 'T'),  
2764 -('documents', 'is_checked_out', 1, 'T'),  
2765 -('documents', 'modified', 1, 'T'),  
2766 -('documents', 'modified_user_id', 1, 'T'),  
2767 -('documents', 'title', 300, 'T'),  
2768 -('DocumentText', '', 100, 'S'),  
2769 -('document_content_version', 'filename', 10, 'T'),  
2770 -('document_content_version', 'filesize', 1, 'T'),  
2771 -('document_fields_link', 'value', 1, 'T'),  
2772 -('document_metadata_version', 'document_type_id', 1, 'T'),  
2773 -('document_metadata_version', 'name', 300, 'T'),  
2774 -('document_metadata_version', 'workflow_id', 1, 'T'),  
2775 -('document_metadata_version', 'workflow_state_id', 1, 'T'),  
2776 -('tag_words', 'tag', 1, 'T');  
2777 -  
2778 --- --------------------------------------------------------  
2779 -  
2780 ---  
2781 --- Table structure for table `search_saved`  
2782 ---  
2783 -  
2784 -CREATE TABLE IF NOT EXISTS `search_saved` (  
2785 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2786 - `name` varchar(100) NOT NULL,  
2787 - `expression` mediumtext NOT NULL,  
2788 - `user_id` int(11) NOT NULL,  
2789 - `type` enum('S','C','W','B') NOT NULL DEFAULT 'S' COMMENT 'S=saved search, C=permission, w=workflow, B=subscription',  
2790 - `shared` tinyint(4) NOT NULL DEFAULT '0',  
2791 - PRIMARY KEY (`id`),  
2792 - KEY `user_id` (`user_id`)  
2793 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2794 -  
2795 ---  
2796 --- Dumping data for table `search_saved`  
2797 ---  
2798 -  
2799 -  
2800 --- --------------------------------------------------------  
2801 -  
2802 ---  
2803 --- Table structure for table `search_saved_events`  
2804 ---  
2805 -  
2806 -CREATE TABLE IF NOT EXISTS `search_saved_events` (  
2807 - `document_id` int(11) NOT NULL,  
2808 - PRIMARY KEY (`document_id`)  
2809 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2810 -  
2811 ---  
2812 --- Dumping data for table `search_saved_events`  
2813 ---  
2814 -  
2815 -  
2816 --- --------------------------------------------------------  
2817 -  
2818 ---  
2819 --- Table structure for table `status_lookup`  
2820 ---  
2821 -  
2822 -CREATE TABLE IF NOT EXISTS `status_lookup` (  
2823 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2824 - `name` varchar(255) NOT NULL,  
2825 - PRIMARY KEY (`id`)  
2826 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2827 -  
2828 ---  
2829 --- Dumping data for table `status_lookup`  
2830 ---  
2831 -  
2832 -INSERT INTO `status_lookup` (`id`, `name`) VALUES  
2833 -(1, 'Live'),  
2834 -(2, 'Published'),  
2835 -(3, 'Deleted'),  
2836 -(4, 'Archived'),  
2837 -(5, 'Incomplete'),  
2838 -(6, 'Version Deleted');  
2839 -  
2840 --- --------------------------------------------------------  
2841 -  
2842 ---  
2843 --- Table structure for table `system_settings`  
2844 ---  
2845 -  
2846 -CREATE TABLE IF NOT EXISTS `system_settings` (  
2847 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2848 - `name` varchar(255) NOT NULL,  
2849 - `value` text NOT NULL,  
2850 - PRIMARY KEY (`id`),  
2851 - UNIQUE KEY `name` (`name`)  
2852 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2853 -  
2854 ---  
2855 --- Dumping data for table `system_settings`  
2856 ---  
2857 -  
2858 -INSERT INTO `system_settings` (`id`, `name`, `value`) VALUES  
2859 -(1, 'lastIndexUpdate', '0'),  
2860 -(2, 'knowledgeTreeVersion', '3.7.0\r\n'),  
2861 -(3, 'databaseVersion', '3.7.0'),  
2862 -(4, 'server_name', '127.0.0.1'),  
2863 -(5, 'dashboard-state-1', '{"left":[{"id":"KTInfoDashlet","state":0},{"id":"schedulerDashlet","state":0},{"id":"RSSDashlet","state":0},{"id":"MyDropDocumentsDashlet","state":0}],"right":[{"id":"KTMailServerDashlet","state":0},{"id":"KTWebDAVDashlet","state":0},{"id":"RSSDedicatedDashlet","state":0}]}');  
2864 -  
2865 --- --------------------------------------------------------  
2866 -  
2867 ---  
2868 --- Table structure for table `tag_words`  
2869 ---  
2870 -  
2871 -CREATE TABLE IF NOT EXISTS `tag_words` (  
2872 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2873 - `tag` varchar(100) DEFAULT NULL,  
2874 - PRIMARY KEY (`id`)  
2875 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2876 -  
2877 ---  
2878 --- Dumping data for table `tag_words`  
2879 ---  
2880 -  
2881 -  
2882 --- --------------------------------------------------------  
2883 -  
2884 ---  
2885 --- Table structure for table `time_period`  
2886 ---  
2887 -  
2888 -CREATE TABLE IF NOT EXISTS `time_period` (  
2889 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2890 - `time_unit_id` int(11) DEFAULT NULL,  
2891 - `units` int(11) DEFAULT NULL,  
2892 - PRIMARY KEY (`id`),  
2893 - KEY `time_unit_id` (`time_unit_id`)  
2894 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2895 -  
2896 ---  
2897 --- Dumping data for table `time_period`  
2898 ---  
2899 -  
2900 -  
2901 --- --------------------------------------------------------  
2902 -  
2903 ---  
2904 --- Table structure for table `time_unit_lookup`  
2905 ---  
2906 -  
2907 -CREATE TABLE IF NOT EXISTS `time_unit_lookup` (  
2908 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2909 - `name` varchar(100) NOT NULL,  
2910 - PRIMARY KEY (`id`)  
2911 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2912 -  
2913 ---  
2914 --- Dumping data for table `time_unit_lookup`  
2915 ---  
2916 -  
2917 -INSERT INTO `time_unit_lookup` (`id`, `name`) VALUES  
2918 -(1, 'Years'),  
2919 -(2, 'Months'),  
2920 -(3, 'Days');  
2921 -  
2922 --- --------------------------------------------------------  
2923 -  
2924 ---  
2925 --- Table structure for table `trigger_selection`  
2926 ---  
2927 -  
2928 -CREATE TABLE IF NOT EXISTS `trigger_selection` (  
2929 - `event_ns` varchar(255) NOT NULL DEFAULT '',  
2930 - `selection_ns` varchar(255) NOT NULL DEFAULT '',  
2931 - PRIMARY KEY (`event_ns`)  
2932 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2933 -  
2934 ---  
2935 --- Dumping data for table `trigger_selection`  
2936 ---  
2937 -  
2938 -  
2939 --- --------------------------------------------------------  
2940 -  
2941 ---  
2942 --- Table structure for table `type_workflow_map`  
2943 ---  
2944 -  
2945 -CREATE TABLE IF NOT EXISTS `type_workflow_map` (  
2946 - `document_type_id` int(11) NOT NULL DEFAULT '0',  
2947 - `workflow_id` int(11) DEFAULT NULL,  
2948 - PRIMARY KEY (`document_type_id`),  
2949 - KEY `workflow_id` (`workflow_id`)  
2950 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
2951 -  
2952 ---  
2953 --- Dumping data for table `type_workflow_map`  
2954 ---  
2955 -  
2956 -  
2957 --- --------------------------------------------------------  
2958 -  
2959 ---  
2960 --- Table structure for table `units_lookup`  
2961 ---  
2962 -  
2963 -CREATE TABLE IF NOT EXISTS `units_lookup` (  
2964 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2965 - `name` varchar(100) NOT NULL,  
2966 - `folder_id` int(11) NOT NULL DEFAULT '0',  
2967 - PRIMARY KEY (`id`),  
2968 - UNIQUE KEY `name` (`name`),  
2969 - UNIQUE KEY `folder_id` (`folder_id`)  
2970 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2971 -  
2972 ---  
2973 --- Dumping data for table `units_lookup`  
2974 ---  
2975 -  
2976 -  
2977 --- --------------------------------------------------------  
2978 -  
2979 ---  
2980 --- Table structure for table `units_organisations_link`  
2981 ---  
2982 -  
2983 -CREATE TABLE IF NOT EXISTS `units_organisations_link` (  
2984 - `id` int(11) NOT NULL AUTO_INCREMENT,  
2985 - `unit_id` int(11) NOT NULL DEFAULT '0',  
2986 - `organisation_id` int(11) NOT NULL DEFAULT '0',  
2987 - PRIMARY KEY (`id`),  
2988 - KEY `unit_id` (`unit_id`),  
2989 - KEY `organisation_id` (`organisation_id`)  
2990 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
2991 -  
2992 ---  
2993 --- Dumping data for table `units_organisations_link`  
2994 ---  
2995 -  
2996 -  
2997 --- --------------------------------------------------------  
2998 -  
2999 ---  
3000 --- Table structure for table `upgrades`  
3001 ---  
3002 -  
3003 -CREATE TABLE IF NOT EXISTS `upgrades` (  
3004 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3005 - `descriptor` varchar(100) NOT NULL,  
3006 - `description` varchar(255) NOT NULL,  
3007 - `date_performed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',  
3008 - `result` tinyint(1) NOT NULL DEFAULT '0',  
3009 - `parent` varchar(40) DEFAULT NULL,  
3010 - PRIMARY KEY (`id`),  
3011 - KEY `descriptor` (`descriptor`),  
3012 - KEY `parent` (`parent`)  
3013 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3014 -  
3015 ---  
3016 --- Dumping data for table `upgrades`  
3017 ---  
3018 -  
3019 -INSERT INTO `upgrades` (`id`, `descriptor`, `description`, `date_performed`, `result`, `parent`) VALUES  
3020 -(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'),  
3021 -(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'),  
3022 -(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'),  
3023 -(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'),  
3024 -(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'),  
3025 -(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'),  
3026 -(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'),  
3027 -(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'),  
3028 -(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'),  
3029 -(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'),  
3030 -(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'),  
3031 -(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'),  
3032 -(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'),  
3033 -(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'),  
3034 -(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'),  
3035 -(16, 'sql*2.0.9*0*2.0.9/storagemanager.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3036 -(17, 'sql*2.0.9*0*2.0.9/metadata_tree.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3037 -(18, 'sql*2.0.9*0*2.0.9/document_incomplete.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3038 -(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'),  
3039 -(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'),  
3040 -(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'),  
3041 -(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'),  
3042 -(24, 'sql*2.99.2*0*2.99.2/saved_searches.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3043 -(25, 'sql*2.99.2*0*2.99.2/transactions.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3044 -(26, 'sql*2.99.2*0*2.99.2/field_mandatory.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3045 -(27, 'sql*2.99.2*0*2.99.2/fieldsets_system.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3046 -(28, 'sql*2.99.2*0*2.99.2/permission_by_user_and_roles.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3047 -(29, 'sql*2.99.2*0*2.99.2/disabled_metadata.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3048 -(30, 'sql*2.99.2*0*2.99.2/searchable_text.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3049 -(31, 'sql*2.99.2*0*2.99.2/workflow.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3050 -(32, 'sql*2.99.2*1*2.99.2/1-constraints.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3051 -(33, 'sql*2.99.3*0*2.99.3/notifications.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3052 -(34, 'sql*2.99.3*0*2.99.3/last_modified_user.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3053 -(35, 'sql*2.99.3*0*2.99.3/authentication_sources.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3054 -(36, 'sql*2.99.3*0*2.99.3/document_fields_constraints.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3055 -(37, 'sql*2.99.5*0*2.99.5/dashlet_disabling.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3056 -(38, 'sql*2.99.5*0*2.99.5/role_allocations.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3057 -(39, 'sql*2.99.5*0*2.99.5/transaction_namespaces.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3058 -(40, 'sql*2.99.5*0*2.99.5/fieldset_field_descriptions.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3059 -(41, 'sql*2.99.5*0*2.99.5/role_changes.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3060 -(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'),  
3061 -(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'),  
3062 -(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'),  
3063 -(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'),  
3064 -(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'),  
3065 -(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'),  
3066 -(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'),  
3067 -(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'),  
3068 -(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'),  
3069 -(51, 'sql*2.99.7*0*2.99.7/discussion.sql', '', '0000-00-00 00:00:00', 1, NULL),  
3070 -(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'),  
3071 -(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'),  
3072 -(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'),  
3073 -(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'),  
3074 -(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'),  
3075 -(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'),  
3076 -(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'),  
3077 -(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'),  
3078 -(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'),  
3079 -(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'),  
3080 -(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'),  
3081 -(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'),  
3082 -(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'),  
3083 -(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'),  
3084 -(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'),  
3085 -(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'),  
3086 -(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'),  
3087 -(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'),  
3088 -(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'),  
3089 -(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'),  
3090 -(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'),  
3091 -(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'),  
3092 -(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'),  
3093 -(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'),  
3094 -(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'),  
3095 -(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'),  
3096 -(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'),  
3097 -(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'),  
3098 -(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'),  
3099 -(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'),  
3100 -(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'),  
3101 -(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'),  
3102 -(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'),  
3103 -(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'),  
3104 -(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'),  
3105 -(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'),  
3106 -(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'),  
3107 -(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'),  
3108 -(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'),  
3109 -(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'),  
3110 -(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'),  
3111 -(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'),  
3112 -(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'),  
3113 -(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'),  
3114 -(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'),  
3115 -(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'),  
3116 -(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'),  
3117 -(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'),  
3118 -(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'),  
3119 -(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'),  
3120 -(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'),  
3121 -(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'),  
3122 -(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'),  
3123 -(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'),  
3124 -(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'),  
3125 -(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'),  
3126 -(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'),  
3127 -(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'),  
3128 -(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'),  
3129 -(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'),  
3130 -(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'),  
3131 -(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'),  
3132 -(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'),  
3133 -(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'),  
3134 -(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'),  
3135 -(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'),  
3136 -(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'),  
3137 -(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'),  
3138 -(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'),  
3139 -(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'),  
3140 -(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'),  
3141 -(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'),  
3142 -(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'),  
3143 -(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'),  
3144 -(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'),  
3145 -(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'),  
3146 -(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'),  
3147 -(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'),  
3148 -(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'),  
3149 -(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'),  
3150 -(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'),  
3151 -(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'),  
3152 -(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'),  
3153 -(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'),  
3154 -(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'),  
3155 -(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'),  
3156 -(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'),  
3157 -(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'),  
3158 -(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'),  
3159 -(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'),  
3160 -(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'),  
3161 -(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'),  
3162 -(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'),  
3163 -(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'),  
3164 -(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'),  
3165 -(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'),  
3166 -(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'),  
3167 -(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'),  
3168 -(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'),  
3169 -(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'),  
3170 -(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'),  
3171 -(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'),  
3172 -(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'),  
3173 -(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'),  
3174 -(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'),  
3175 -(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'),  
3176 -(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'),  
3177 -(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'),  
3178 -(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'),  
3179 -(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'),  
3180 -(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'),  
3181 -(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'),  
3182 -(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'),  
3183 -(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'),  
3184 -(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'),  
3185 -(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'),  
3186 -(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'),  
3187 -(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'),  
3188 -(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'),  
3189 -(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'),  
3190 -(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'),  
3191 -(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'),  
3192 -(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'),  
3193 -(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'),  
3194 -(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'),  
3195 -(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'),  
3196 -(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'),  
3197 -(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'),  
3198 -(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'),  
3199 -(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'),  
3200 -(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'),  
3201 -(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'),  
3202 -(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'),  
3203 -(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'),  
3204 -(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'),  
3205 -(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'),  
3206 -(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'),  
3207 -(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'),  
3208 -(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'),  
3209 -(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'),  
3210 -(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'),  
3211 -(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'),  
3212 -(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'),  
3213 -(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'),  
3214 -(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'),  
3215 -(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'),  
3216 -(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'),  
3217 -(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'),  
3218 -(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'),  
3219 -(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'),  
3220 -(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'),  
3221 -(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'),  
3222 -(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'),  
3223 -(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'),  
3224 -(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'),  
3225 -(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'),  
3226 -(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'),  
3227 -(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'),  
3228 -(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'),  
3229 -(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'),  
3230 -(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'),  
3231 -(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'),  
3232 -(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'),  
3233 -(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'),  
3234 -(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'),  
3235 -(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'),  
3236 -(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'),  
3237 -(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'),  
3238 -(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'),  
3239 -(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'),  
3240 -(222, 'func*3.6.1*0*removeSlashesFromObjects', 'Remove slashes from documents and folders', '2009-08-25 10:33:16', 1, 'upgrade*3.6.3*99*upgrade3.6.3'),  
3241 -(223, 'sql*3.6.2*0*3.6.2/data_types.sql', 'Database upgrade to version 3.6.2: Data types', '2009-08-25 10:33:17', 1, 'upgrade*3.6.3*99*upgrade3.6.3'),  
3242 -(224, 'sql*3.6.2*0*3.6.2/folders.sql', 'Database upgrade to version 3.6.2: Folders', '2009-08-25 10:33:17', 1, 'upgrade*3.6.3*99*upgrade3.6.3'),  
3243 -(225, 'upgrade*3.7.0*99*upgrade3.7.0', 'Upgrade from version 3.7 to 3.7.0', '2009-09-22 08:28:53', 1, 'upgrade*3.7.0*99*upgrade3.7.0');  
3244 -  
3245 --- --------------------------------------------------------  
3246 -  
3247 ---  
3248 --- Table structure for table `uploaded_files`  
3249 ---  
3250 -  
3251 -CREATE TABLE IF NOT EXISTS `uploaded_files` (  
3252 - `tempfilename` varchar(100) NOT NULL,  
3253 - `filename` varchar(100) NOT NULL,  
3254 - `userid` int(11) NOT NULL,  
3255 - `uploaddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,  
3256 - `action` char(1) NOT NULL COMMENT 'A = Add, C = Checkin',  
3257 - `document_id` int(11) DEFAULT NULL,  
3258 - PRIMARY KEY (`tempfilename`),  
3259 - KEY `userid` (`userid`),  
3260 - KEY `document_id` (`document_id`)  
3261 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3262 -  
3263 ---  
3264 --- Dumping data for table `uploaded_files`  
3265 ---  
3266 -  
3267 -  
3268 --- --------------------------------------------------------  
3269 -  
3270 ---  
3271 --- Table structure for table `users`  
3272 ---  
3273 -  
3274 -CREATE TABLE IF NOT EXISTS `users` (  
3275 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3276 - `username` varchar(255) NOT NULL DEFAULT '',  
3277 - `name` varchar(255) NOT NULL DEFAULT '',  
3278 - `password` varchar(255) NOT NULL DEFAULT '',  
3279 - `quota_max` int(11) NOT NULL DEFAULT '0',  
3280 - `quota_current` int(11) NOT NULL DEFAULT '0',  
3281 - `email` varchar(255) DEFAULT NULL,  
3282 - `mobile` varchar(255) DEFAULT NULL,  
3283 - `email_notification` tinyint(1) NOT NULL DEFAULT '0',  
3284 - `sms_notification` tinyint(1) NOT NULL DEFAULT '0',  
3285 - `authentication_details_s1` varchar(255) DEFAULT NULL,  
3286 - `max_sessions` int(11) DEFAULT NULL,  
3287 - `language_id` int(11) DEFAULT NULL,  
3288 - `authentication_details_s2` varchar(255) DEFAULT NULL,  
3289 - `authentication_source_id` int(11) DEFAULT NULL,  
3290 - `authentication_details_b1` tinyint(1) DEFAULT NULL,  
3291 - `authentication_details_i2` int(11) DEFAULT NULL,  
3292 - `authentication_details_d1` datetime DEFAULT NULL,  
3293 - `authentication_details_i1` int(11) DEFAULT NULL,  
3294 - `authentication_details_d2` datetime DEFAULT NULL,  
3295 - `authentication_details_b2` tinyint(1) DEFAULT NULL,  
3296 - `last_login` datetime DEFAULT NULL,  
3297 - `disabled` tinyint(1) NOT NULL,  
3298 - PRIMARY KEY (`id`),  
3299 - UNIQUE KEY `username` (`username`),  
3300 - KEY `authentication_source_id` (`authentication_source_id`),  
3301 - KEY `last_login` (`last_login`),  
3302 - KEY `disabled` (`disabled`)  
3303 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3304 -  
3305 ---  
3306 --- Dumping data for table `users`  
3307 ---  
3308 -  
3309 -INSERT INTO `users` (`id`, `username`, `name`, `password`, `quota_max`, `quota_current`, `email`, `mobile`, `email_notification`, `sms_notification`, `authentication_details_s1`, `max_sessions`, `language_id`, `authentication_details_s2`, `authentication_source_id`, `authentication_details_b1`, `authentication_details_i2`, `authentication_details_d1`, `authentication_details_i1`, `authentication_details_d2`, `authentication_details_b2`, `last_login`, `disabled`) VALUES  
3310 -(-2, 'anonymous', 'Anonymous', '---------------', 0, 0, NULL, NULL, 0, 0, NULL, 30000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0),  
3311 -(1, 'admin', 'Administrator', '21232f297a57a5a743894a0e4a801fc3', 0, 0, '', '', 1, 1, '', 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2009-09-22 08:28:46', 0);  
3312 -  
3313 --- --------------------------------------------------------  
3314 -  
3315 ---  
3316 --- Table structure for table `users_groups_link`  
3317 ---  
3318 -  
3319 -CREATE TABLE IF NOT EXISTS `users_groups_link` (  
3320 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3321 - `user_id` int(11) NOT NULL DEFAULT '0',  
3322 - `group_id` int(11) NOT NULL DEFAULT '0',  
3323 - PRIMARY KEY (`id`),  
3324 - KEY `user_id` (`user_id`),  
3325 - KEY `group_id` (`group_id`)  
3326 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3327 -  
3328 ---  
3329 --- Dumping data for table `users_groups_link`  
3330 ---  
3331 -  
3332 -INSERT INTO `users_groups_link` (`id`, `user_id`, `group_id`) VALUES  
3333 -(1, 1, 1);  
3334 -  
3335 --- --------------------------------------------------------  
3336 -  
3337 ---  
3338 --- Table structure for table `user_history`  
3339 ---  
3340 -  
3341 -CREATE TABLE IF NOT EXISTS `user_history` (  
3342 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3343 - `datetime` datetime NOT NULL,  
3344 - `user_id` int(11) NOT NULL,  
3345 - `action_namespace` varchar(255) NOT NULL,  
3346 - `comments` mediumtext,  
3347 - `session_id` int(11) DEFAULT NULL,  
3348 - PRIMARY KEY (`id`),  
3349 - KEY `user_id` (`user_id`),  
3350 - KEY `action_namespace` (`action_namespace`),  
3351 - KEY `datetime` (`datetime`),  
3352 - KEY `session_id` (`session_id`)  
3353 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3354 -  
3355 ---  
3356 --- Dumping data for table `user_history`  
3357 ---  
3358 -  
3359 -INSERT INTO `user_history` (`id`, `datetime`, `user_id`, `action_namespace`, `comments`, `session_id`) VALUES  
3360 -(1, '2009-08-25 10:33:07', 1, 'ktcore.user_history.login', 'Logged in from 127.0.0.1', 1),  
3361 -(2, '2009-09-21 09:43:27', 1, 'ktcore.user_history.login', 'Logged in from 127.0.0.1', 2),  
3362 -(3, '2009-09-21 09:45:46', 1, 'ktcore.user_history.login', 'Logged in from 127.0.0.1', 3),  
3363 -(4, '2009-09-22 08:28:46', 1, 'ktcore.user_history.login', 'Logged in from 127.0.0.1', 4),  
3364 -(5, '2009-08-25 10:53:07', 1, 'ktcore.user_history.timeout', 'Session timed out', 0),  
3365 -(6, '2009-09-21 10:03:27', 1, 'ktcore.user_history.timeout', 'Session timed out', 0),  
3366 -(7, '2009-09-21 10:05:46', 1, 'ktcore.user_history.timeout', 'Session timed out', 0);  
3367 -  
3368 --- --------------------------------------------------------  
3369 -  
3370 ---  
3371 --- Table structure for table `user_history_documents`  
3372 ---  
3373 -  
3374 -CREATE TABLE IF NOT EXISTS `user_history_documents` (  
3375 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3376 - `document_id` int(11) NOT NULL DEFAULT '0',  
3377 - `user_id` int(11) NOT NULL DEFAULT '0',  
3378 - `touched` datetime NOT NULL DEFAULT '1999-01-01 00:00:00',  
3379 - PRIMARY KEY (`id`),  
3380 - KEY `user_id` (`user_id`)  
3381 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
3382 -  
3383 ---  
3384 --- Dumping data for table `user_history_documents`  
3385 ---  
3386 -  
3387 -  
3388 --- --------------------------------------------------------  
3389 -  
3390 ---  
3391 --- Table structure for table `user_history_folders`  
3392 ---  
3393 -  
3394 -CREATE TABLE IF NOT EXISTS `user_history_folders` (  
3395 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3396 - `folder_id` int(11) NOT NULL DEFAULT '0',  
3397 - `user_id` int(11) NOT NULL DEFAULT '0',  
3398 - `touched` datetime NOT NULL DEFAULT '1999-01-01 00:00:00',  
3399 - PRIMARY KEY (`id`),  
3400 - KEY `user_id` (`user_id`)  
3401 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
3402 -  
3403 ---  
3404 --- Dumping data for table `user_history_folders`  
3405 ---  
3406 -  
3407 -  
3408 --- --------------------------------------------------------  
3409 -  
3410 ---  
3411 --- Table structure for table `workflows`  
3412 ---  
3413 -  
3414 -CREATE TABLE IF NOT EXISTS `workflows` (  
3415 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3416 - `name` varchar(255) NOT NULL,  
3417 - `human_name` varchar(100) NOT NULL,  
3418 - `start_state_id` int(11) DEFAULT NULL,  
3419 - `enabled` tinyint(1) NOT NULL DEFAULT '1',  
3420 - PRIMARY KEY (`id`),  
3421 - UNIQUE KEY `name` (`name`),  
3422 - KEY `start_state_id` (`start_state_id`)  
3423 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3424 -  
3425 ---  
3426 --- Dumping data for table `workflows`  
3427 ---  
3428 -  
3429 -INSERT INTO `workflows` (`id`, `name`, `human_name`, `start_state_id`, `enabled`) VALUES  
3430 -(2, 'Review Process', 'Review Process', 2, 1),  
3431 -(3, 'Generate Document', 'Generate Document', 5, 1);  
3432 -  
3433 --- --------------------------------------------------------  
3434 -  
3435 ---  
3436 --- Table structure for table `workflow_actions`  
3437 ---  
3438 -  
3439 -CREATE TABLE IF NOT EXISTS `workflow_actions` (  
3440 - `workflow_id` int(11) NOT NULL DEFAULT '0',  
3441 - `action_name` varchar(255) NOT NULL,  
3442 - PRIMARY KEY (`workflow_id`)  
3443 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3444 -  
3445 ---  
3446 --- Dumping data for table `workflow_actions`  
3447 ---  
3448 -  
3449 -  
3450 --- --------------------------------------------------------  
3451 -  
3452 ---  
3453 --- Table structure for table `workflow_documents`  
3454 ---  
3455 -  
3456 -CREATE TABLE IF NOT EXISTS `workflow_documents` (  
3457 - `document_id` int(11) NOT NULL DEFAULT '0',  
3458 - `workflow_id` int(11) NOT NULL DEFAULT '0',  
3459 - `state_id` int(11) NOT NULL DEFAULT '0',  
3460 - PRIMARY KEY (`document_id`),  
3461 - KEY `workflow_id` (`workflow_id`),  
3462 - KEY `state_id` (`state_id`)  
3463 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3464 -  
3465 ---  
3466 --- Dumping data for table `workflow_documents`  
3467 ---  
3468 -  
3469 -  
3470 --- --------------------------------------------------------  
3471 -  
3472 ---  
3473 --- Table structure for table `workflow_states`  
3474 ---  
3475 -  
3476 -CREATE TABLE IF NOT EXISTS `workflow_states` (  
3477 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3478 - `workflow_id` int(11) NOT NULL DEFAULT '0',  
3479 - `name` varchar(255) NOT NULL,  
3480 - `human_name` varchar(100) NOT NULL,  
3481 - `inform_descriptor_id` int(11) DEFAULT NULL,  
3482 - `manage_permissions` tinyint(1) NOT NULL DEFAULT '0',  
3483 - `manage_actions` tinyint(1) NOT NULL DEFAULT '0',  
3484 - PRIMARY KEY (`id`),  
3485 - KEY `workflow_id` (`workflow_id`),  
3486 - KEY `name` (`name`),  
3487 - KEY `inform_descriptor_id` (`inform_descriptor_id`)  
3488 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3489 -  
3490 ---  
3491 --- Dumping data for table `workflow_states`  
3492 ---  
3493 -  
3494 -INSERT INTO `workflow_states` (`id`, `workflow_id`, `name`, `human_name`, `inform_descriptor_id`, `manage_permissions`, `manage_actions`) VALUES  
3495 -(2, 2, 'Draft', 'Draft', NULL, 0, 0),  
3496 -(3, 2, 'Approval', 'Approval', NULL, 0, 0),  
3497 -(4, 2, 'Published', 'Published', NULL, 0, 0),  
3498 -(5, 3, 'Draft', 'Draft', NULL, 0, 0),  
3499 -(6, 3, 'Final', 'Final', NULL, 0, 0),  
3500 -(7, 3, 'Published', 'Published', NULL, 0, 0);  
3501 -  
3502 --- --------------------------------------------------------  
3503 -  
3504 ---  
3505 --- Table structure for table `workflow_state_actions`  
3506 ---  
3507 -  
3508 -CREATE TABLE IF NOT EXISTS `workflow_state_actions` (  
3509 - `state_id` int(11) NOT NULL DEFAULT '0',  
3510 - `action_name` varchar(255) NOT NULL,  
3511 - KEY `state_id` (`state_id`)  
3512 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3513 -  
3514 ---  
3515 --- Dumping data for table `workflow_state_actions`  
3516 ---  
3517 -  
3518 -  
3519 --- --------------------------------------------------------  
3520 -  
3521 ---  
3522 --- Table structure for table `workflow_state_disabled_actions`  
3523 ---  
3524 -  
3525 -CREATE TABLE IF NOT EXISTS `workflow_state_disabled_actions` (  
3526 - `state_id` int(11) NOT NULL DEFAULT '0',  
3527 - `action_name` varchar(255) NOT NULL,  
3528 - KEY `state_id` (`state_id`)  
3529 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3530 -  
3531 ---  
3532 --- Dumping data for table `workflow_state_disabled_actions`  
3533 ---  
3534 -  
3535 -  
3536 --- --------------------------------------------------------  
3537 -  
3538 ---  
3539 --- Table structure for table `workflow_state_permission_assignments`  
3540 ---  
3541 -  
3542 -CREATE TABLE IF NOT EXISTS `workflow_state_permission_assignments` (  
3543 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3544 - `workflow_state_id` int(11) NOT NULL DEFAULT '0',  
3545 - `permission_id` int(11) NOT NULL DEFAULT '0',  
3546 - `permission_descriptor_id` int(11) NOT NULL DEFAULT '0',  
3547 - PRIMARY KEY (`id`),  
3548 - KEY `permission_id` (`permission_id`),  
3549 - KEY `permission_descriptor_id` (`permission_descriptor_id`),  
3550 - KEY `workflow_state_id` (`workflow_state_id`)  
3551 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3552 -  
3553 ---  
3554 --- Dumping data for table `workflow_state_permission_assignments`  
3555 ---  
3556 -  
3557 -  
3558 --- --------------------------------------------------------  
3559 -  
3560 ---  
3561 --- Table structure for table `workflow_state_transitions`  
3562 ---  
3563 -  
3564 -CREATE TABLE IF NOT EXISTS `workflow_state_transitions` (  
3565 - `state_id` int(11) NOT NULL DEFAULT '0',  
3566 - `transition_id` int(11) NOT NULL DEFAULT '0',  
3567 - PRIMARY KEY (`state_id`,`transition_id`),  
3568 - KEY `transition_id` (`transition_id`)  
3569 -) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
3570 -  
3571 ---  
3572 --- Dumping data for table `workflow_state_transitions`  
3573 ---  
3574 -  
3575 -INSERT INTO `workflow_state_transitions` (`state_id`, `transition_id`) VALUES  
3576 -(2, 2),  
3577 -(3, 3),  
3578 -(3, 4),  
3579 -(5, 5),  
3580 -(6, 6);  
3581 -  
3582 --- --------------------------------------------------------  
3583 -  
3584 ---  
3585 --- Table structure for table `workflow_transitions`  
3586 ---  
3587 -  
3588 -CREATE TABLE IF NOT EXISTS `workflow_transitions` (  
3589 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3590 - `workflow_id` int(11) NOT NULL DEFAULT '0',  
3591 - `name` varchar(255) NOT NULL,  
3592 - `human_name` varchar(255) NOT NULL,  
3593 - `target_state_id` int(11) NOT NULL DEFAULT '0',  
3594 - `guard_permission_id` int(11) DEFAULT '0',  
3595 - `guard_group_id` int(11) DEFAULT '0',  
3596 - `guard_role_id` int(11) DEFAULT '0',  
3597 - `guard_condition_id` int(11) DEFAULT NULL,  
3598 - PRIMARY KEY (`id`),  
3599 - UNIQUE KEY `workflow_id_name` (`workflow_id`,`name`),  
3600 - KEY `target_state_id` (`target_state_id`),  
3601 - KEY `guard_condition_id` (`guard_condition_id`),  
3602 - KEY `guard_group_id` (`guard_group_id`),  
3603 - KEY `guard_role_id` (`guard_role_id`),  
3604 - KEY `name` (`name`),  
3605 - KEY `guard_permission_id` (`guard_permission_id`)  
3606 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
3607 -  
3608 ---  
3609 --- Dumping data for table `workflow_transitions`  
3610 ---  
3611 -  
3612 -INSERT INTO `workflow_transitions` (`id`, `workflow_id`, `name`, `human_name`, `target_state_id`, `guard_permission_id`, `guard_group_id`, `guard_role_id`, `guard_condition_id`) VALUES  
3613 -(2, 2, 'Request Approval', 'Request Approval', 3, NULL, NULL, NULL, NULL),  
3614 -(3, 2, 'Reject', 'Reject', 2, NULL, NULL, NULL, NULL),  
3615 -(4, 2, 'Approve', 'Approve', 4, NULL, NULL, NULL, NULL),  
3616 -(5, 3, 'Draft Completed', 'Draft Completed', 6, NULL, NULL, NULL, NULL),  
3617 -(6, 3, 'Publish', 'Publish', 7, NULL, NULL, NULL, NULL);  
3618 -  
3619 --- --------------------------------------------------------  
3620 -  
3621 ---  
3622 --- Table structure for table `workflow_trigger_instances`  
3623 ---  
3624 -  
3625 -CREATE TABLE IF NOT EXISTS `workflow_trigger_instances` (  
3626 - `id` int(11) NOT NULL AUTO_INCREMENT,  
3627 - `workflow_transition_id` int(11) NOT NULL DEFAULT '0',  
3628 - `namespace` varchar(255) NOT NULL,  
3629 - `config_array` text,  
3630 - PRIMARY KEY (`id`),  
3631 - KEY `workflow_transition_id` (`workflow_transition_id`),  
3632 - KEY `namespace` (`namespace`)  
3633 -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;  
3634 -  
3635 ---  
3636 --- Dumping data for table `workflow_trigger_instances`  
3637 ---  
3638 -  
3639 -  
3640 --- --------------------------------------------------------  
3641 -  
3642 ---  
3643 --- Table structure for table `zseq_active_sessions`  
3644 ---  
3645 -  
3646 -CREATE TABLE IF NOT EXISTS `zseq_active_sessions` (  
3647 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3648 - PRIMARY KEY (`id`)  
3649 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3650 -  
3651 ---  
3652 --- Dumping data for table `zseq_active_sessions`  
3653 ---  
3654 -  
3655 -INSERT INTO `zseq_active_sessions` (`id`) VALUES  
3656 -(1);  
3657 -  
3658 --- --------------------------------------------------------  
3659 -  
3660 ---  
3661 --- Table structure for table `zseq_archive_restoration_request`  
3662 ---  
3663 -  
3664 -CREATE TABLE IF NOT EXISTS `zseq_archive_restoration_request` (  
3665 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3666 - PRIMARY KEY (`id`)  
3667 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3668 -  
3669 ---  
3670 --- Dumping data for table `zseq_archive_restoration_request`  
3671 ---  
3672 -  
3673 -INSERT INTO `zseq_archive_restoration_request` (`id`) VALUES  
3674 -(1);  
3675 -  
3676 --- --------------------------------------------------------  
3677 -  
3678 ---  
3679 --- Table structure for table `zseq_archiving_settings`  
3680 ---  
3681 -  
3682 -CREATE TABLE IF NOT EXISTS `zseq_archiving_settings` (  
3683 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3684 - PRIMARY KEY (`id`)  
3685 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3686 -  
3687 ---  
3688 --- Dumping data for table `zseq_archiving_settings`  
3689 ---  
3690 -  
3691 -INSERT INTO `zseq_archiving_settings` (`id`) VALUES  
3692 -(1);  
3693 -  
3694 --- --------------------------------------------------------  
3695 -  
3696 ---  
3697 --- Table structure for table `zseq_archiving_type_lookup`  
3698 ---  
3699 -  
3700 -CREATE TABLE IF NOT EXISTS `zseq_archiving_type_lookup` (  
3701 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3702 - PRIMARY KEY (`id`)  
3703 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3704 -  
3705 ---  
3706 --- Dumping data for table `zseq_archiving_type_lookup`  
3707 ---  
3708 -  
3709 -INSERT INTO `zseq_archiving_type_lookup` (`id`) VALUES  
3710 -(2);  
3711 -  
3712 --- --------------------------------------------------------  
3713 -  
3714 ---  
3715 --- Table structure for table `zseq_authentication_sources`  
3716 ---  
3717 -  
3718 -CREATE TABLE IF NOT EXISTS `zseq_authentication_sources` (  
3719 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3720 - PRIMARY KEY (`id`)  
3721 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3722 -  
3723 ---  
3724 --- Dumping data for table `zseq_authentication_sources`  
3725 ---  
3726 -  
3727 -INSERT INTO `zseq_authentication_sources` (`id`) VALUES  
3728 -(1);  
3729 -  
3730 --- --------------------------------------------------------  
3731 -  
3732 ---  
3733 --- Table structure for table `zseq_baobab_keys`  
3734 ---  
3735 -  
3736 -CREATE TABLE IF NOT EXISTS `zseq_baobab_keys` (  
3737 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3738 - PRIMARY KEY (`id`)  
3739 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3740 -  
3741 ---  
3742 --- Dumping data for table `zseq_baobab_keys`  
3743 ---  
3744 -  
3745 -  
3746 --- --------------------------------------------------------  
3747 -  
3748 ---  
3749 --- Table structure for table `zseq_baobab_user_keys`  
3750 ---  
3751 -  
3752 -CREATE TABLE IF NOT EXISTS `zseq_baobab_user_keys` (  
3753 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3754 - PRIMARY KEY (`id`)  
3755 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3756 -  
3757 ---  
3758 --- Dumping data for table `zseq_baobab_user_keys`  
3759 ---  
3760 -  
3761 -  
3762 --- --------------------------------------------------------  
3763 -  
3764 ---  
3765 --- Table structure for table `zseq_column_entries`  
3766 ---  
3767 -  
3768 -CREATE TABLE IF NOT EXISTS `zseq_column_entries` (  
3769 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3770 - PRIMARY KEY (`id`)  
3771 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3772 -  
3773 ---  
3774 --- Dumping data for table `zseq_column_entries`  
3775 ---  
3776 -  
3777 -INSERT INTO `zseq_column_entries` (`id`) VALUES  
3778 -(15);  
3779 -  
3780 --- --------------------------------------------------------  
3781 -  
3782 ---  
3783 --- Table structure for table `zseq_config_settings`  
3784 ---  
3785 -  
3786 -CREATE TABLE IF NOT EXISTS `zseq_config_settings` (  
3787 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3788 - PRIMARY KEY (`id`)  
3789 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3790 -  
3791 ---  
3792 --- Dumping data for table `zseq_config_settings`  
3793 ---  
3794 -  
3795 -  
3796 --- --------------------------------------------------------  
3797 -  
3798 ---  
3799 --- Table structure for table `zseq_dashlet_disables`  
3800 ---  
3801 -  
3802 -CREATE TABLE IF NOT EXISTS `zseq_dashlet_disables` (  
3803 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3804 - PRIMARY KEY (`id`)  
3805 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3806 -  
3807 ---  
3808 --- Dumping data for table `zseq_dashlet_disables`  
3809 ---  
3810 -  
3811 -INSERT INTO `zseq_dashlet_disables` (`id`) VALUES  
3812 -(1);  
3813 -  
3814 --- --------------------------------------------------------  
3815 -  
3816 ---  
3817 --- Table structure for table `zseq_data_types`  
3818 ---  
3819 -  
3820 -CREATE TABLE IF NOT EXISTS `zseq_data_types` (  
3821 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3822 - PRIMARY KEY (`id`)  
3823 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3824 -  
3825 ---  
3826 --- Dumping data for table `zseq_data_types`  
3827 ---  
3828 -  
3829 -INSERT INTO `zseq_data_types` (`id`) VALUES  
3830 -(5);  
3831 -  
3832 --- --------------------------------------------------------  
3833 -  
3834 ---  
3835 --- Table structure for table `zseq_discussion_comments`  
3836 ---  
3837 -  
3838 -CREATE TABLE IF NOT EXISTS `zseq_discussion_comments` (  
3839 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3840 - PRIMARY KEY (`id`)  
3841 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3842 -  
3843 ---  
3844 --- Dumping data for table `zseq_discussion_comments`  
3845 ---  
3846 -  
3847 -INSERT INTO `zseq_discussion_comments` (`id`) VALUES  
3848 -(1);  
3849 -  
3850 --- --------------------------------------------------------  
3851 -  
3852 ---  
3853 --- Table structure for table `zseq_discussion_threads`  
3854 ---  
3855 -  
3856 -CREATE TABLE IF NOT EXISTS `zseq_discussion_threads` (  
3857 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3858 - PRIMARY KEY (`id`)  
3859 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3860 -  
3861 ---  
3862 --- Dumping data for table `zseq_discussion_threads`  
3863 ---  
3864 -  
3865 -INSERT INTO `zseq_discussion_threads` (`id`) VALUES  
3866 -(1);  
3867 -  
3868 --- --------------------------------------------------------  
3869 -  
3870 ---  
3871 --- Table structure for table `zseq_documents`  
3872 ---  
3873 -  
3874 -CREATE TABLE IF NOT EXISTS `zseq_documents` (  
3875 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3876 - PRIMARY KEY (`id`)  
3877 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3878 -  
3879 ---  
3880 --- Dumping data for table `zseq_documents`  
3881 ---  
3882 -  
3883 -INSERT INTO `zseq_documents` (`id`) VALUES  
3884 -(1);  
3885 -  
3886 --- --------------------------------------------------------  
3887 -  
3888 ---  
3889 --- Table structure for table `zseq_document_archiving_link`  
3890 ---  
3891 -  
3892 -CREATE TABLE IF NOT EXISTS `zseq_document_archiving_link` (  
3893 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3894 - PRIMARY KEY (`id`)  
3895 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3896 -  
3897 ---  
3898 --- Dumping data for table `zseq_document_archiving_link`  
3899 ---  
3900 -  
3901 -INSERT INTO `zseq_document_archiving_link` (`id`) VALUES  
3902 -(1);  
3903 -  
3904 --- --------------------------------------------------------  
3905 -  
3906 ---  
3907 --- Table structure for table `zseq_document_content_version`  
3908 ---  
3909 -  
3910 -CREATE TABLE IF NOT EXISTS `zseq_document_content_version` (  
3911 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3912 - PRIMARY KEY (`id`)  
3913 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3914 -  
3915 ---  
3916 --- Dumping data for table `zseq_document_content_version`  
3917 ---  
3918 -  
3919 -INSERT INTO `zseq_document_content_version` (`id`) VALUES  
3920 -(1);  
3921 -  
3922 --- --------------------------------------------------------  
3923 -  
3924 ---  
3925 --- Table structure for table `zseq_document_fields`  
3926 ---  
3927 -  
3928 -CREATE TABLE IF NOT EXISTS `zseq_document_fields` (  
3929 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3930 - PRIMARY KEY (`id`)  
3931 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3932 -  
3933 ---  
3934 --- Dumping data for table `zseq_document_fields`  
3935 ---  
3936 -  
3937 -INSERT INTO `zseq_document_fields` (`id`) VALUES  
3938 -(5);  
3939 -  
3940 --- --------------------------------------------------------  
3941 -  
3942 ---  
3943 --- Table structure for table `zseq_document_fields_link`  
3944 ---  
3945 -  
3946 -CREATE TABLE IF NOT EXISTS `zseq_document_fields_link` (  
3947 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3948 - PRIMARY KEY (`id`)  
3949 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3950 -  
3951 ---  
3952 --- Dumping data for table `zseq_document_fields_link`  
3953 ---  
3954 -  
3955 -INSERT INTO `zseq_document_fields_link` (`id`) VALUES  
3956 -(1);  
3957 -  
3958 --- --------------------------------------------------------  
3959 -  
3960 ---  
3961 --- Table structure for table `zseq_document_link`  
3962 ---  
3963 -  
3964 -CREATE TABLE IF NOT EXISTS `zseq_document_link` (  
3965 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3966 - PRIMARY KEY (`id`)  
3967 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3968 -  
3969 ---  
3970 --- Dumping data for table `zseq_document_link`  
3971 ---  
3972 -  
3973 -INSERT INTO `zseq_document_link` (`id`) VALUES  
3974 -(1);  
3975 -  
3976 --- --------------------------------------------------------  
3977 -  
3978 ---  
3979 --- Table structure for table `zseq_document_link_types`  
3980 ---  
3981 -  
3982 -CREATE TABLE IF NOT EXISTS `zseq_document_link_types` (  
3983 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
3984 - PRIMARY KEY (`id`)  
3985 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
3986 -  
3987 ---  
3988 --- Dumping data for table `zseq_document_link_types`  
3989 ---  
3990 -  
3991 -INSERT INTO `zseq_document_link_types` (`id`) VALUES  
3992 -(5);  
3993 -  
3994 --- --------------------------------------------------------  
3995 -  
3996 ---  
3997 --- Table structure for table `zseq_document_metadata_version`  
3998 ---  
3999 -  
4000 -CREATE TABLE IF NOT EXISTS `zseq_document_metadata_version` (  
4001 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4002 - PRIMARY KEY (`id`)  
4003 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4004 -  
4005 ---  
4006 --- Dumping data for table `zseq_document_metadata_version`  
4007 ---  
4008 -  
4009 -INSERT INTO `zseq_document_metadata_version` (`id`) VALUES  
4010 -(1);  
4011 -  
4012 --- --------------------------------------------------------  
4013 -  
4014 ---  
4015 --- Table structure for table `zseq_document_role_allocations`  
4016 ---  
4017 -  
4018 -CREATE TABLE IF NOT EXISTS `zseq_document_role_allocations` (  
4019 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4020 - PRIMARY KEY (`id`)  
4021 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4022 -  
4023 ---  
4024 --- Dumping data for table `zseq_document_role_allocations`  
4025 ---  
4026 -  
4027 -  
4028 --- --------------------------------------------------------  
4029 -  
4030 ---  
4031 --- Table structure for table `zseq_document_subscriptions`  
4032 ---  
4033 -  
4034 -CREATE TABLE IF NOT EXISTS `zseq_document_subscriptions` (  
4035 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4036 - PRIMARY KEY (`id`)  
4037 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4038 -  
4039 ---  
4040 --- Dumping data for table `zseq_document_subscriptions`  
4041 ---  
4042 -  
4043 -INSERT INTO `zseq_document_subscriptions` (`id`) VALUES  
4044 -(1);  
4045 -  
4046 --- --------------------------------------------------------  
4047 -  
4048 ---  
4049 --- Table structure for table `zseq_document_tags`  
4050 ---  
4051 -  
4052 -CREATE TABLE IF NOT EXISTS `zseq_document_tags` (  
4053 - `id` int(10) NOT NULL AUTO_INCREMENT,  
4054 - PRIMARY KEY (`id`)  
4055 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;  
4056 -  
4057 ---  
4058 --- Dumping data for table `zseq_document_tags`  
4059 ---  
4060 -  
4061 -INSERT INTO `zseq_document_tags` (`id`) VALUES  
4062 -(1);  
4063 -  
4064 --- --------------------------------------------------------  
4065 -  
4066 ---  
4067 --- Table structure for table `zseq_document_transactions`  
4068 ---  
4069 -  
4070 -CREATE TABLE IF NOT EXISTS `zseq_document_transactions` (  
4071 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4072 - PRIMARY KEY (`id`)  
4073 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4074 -  
4075 ---  
4076 --- Dumping data for table `zseq_document_transactions`  
4077 ---  
4078 -  
4079 -INSERT INTO `zseq_document_transactions` (`id`) VALUES  
4080 -(1);  
4081 -  
4082 --- --------------------------------------------------------  
4083 -  
4084 ---  
4085 --- Table structure for table `zseq_document_transaction_types_lookup`  
4086 ---  
4087 -  
4088 -CREATE TABLE IF NOT EXISTS `zseq_document_transaction_types_lookup` (  
4089 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4090 - PRIMARY KEY (`id`)  
4091 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4092 -  
4093 ---  
4094 --- Dumping data for table `zseq_document_transaction_types_lookup`  
4095 ---  
4096 -  
4097 -INSERT INTO `zseq_document_transaction_types_lookup` (`id`) VALUES  
4098 -(21);  
4099 -  
4100 --- --------------------------------------------------------  
4101 -  
4102 ---  
4103 --- Table structure for table `zseq_document_types_lookup`  
4104 ---  
4105 -  
4106 -CREATE TABLE IF NOT EXISTS `zseq_document_types_lookup` (  
4107 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4108 - PRIMARY KEY (`id`)  
4109 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4110 -  
4111 ---  
4112 --- Dumping data for table `zseq_document_types_lookup`  
4113 ---  
4114 -  
4115 -INSERT INTO `zseq_document_types_lookup` (`id`) VALUES  
4116 -(1);  
4117 -  
4118 --- --------------------------------------------------------  
4119 -  
4120 ---  
4121 --- Table structure for table `zseq_document_type_fieldsets_link`  
4122 ---  
4123 -  
4124 -CREATE TABLE IF NOT EXISTS `zseq_document_type_fieldsets_link` (  
4125 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4126 - PRIMARY KEY (`id`)  
4127 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;  
4128 -  
4129 ---  
4130 --- Dumping data for table `zseq_document_type_fieldsets_link`  
4131 ---  
4132 -  
4133 -INSERT INTO `zseq_document_type_fieldsets_link` (`id`) VALUES  
4134 -(1);  
4135 -  
4136 --- --------------------------------------------------------  
4137 -  
4138 ---  
4139 --- Table structure for table `zseq_document_type_fields_link`  
4140 ---  
4141 -  
4142 -CREATE TABLE IF NOT EXISTS `zseq_document_type_fields_link` (  
4143 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4144 - PRIMARY KEY (`id`)  
4145 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4146 -  
4147 ---  
4148 --- Dumping data for table `zseq_document_type_fields_link`  
4149 ---  
4150 -  
4151 -INSERT INTO `zseq_document_type_fields_link` (`id`) VALUES  
4152 -(1);  
4153 -  
4154 --- --------------------------------------------------------  
4155 -  
4156 ---  
4157 --- Table structure for table `zseq_fieldsets`  
4158 ---  
4159 -  
4160 -CREATE TABLE IF NOT EXISTS `zseq_fieldsets` (  
4161 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4162 - PRIMARY KEY (`id`)  
4163 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4164 -  
4165 ---  
4166 --- Dumping data for table `zseq_fieldsets`  
4167 ---  
4168 -  
4169 -INSERT INTO `zseq_fieldsets` (`id`) VALUES  
4170 -(3);  
4171 -  
4172 --- --------------------------------------------------------  
4173 -  
4174 ---  
4175 --- Table structure for table `zseq_field_behaviours`  
4176 ---  
4177 -  
4178 -CREATE TABLE IF NOT EXISTS `zseq_field_behaviours` (  
4179 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4180 - PRIMARY KEY (`id`)  
4181 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4182 -  
4183 ---  
4184 --- Dumping data for table `zseq_field_behaviours`  
4185 ---  
4186 -  
4187 -INSERT INTO `zseq_field_behaviours` (`id`) VALUES  
4188 -(1);  
4189 -  
4190 --- --------------------------------------------------------  
4191 -  
4192 ---  
4193 --- Table structure for table `zseq_field_value_instances`  
4194 ---  
4195 -  
4196 -CREATE TABLE IF NOT EXISTS `zseq_field_value_instances` (  
4197 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4198 - PRIMARY KEY (`id`)  
4199 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4200 -  
4201 ---  
4202 --- Dumping data for table `zseq_field_value_instances`  
4203 ---  
4204 -  
4205 -INSERT INTO `zseq_field_value_instances` (`id`) VALUES  
4206 -(1);  
4207 -  
4208 --- --------------------------------------------------------  
4209 -  
4210 ---  
4211 --- Table structure for table `zseq_folders`  
4212 ---  
4213 -  
4214 -CREATE TABLE IF NOT EXISTS `zseq_folders` (  
4215 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4216 - PRIMARY KEY (`id`)  
4217 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;  
4218 -  
4219 ---  
4220 --- Dumping data for table `zseq_folders`  
4221 ---  
4222 -  
4223 -INSERT INTO `zseq_folders` (`id`) VALUES  
4224 -(2);  
4225 -  
4226 --- --------------------------------------------------------  
4227 -  
4228 ---  
4229 --- Table structure for table `zseq_folders_users_roles_link`  
4230 ---  
4231 -  
4232 -CREATE TABLE IF NOT EXISTS `zseq_folders_users_roles_link` (  
4233 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4234 - PRIMARY KEY (`id`)  
4235 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4236 -  
4237 ---  
4238 --- Dumping data for table `zseq_folders_users_roles_link`  
4239 ---  
4240 -  
4241 -INSERT INTO `zseq_folders_users_roles_link` (`id`) VALUES  
4242 -(1);  
4243 -  
4244 --- --------------------------------------------------------  
4245 -  
4246 ---  
4247 --- Table structure for table `zseq_folder_doctypes_link`  
4248 ---  
4249 -  
4250 -CREATE TABLE IF NOT EXISTS `zseq_folder_doctypes_link` (  
4251 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4252 - PRIMARY KEY (`id`)  
4253 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;  
4254 -  
4255 ---  
4256 --- Dumping data for table `zseq_folder_doctypes_link`  
4257 ---  
4258 -  
4259 -INSERT INTO `zseq_folder_doctypes_link` (`id`) VALUES  
4260 -(2);  
4261 -  
4262 --- --------------------------------------------------------  
4263 -  
4264 ---  
4265 --- Table structure for table `zseq_folder_subscriptions`  
4266 ---  
4267 -  
4268 -CREATE TABLE IF NOT EXISTS `zseq_folder_subscriptions` (  
4269 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4270 - PRIMARY KEY (`id`)  
4271 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4272 -  
4273 ---  
4274 --- Dumping data for table `zseq_folder_subscriptions`  
4275 ---  
4276 -  
4277 -INSERT INTO `zseq_folder_subscriptions` (`id`) VALUES  
4278 -(1);  
4279 -  
4280 --- --------------------------------------------------------  
4281 -  
4282 ---  
4283 --- Table structure for table `zseq_folder_transactions`  
4284 ---  
4285 -  
4286 -CREATE TABLE IF NOT EXISTS `zseq_folder_transactions` (  
4287 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4288 - PRIMARY KEY (`id`)  
4289 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
4290 -  
4291 ---  
4292 --- Dumping data for table `zseq_folder_transactions`  
4293 ---  
4294 -  
4295 -  
4296 --- --------------------------------------------------------  
4297 -  
4298 ---  
4299 --- Table structure for table `zseq_groups_groups_link`  
4300 ---  
4301 -  
4302 -CREATE TABLE IF NOT EXISTS `zseq_groups_groups_link` (  
4303 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4304 - PRIMARY KEY (`id`)  
4305 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4306 -  
4307 ---  
4308 --- Dumping data for table `zseq_groups_groups_link`  
4309 ---  
4310 -  
4311 -INSERT INTO `zseq_groups_groups_link` (`id`) VALUES  
4312 -(1);  
4313 -  
4314 --- --------------------------------------------------------  
4315 -  
4316 ---  
4317 --- Table structure for table `zseq_groups_lookup`  
4318 ---  
4319 -  
4320 -CREATE TABLE IF NOT EXISTS `zseq_groups_lookup` (  
4321 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4322 - PRIMARY KEY (`id`)  
4323 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4324 -  
4325 ---  
4326 --- Dumping data for table `zseq_groups_lookup`  
4327 ---  
4328 -  
4329 -INSERT INTO `zseq_groups_lookup` (`id`) VALUES  
4330 -(3);  
4331 -  
4332 --- --------------------------------------------------------  
4333 -  
4334 ---  
4335 --- Table structure for table `zseq_help`  
4336 ---  
4337 -  
4338 -CREATE TABLE IF NOT EXISTS `zseq_help` (  
4339 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4340 - PRIMARY KEY (`id`)  
4341 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ;  
4342 -  
4343 ---  
4344 --- Dumping data for table `zseq_help`  
4345 ---  
4346 -  
4347 -INSERT INTO `zseq_help` (`id`) VALUES  
4348 -(100);  
4349 -  
4350 --- --------------------------------------------------------  
4351 -  
4352 ---  
4353 --- Table structure for table `zseq_help_replacement`  
4354 ---  
4355 -  
4356 -CREATE TABLE IF NOT EXISTS `zseq_help_replacement` (  
4357 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4358 - PRIMARY KEY (`id`)  
4359 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4360 -  
4361 ---  
4362 --- Dumping data for table `zseq_help_replacement`  
4363 ---  
4364 -  
4365 -INSERT INTO `zseq_help_replacement` (`id`) VALUES  
4366 -(1);  
4367 -  
4368 --- --------------------------------------------------------  
4369 -  
4370 ---  
4371 --- Table structure for table `zseq_interceptor_instances`  
4372 ---  
4373 -  
4374 -CREATE TABLE IF NOT EXISTS `zseq_interceptor_instances` (  
4375 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4376 - PRIMARY KEY (`id`)  
4377 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
4378 -  
4379 ---  
4380 --- Dumping data for table `zseq_interceptor_instances`  
4381 ---  
4382 -  
4383 -  
4384 --- --------------------------------------------------------  
4385 -  
4386 ---  
4387 --- Table structure for table `zseq_links`  
4388 ---  
4389 -  
4390 -CREATE TABLE IF NOT EXISTS `zseq_links` (  
4391 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4392 - PRIMARY KEY (`id`)  
4393 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4394 -  
4395 ---  
4396 --- Dumping data for table `zseq_links`  
4397 ---  
4398 -  
4399 -INSERT INTO `zseq_links` (`id`) VALUES  
4400 -(1);  
4401 -  
4402 --- --------------------------------------------------------  
4403 -  
4404 ---  
4405 --- Table structure for table `zseq_metadata_lookup`  
4406 ---  
4407 -  
4408 -CREATE TABLE IF NOT EXISTS `zseq_metadata_lookup` (  
4409 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4410 - PRIMARY KEY (`id`)  
4411 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;  
4412 -  
4413 ---  
4414 --- Dumping data for table `zseq_metadata_lookup`  
4415 ---  
4416 -  
4417 -INSERT INTO `zseq_metadata_lookup` (`id`) VALUES  
4418 -(11);  
4419 -  
4420 --- --------------------------------------------------------  
4421 -  
4422 ---  
4423 --- Table structure for table `zseq_metadata_lookup_tree`  
4424 ---  
4425 -  
4426 -CREATE TABLE IF NOT EXISTS `zseq_metadata_lookup_tree` (  
4427 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4428 - PRIMARY KEY (`id`)  
4429 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4430 -  
4431 ---  
4432 --- Dumping data for table `zseq_metadata_lookup_tree`  
4433 ---  
4434 -  
4435 -INSERT INTO `zseq_metadata_lookup_tree` (`id`) VALUES  
4436 -(1);  
4437 -  
4438 --- --------------------------------------------------------  
4439 -  
4440 ---  
4441 --- Table structure for table `zseq_mime_documents`  
4442 ---  
4443 -  
4444 -CREATE TABLE IF NOT EXISTS `zseq_mime_documents` (  
4445 - `id` int(11) DEFAULT NULL  
4446 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
4447 -  
4448 ---  
4449 --- Dumping data for table `zseq_mime_documents`  
4450 ---  
4451 -  
4452 -  
4453 --- --------------------------------------------------------  
4454 -  
4455 ---  
4456 --- Table structure for table `zseq_mime_extractors`  
4457 ---  
4458 -  
4459 -CREATE TABLE IF NOT EXISTS `zseq_mime_extractors` (  
4460 - `id` int(11) DEFAULT NULL  
4461 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
4462 -  
4463 ---  
4464 --- Dumping data for table `zseq_mime_extractors`  
4465 ---  
4466 -  
4467 -INSERT INTO `zseq_mime_extractors` (`id`) VALUES  
4468 -(1);  
4469 -  
4470 --- --------------------------------------------------------  
4471 -  
4472 ---  
4473 --- Table structure for table `zseq_mime_types`  
4474 ---  
4475 -  
4476 -CREATE TABLE IF NOT EXISTS `zseq_mime_types` (  
4477 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4478 - PRIMARY KEY (`id`)  
4479 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=172 ;  
4480 -  
4481 ---  
4482 --- Dumping data for table `zseq_mime_types`  
4483 ---  
4484 -  
4485 -INSERT INTO `zseq_mime_types` (`id`) VALUES  
4486 -(171);  
4487 -  
4488 --- --------------------------------------------------------  
4489 -  
4490 ---  
4491 --- Table structure for table `zseq_news`  
4492 ---  
4493 -  
4494 -CREATE TABLE IF NOT EXISTS `zseq_news` (  
4495 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4496 - PRIMARY KEY (`id`)  
4497 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4498 -  
4499 ---  
4500 --- Dumping data for table `zseq_news`  
4501 ---  
4502 -  
4503 -INSERT INTO `zseq_news` (`id`) VALUES  
4504 -(1);  
4505 -  
4506 --- --------------------------------------------------------  
4507 -  
4508 ---  
4509 --- Table structure for table `zseq_notifications`  
4510 ---  
4511 -  
4512 -CREATE TABLE IF NOT EXISTS `zseq_notifications` (  
4513 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4514 - PRIMARY KEY (`id`)  
4515 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4516 -  
4517 ---  
4518 --- Dumping data for table `zseq_notifications`  
4519 ---  
4520 -  
4521 -INSERT INTO `zseq_notifications` (`id`) VALUES  
4522 -(1);  
4523 -  
4524 --- --------------------------------------------------------  
4525 -  
4526 ---  
4527 --- Table structure for table `zseq_organisations_lookup`  
4528 ---  
4529 -  
4530 -CREATE TABLE IF NOT EXISTS `zseq_organisations_lookup` (  
4531 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4532 - PRIMARY KEY (`id`)  
4533 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4534 -  
4535 ---  
4536 --- Dumping data for table `zseq_organisations_lookup`  
4537 ---  
4538 -  
4539 -INSERT INTO `zseq_organisations_lookup` (`id`) VALUES  
4540 -(1);  
4541 -  
4542 --- --------------------------------------------------------  
4543 -  
4544 ---  
4545 --- Table structure for table `zseq_permissions`  
4546 ---  
4547 -  
4548 -CREATE TABLE IF NOT EXISTS `zseq_permissions` (  
4549 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4550 - PRIMARY KEY (`id`)  
4551 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;  
4552 -  
4553 ---  
4554 --- Dumping data for table `zseq_permissions`  
4555 ---  
4556 -  
4557 -INSERT INTO `zseq_permissions` (`id`) VALUES  
4558 -(8);  
4559 -  
4560 --- --------------------------------------------------------  
4561 -  
4562 ---  
4563 --- Table structure for table `zseq_permission_assignments`  
4564 ---  
4565 -  
4566 -CREATE TABLE IF NOT EXISTS `zseq_permission_assignments` (  
4567 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4568 - PRIMARY KEY (`id`)  
4569 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;  
4570 -  
4571 ---  
4572 --- Dumping data for table `zseq_permission_assignments`  
4573 ---  
4574 -  
4575 -INSERT INTO `zseq_permission_assignments` (`id`) VALUES  
4576 -(8);  
4577 -  
4578 --- --------------------------------------------------------  
4579 -  
4580 ---  
4581 --- Table structure for table `zseq_permission_descriptors`  
4582 ---  
4583 -  
4584 -CREATE TABLE IF NOT EXISTS `zseq_permission_descriptors` (  
4585 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4586 - PRIMARY KEY (`id`)  
4587 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;  
4588 -  
4589 ---  
4590 --- Dumping data for table `zseq_permission_descriptors`  
4591 ---  
4592 -  
4593 -INSERT INTO `zseq_permission_descriptors` (`id`) VALUES  
4594 -(2);  
4595 -  
4596 --- --------------------------------------------------------  
4597 -  
4598 ---  
4599 --- Table structure for table `zseq_permission_dynamic_conditions`  
4600 ---  
4601 -  
4602 -CREATE TABLE IF NOT EXISTS `zseq_permission_dynamic_conditions` (  
4603 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4604 - PRIMARY KEY (`id`)  
4605 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4606 -  
4607 ---  
4608 --- Dumping data for table `zseq_permission_dynamic_conditions`  
4609 ---  
4610 -  
4611 -INSERT INTO `zseq_permission_dynamic_conditions` (`id`) VALUES  
4612 -(1);  
4613 -  
4614 --- --------------------------------------------------------  
4615 -  
4616 ---  
4617 --- Table structure for table `zseq_permission_lookups`  
4618 ---  
4619 -  
4620 -CREATE TABLE IF NOT EXISTS `zseq_permission_lookups` (  
4621 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4622 - PRIMARY KEY (`id`)  
4623 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;  
4624 -  
4625 ---  
4626 --- Dumping data for table `zseq_permission_lookups`  
4627 ---  
4628 -  
4629 -INSERT INTO `zseq_permission_lookups` (`id`) VALUES  
4630 -(5);  
4631 -  
4632 --- --------------------------------------------------------  
4633 -  
4634 ---  
4635 --- Table structure for table `zseq_permission_lookup_assignments`  
4636 ---  
4637 -  
4638 -CREATE TABLE IF NOT EXISTS `zseq_permission_lookup_assignments` (  
4639 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4640 - PRIMARY KEY (`id`)  
4641 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;  
4642 -  
4643 ---  
4644 --- Dumping data for table `zseq_permission_lookup_assignments`  
4645 ---  
4646 -  
4647 -INSERT INTO `zseq_permission_lookup_assignments` (`id`) VALUES  
4648 -(24);  
4649 -  
4650 --- --------------------------------------------------------  
4651 -  
4652 ---  
4653 --- Table structure for table `zseq_permission_objects`  
4654 ---  
4655 -  
4656 -CREATE TABLE IF NOT EXISTS `zseq_permission_objects` (  
4657 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4658 - PRIMARY KEY (`id`)  
4659 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4660 -  
4661 ---  
4662 --- Dumping data for table `zseq_permission_objects`  
4663 ---  
4664 -  
4665 -INSERT INTO `zseq_permission_objects` (`id`) VALUES  
4666 -(1);  
4667 -  
4668 --- --------------------------------------------------------  
4669 -  
4670 ---  
4671 --- Table structure for table `zseq_plugins`  
4672 ---  
4673 -  
4674 -CREATE TABLE IF NOT EXISTS `zseq_plugins` (  
4675 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4676 - PRIMARY KEY (`id`)  
4677 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;  
4678 -  
4679 ---  
4680 --- Dumping data for table `zseq_plugins`  
4681 ---  
4682 -  
4683 -INSERT INTO `zseq_plugins` (`id`) VALUES  
4684 -(22);  
4685 -  
4686 --- --------------------------------------------------------  
4687 -  
4688 ---  
4689 --- Table structure for table `zseq_plugin_helper`  
4690 ---  
4691 -  
4692 -CREATE TABLE IF NOT EXISTS `zseq_plugin_helper` (  
4693 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4694 - PRIMARY KEY (`id`)  
4695 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
4696 -  
4697 ---  
4698 --- Dumping data for table `zseq_plugin_helper`  
4699 ---  
4700 -  
4701 -  
4702 --- --------------------------------------------------------  
4703 -  
4704 ---  
4705 --- Table structure for table `zseq_plugin_rss`  
4706 ---  
4707 -  
4708 -CREATE TABLE IF NOT EXISTS `zseq_plugin_rss` (  
4709 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4710 - PRIMARY KEY (`id`)  
4711 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4712 -  
4713 ---  
4714 --- Dumping data for table `zseq_plugin_rss`  
4715 ---  
4716 -  
4717 -INSERT INTO `zseq_plugin_rss` (`id`) VALUES  
4718 -(1);  
4719 -  
4720 --- --------------------------------------------------------  
4721 -  
4722 ---  
4723 --- Table structure for table `zseq_quicklinks`  
4724 ---  
4725 -  
4726 -CREATE TABLE IF NOT EXISTS `zseq_quicklinks` (  
4727 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4728 - PRIMARY KEY (`id`)  
4729 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
4730 -  
4731 ---  
4732 --- Dumping data for table `zseq_quicklinks`  
4733 ---  
4734 -  
4735 -  
4736 --- --------------------------------------------------------  
4737 -  
4738 ---  
4739 --- Table structure for table `zseq_roles`  
4740 ---  
4741 -  
4742 -CREATE TABLE IF NOT EXISTS `zseq_roles` (  
4743 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4744 - PRIMARY KEY (`id`)  
4745 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;  
4746 -  
4747 ---  
4748 --- Dumping data for table `zseq_roles`  
4749 ---  
4750 -  
4751 -INSERT INTO `zseq_roles` (`id`) VALUES  
4752 -(4);  
4753 -  
4754 --- --------------------------------------------------------  
4755 -  
4756 ---  
4757 --- Table structure for table `zseq_role_allocations`  
4758 ---  
4759 -  
4760 -CREATE TABLE IF NOT EXISTS `zseq_role_allocations` (  
4761 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4762 - PRIMARY KEY (`id`)  
4763 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4764 -  
4765 ---  
4766 --- Dumping data for table `zseq_role_allocations`  
4767 ---  
4768 -  
4769 -INSERT INTO `zseq_role_allocations` (`id`) VALUES  
4770 -(1);  
4771 -  
4772 --- --------------------------------------------------------  
4773 -  
4774 ---  
4775 --- Table structure for table `zseq_saved_searches`  
4776 ---  
4777 -  
4778 -CREATE TABLE IF NOT EXISTS `zseq_saved_searches` (  
4779 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4780 - PRIMARY KEY (`id`)  
4781 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4782 -  
4783 ---  
4784 --- Dumping data for table `zseq_saved_searches`  
4785 ---  
4786 -  
4787 -INSERT INTO `zseq_saved_searches` (`id`) VALUES  
4788 -(1);  
4789 -  
4790 --- --------------------------------------------------------  
4791 -  
4792 ---  
4793 --- Table structure for table `zseq_scheduler_tasks`  
4794 ---  
4795 -  
4796 -CREATE TABLE IF NOT EXISTS `zseq_scheduler_tasks` (  
4797 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4798 - PRIMARY KEY (`id`)  
4799 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;  
4800 -  
4801 ---  
4802 --- Dumping data for table `zseq_scheduler_tasks`  
4803 ---  
4804 -  
4805 -INSERT INTO `zseq_scheduler_tasks` (`id`) VALUES  
4806 -(10);  
4807 -  
4808 --- --------------------------------------------------------  
4809 -  
4810 ---  
4811 --- Table structure for table `zseq_search_saved`  
4812 ---  
4813 -  
4814 -CREATE TABLE IF NOT EXISTS `zseq_search_saved` (  
4815 - `id` int(11) DEFAULT NULL  
4816 -) ENGINE=MyISAM DEFAULT CHARSET=utf8;  
4817 -  
4818 ---  
4819 --- Dumping data for table `zseq_search_saved`  
4820 ---  
4821 -  
4822 -  
4823 --- --------------------------------------------------------  
4824 -  
4825 ---  
4826 --- Table structure for table `zseq_status_lookup`  
4827 ---  
4828 -  
4829 -CREATE TABLE IF NOT EXISTS `zseq_status_lookup` (  
4830 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4831 - PRIMARY KEY (`id`)  
4832 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;  
4833 -  
4834 ---  
4835 --- Dumping data for table `zseq_status_lookup`  
4836 ---  
4837 -  
4838 -INSERT INTO `zseq_status_lookup` (`id`) VALUES  
4839 -(6);  
4840 -  
4841 --- --------------------------------------------------------  
4842 -  
4843 ---  
4844 --- Table structure for table `zseq_system_settings`  
4845 ---  
4846 -  
4847 -CREATE TABLE IF NOT EXISTS `zseq_system_settings` (  
4848 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4849 - PRIMARY KEY (`id`)  
4850 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4851 -  
4852 ---  
4853 --- Dumping data for table `zseq_system_settings`  
4854 ---  
4855 -  
4856 -INSERT INTO `zseq_system_settings` (`id`) VALUES  
4857 -(3);  
4858 -  
4859 --- --------------------------------------------------------  
4860 -  
4861 ---  
4862 --- Table structure for table `zseq_tag_words`  
4863 ---  
4864 -  
4865 -CREATE TABLE IF NOT EXISTS `zseq_tag_words` (  
4866 - `id` int(10) NOT NULL AUTO_INCREMENT,  
4867 - PRIMARY KEY (`id`)  
4868 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;  
4869 -  
4870 ---  
4871 --- Dumping data for table `zseq_tag_words`  
4872 ---  
4873 -  
4874 -INSERT INTO `zseq_tag_words` (`id`) VALUES  
4875 -(1);  
4876 -  
4877 --- --------------------------------------------------------  
4878 -  
4879 ---  
4880 --- Table structure for table `zseq_time_period`  
4881 ---  
4882 -  
4883 -CREATE TABLE IF NOT EXISTS `zseq_time_period` (  
4884 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4885 - PRIMARY KEY (`id`)  
4886 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4887 -  
4888 ---  
4889 --- Dumping data for table `zseq_time_period`  
4890 ---  
4891 -  
4892 -INSERT INTO `zseq_time_period` (`id`) VALUES  
4893 -(1);  
4894 -  
4895 --- --------------------------------------------------------  
4896 -  
4897 ---  
4898 --- Table structure for table `zseq_time_unit_lookup`  
4899 ---  
4900 -  
4901 -CREATE TABLE IF NOT EXISTS `zseq_time_unit_lookup` (  
4902 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4903 - PRIMARY KEY (`id`)  
4904 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4905 -  
4906 ---  
4907 --- Dumping data for table `zseq_time_unit_lookup`  
4908 ---  
4909 -  
4910 -INSERT INTO `zseq_time_unit_lookup` (`id`) VALUES  
4911 -(3);  
4912 -  
4913 --- --------------------------------------------------------  
4914 -  
4915 ---  
4916 --- Table structure for table `zseq_units_lookup`  
4917 ---  
4918 -  
4919 -CREATE TABLE IF NOT EXISTS `zseq_units_lookup` (  
4920 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4921 - PRIMARY KEY (`id`)  
4922 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4923 -  
4924 ---  
4925 --- Dumping data for table `zseq_units_lookup`  
4926 ---  
4927 -  
4928 -INSERT INTO `zseq_units_lookup` (`id`) VALUES  
4929 -(1);  
4930 -  
4931 --- --------------------------------------------------------  
4932 -  
4933 ---  
4934 --- Table structure for table `zseq_units_organisations_link`  
4935 ---  
4936 -  
4937 -CREATE TABLE IF NOT EXISTS `zseq_units_organisations_link` (  
4938 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4939 - PRIMARY KEY (`id`)  
4940 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;  
4941 -  
4942 ---  
4943 --- Dumping data for table `zseq_units_organisations_link`  
4944 ---  
4945 -  
4946 -INSERT INTO `zseq_units_organisations_link` (`id`) VALUES  
4947 -(1);  
4948 -  
4949 --- --------------------------------------------------------  
4950 -  
4951 ---  
4952 --- Table structure for table `zseq_upgrades`  
4953 ---  
4954 -  
4955 -CREATE TABLE IF NOT EXISTS `zseq_upgrades` (  
4956 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4957 - PRIMARY KEY (`id`)  
4958 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=222 ;  
4959 -  
4960 ---  
4961 --- Dumping data for table `zseq_upgrades`  
4962 ---  
4963 -  
4964 -INSERT INTO `zseq_upgrades` (`id`) VALUES  
4965 -(221);  
4966 -  
4967 --- --------------------------------------------------------  
4968 -  
4969 ---  
4970 --- Table structure for table `zseq_users`  
4971 ---  
4972 -  
4973 -CREATE TABLE IF NOT EXISTS `zseq_users` (  
4974 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4975 - PRIMARY KEY (`id`)  
4976 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4977 -  
4978 ---  
4979 --- Dumping data for table `zseq_users`  
4980 ---  
4981 -  
4982 -INSERT INTO `zseq_users` (`id`) VALUES  
4983 -(3);  
4984 -  
4985 --- --------------------------------------------------------  
4986 -  
4987 ---  
4988 --- Table structure for table `zseq_users_groups_link`  
4989 ---  
4990 -  
4991 -CREATE TABLE IF NOT EXISTS `zseq_users_groups_link` (  
4992 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
4993 - PRIMARY KEY (`id`)  
4994 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
4995 -  
4996 ---  
4997 --- Dumping data for table `zseq_users_groups_link`  
4998 ---  
4999 -  
5000 -INSERT INTO `zseq_users_groups_link` (`id`) VALUES  
5001 -(3);  
5002 -  
5003 --- --------------------------------------------------------  
5004 -  
5005 ---  
5006 --- Table structure for table `zseq_user_history`  
5007 ---  
5008 -  
5009 -CREATE TABLE IF NOT EXISTS `zseq_user_history` (  
5010 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5011 - PRIMARY KEY (`id`)  
5012 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
5013 -  
5014 ---  
5015 --- Dumping data for table `zseq_user_history`  
5016 ---  
5017 -  
5018 -  
5019 --- --------------------------------------------------------  
5020 -  
5021 ---  
5022 --- Table structure for table `zseq_user_history_documents`  
5023 ---  
5024 -  
5025 -CREATE TABLE IF NOT EXISTS `zseq_user_history_documents` (  
5026 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5027 - PRIMARY KEY (`id`)  
5028 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;  
5029 -  
5030 ---  
5031 --- Dumping data for table `zseq_user_history_documents`  
5032 ---  
5033 -  
5034 -  
5035 --- --------------------------------------------------------  
5036 -  
5037 ---  
5038 --- Table structure for table `zseq_user_history_folders`  
5039 ---  
5040 -  
5041 -CREATE TABLE IF NOT EXISTS `zseq_user_history_folders` (  
5042 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5043 - PRIMARY KEY (`id`)  
5044 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;  
5045 -  
5046 ---  
5047 --- Dumping data for table `zseq_user_history_folders`  
5048 ---  
5049 -  
5050 -  
5051 --- --------------------------------------------------------  
5052 -  
5053 ---  
5054 --- Table structure for table `zseq_workflows`  
5055 ---  
5056 -  
5057 -CREATE TABLE IF NOT EXISTS `zseq_workflows` (  
5058 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5059 - PRIMARY KEY (`id`)  
5060 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  
5061 -  
5062 ---  
5063 --- Dumping data for table `zseq_workflows`  
5064 ---  
5065 -  
5066 -INSERT INTO `zseq_workflows` (`id`) VALUES  
5067 -(3);  
5068 -  
5069 --- --------------------------------------------------------  
5070 -  
5071 ---  
5072 --- Table structure for table `zseq_workflow_states`  
5073 ---  
5074 -  
5075 -CREATE TABLE IF NOT EXISTS `zseq_workflow_states` (  
5076 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5077 - PRIMARY KEY (`id`)  
5078 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;  
5079 -  
5080 ---  
5081 --- Dumping data for table `zseq_workflow_states`  
5082 ---  
5083 -  
5084 -INSERT INTO `zseq_workflow_states` (`id`) VALUES  
5085 -(7);  
5086 -  
5087 --- --------------------------------------------------------  
5088 -  
5089 ---  
5090 --- Table structure for table `zseq_workflow_state_disabled_actions`  
5091 ---  
5092 -  
5093 -CREATE TABLE IF NOT EXISTS `zseq_workflow_state_disabled_actions` (  
5094 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5095 - PRIMARY KEY (`id`)  
5096 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
5097 -  
5098 ---  
5099 --- Dumping data for table `zseq_workflow_state_disabled_actions`  
5100 ---  
5101 -  
5102 -  
5103 --- --------------------------------------------------------  
5104 -  
5105 ---  
5106 --- Table structure for table `zseq_workflow_state_permission_assignments`  
5107 ---  
5108 -  
5109 -CREATE TABLE IF NOT EXISTS `zseq_workflow_state_permission_assignments` (  
5110 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5111 - PRIMARY KEY (`id`)  
5112 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
5113 -  
5114 ---  
5115 --- Dumping data for table `zseq_workflow_state_permission_assignments`  
5116 ---  
5117 -  
5118 -  
5119 --- --------------------------------------------------------  
5120 -  
5121 ---  
5122 --- Table structure for table `zseq_workflow_transitions`  
5123 ---  
5124 -  
5125 -CREATE TABLE IF NOT EXISTS `zseq_workflow_transitions` (  
5126 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5127 - PRIMARY KEY (`id`)  
5128 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;  
5129 -  
5130 ---  
5131 --- Dumping data for table `zseq_workflow_transitions`  
5132 ---  
5133 -  
5134 -INSERT INTO `zseq_workflow_transitions` (`id`) VALUES  
5135 -(6);  
5136 -  
5137 --- --------------------------------------------------------  
5138 -  
5139 ---  
5140 --- Table structure for table `zseq_workflow_trigger_instances`  
5141 ---  
5142 -  
5143 -CREATE TABLE IF NOT EXISTS `zseq_workflow_trigger_instances` (  
5144 - `id` int(10) unsigned NOT NULL AUTO_INCREMENT,  
5145 - PRIMARY KEY (`id`)  
5146 -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  
5147 -  
5148 ---  
5149 --- Dumping data for table `zseq_workflow_trigger_instances`  
5150 ---  
5151 -  
5152 -  
5153 ---  
5154 --- Constraints for dumped tables  
5155 ---  
5156 -  
5157 ---  
5158 --- Constraints for table `active_sessions`  
5159 ---  
5160 -ALTER TABLE `active_sessions`  
5161 - ADD CONSTRAINT `active_sessions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5162 -  
5163 ---  
5164 --- Constraints for table `archive_restoration_request`  
5165 ---  
5166 -ALTER TABLE `archive_restoration_request`  
5167 - ADD CONSTRAINT `archive_restoration_request_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5168 - ADD CONSTRAINT `archive_restoration_request_ibfk_2` FOREIGN KEY (`request_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5169 - ADD CONSTRAINT `archive_restoration_request_ibfk_3` FOREIGN KEY (`admin_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5170 -  
5171 ---  
5172 --- Constraints for table `archiving_settings`  
5173 ---  
5174 -ALTER TABLE `archiving_settings`  
5175 - ADD CONSTRAINT `archiving_settings_ibfk_1` FOREIGN KEY (`archiving_type_id`) REFERENCES `archiving_type_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5176 - ADD CONSTRAINT `archiving_settings_ibfk_2` FOREIGN KEY (`time_period_id`) REFERENCES `time_period` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5177 -  
5178 ---  
5179 --- Constraints for table `baobab_user_keys`  
5180 ---  
5181 -ALTER TABLE `baobab_user_keys`  
5182 - ADD CONSTRAINT `baobab_user_keys_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,  
5183 - ADD CONSTRAINT `baobab_user_keys_ibfk_4` FOREIGN KEY (`key_id`) REFERENCES `baobab_keys` (`id`) ON DELETE CASCADE;  
5184 -  
5185 ---  
5186 --- Constraints for table `dashlet_disables`  
5187 ---  
5188 -ALTER TABLE `dashlet_disables`  
5189 - ADD CONSTRAINT `dashlet_disables_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5190 -  
5191 ---  
5192 --- Constraints for table `discussion_comments`  
5193 ---  
5194 -ALTER TABLE `discussion_comments`  
5195 - ADD CONSTRAINT `discussion_comments_ibfk_1` FOREIGN KEY (`thread_id`) REFERENCES `discussion_threads` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5196 - ADD CONSTRAINT `discussion_comments_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5197 - ADD CONSTRAINT `discussion_comments_ibfk_3` FOREIGN KEY (`in_reply_to`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5198 -  
5199 ---  
5200 --- Constraints for table `discussion_threads`  
5201 ---  
5202 -ALTER TABLE `discussion_threads`  
5203 - ADD CONSTRAINT `discussion_threads_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5204 - ADD CONSTRAINT `discussion_threads_ibfk_2` FOREIGN KEY (`first_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5205 - ADD CONSTRAINT `discussion_threads_ibfk_3` FOREIGN KEY (`last_comment_id`) REFERENCES `discussion_comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5206 - ADD CONSTRAINT `discussion_threads_ibfk_4` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5207 -  
5208 ---  
5209 --- Constraints for table `documents`  
5210 ---  
5211 -ALTER TABLE `documents`  
5212 - ADD CONSTRAINT `documents_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,  
5213 - ADD CONSTRAINT `documents_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5214 - ADD CONSTRAINT `documents_ibfk_3` FOREIGN KEY (`checked_out_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,  
5215 - ADD CONSTRAINT `documents_ibfk_4` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5216 - ADD CONSTRAINT `documents_ibfk_5` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5217 - ADD CONSTRAINT `documents_ibfk_6` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5218 - ADD CONSTRAINT `documents_ibfk_7` FOREIGN KEY (`modified_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,  
5219 - ADD CONSTRAINT `documents_ibfk_8` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5220 -  
5221 ---  
5222 --- Constraints for table `document_archiving_link`  
5223 ---  
5224 -ALTER TABLE `document_archiving_link`  
5225 - ADD CONSTRAINT `document_archiving_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5226 - ADD CONSTRAINT `document_archiving_link_ibfk_2` FOREIGN KEY (`archiving_settings_id`) REFERENCES `archiving_settings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5227 -  
5228 ---  
5229 --- Constraints for table `document_content_version`  
5230 ---  
5231 -ALTER TABLE `document_content_version`  
5232 - ADD CONSTRAINT `document_content_version_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5233 - ADD CONSTRAINT `document_content_version_ibfk_2` FOREIGN KEY (`mime_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5234 -  
5235 ---  
5236 --- Constraints for table `document_fields`  
5237 ---  
5238 -ALTER TABLE `document_fields`  
5239 - ADD CONSTRAINT `document_fields_ibfk_1` FOREIGN KEY (`parent_fieldset`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5240 -  
5241 ---  
5242 --- Constraints for table `document_fields_link`  
5243 ---  
5244 -ALTER TABLE `document_fields_link`  
5245 - ADD CONSTRAINT `document_fields_link_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5246 - ADD CONSTRAINT `document_fields_link_ibfk_2` FOREIGN KEY (`metadata_version_id`) REFERENCES `document_metadata_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5247 -  
5248 ---  
5249 --- Constraints for table `document_link`  
5250 ---  
5251 -ALTER TABLE `document_link`  
5252 - ADD CONSTRAINT `document_link_ibfk_1` FOREIGN KEY (`parent_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5253 - ADD CONSTRAINT `document_link_ibfk_2` FOREIGN KEY (`child_document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5254 - ADD CONSTRAINT `document_link_ibfk_3` FOREIGN KEY (`link_type_id`) REFERENCES `document_link_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5255 -  
5256 ---  
5257 --- Constraints for table `document_metadata_version`  
5258 ---  
5259 -ALTER TABLE `document_metadata_version`  
5260 - ADD CONSTRAINT `document_metadata_version_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5261 - ADD CONSTRAINT `document_metadata_version_ibfk_2` FOREIGN KEY (`status_id`) REFERENCES `status_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5262 - ADD CONSTRAINT `document_metadata_version_ibfk_3` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5263 - ADD CONSTRAINT `document_metadata_version_ibfk_4` FOREIGN KEY (`version_creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5264 - ADD CONSTRAINT `document_metadata_version_ibfk_5` FOREIGN KEY (`content_version_id`) REFERENCES `document_content_version` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5265 - ADD CONSTRAINT `document_metadata_version_ibfk_6` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5266 - ADD CONSTRAINT `document_metadata_version_ibfk_7` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5267 -  
5268 ---  
5269 --- Constraints for table `document_role_allocations`  
5270 ---  
5271 -ALTER TABLE `document_role_allocations`  
5272 - ADD CONSTRAINT `document_role_allocations_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5273 - ADD CONSTRAINT `document_role_allocations_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5274 -  
5275 ---  
5276 --- Constraints for table `document_subscriptions`  
5277 ---  
5278 -ALTER TABLE `document_subscriptions`  
5279 - ADD CONSTRAINT `document_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5280 - ADD CONSTRAINT `document_subscriptions_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5281 -  
5282 ---  
5283 --- Constraints for table `document_tags`  
5284 ---  
5285 -ALTER TABLE `document_tags`  
5286 - ADD CONSTRAINT `document_tags_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5287 - ADD CONSTRAINT `document_tags_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `tag_words` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5288 -  
5289 ---  
5290 --- Constraints for table `document_type_fieldsets_link`  
5291 ---  
5292 -ALTER TABLE `document_type_fieldsets_link`  
5293 - ADD CONSTRAINT `document_type_fieldsets_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5294 - ADD CONSTRAINT `document_type_fieldsets_link_ibfk_2` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5295 -  
5296 ---  
5297 --- Constraints for table `document_type_fields_link`  
5298 ---  
5299 -ALTER TABLE `document_type_fields_link`  
5300 - ADD CONSTRAINT `document_type_fields_link_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5301 - ADD CONSTRAINT `document_type_fields_link_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5302 -  
5303 ---  
5304 --- Constraints for table `download_files`  
5305 ---  
5306 -ALTER TABLE `download_files`  
5307 - ADD CONSTRAINT `download_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5308 -  
5309 ---  
5310 --- Constraints for table `fieldsets`  
5311 ---  
5312 -ALTER TABLE `fieldsets`  
5313 - ADD CONSTRAINT `fieldsets_ibfk_1` FOREIGN KEY (`master_field`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5314 -  
5315 ---  
5316 --- Constraints for table `field_behaviours`  
5317 ---  
5318 -ALTER TABLE `field_behaviours`  
5319 - ADD CONSTRAINT `field_behaviours_ibfk_1` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5320 -  
5321 ---  
5322 --- Constraints for table `field_behaviour_options`  
5323 ---  
5324 -ALTER TABLE `field_behaviour_options`  
5325 - ADD CONSTRAINT `field_behaviour_options_ibfk_1` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5326 - ADD CONSTRAINT `field_behaviour_options_ibfk_2` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5327 - ADD CONSTRAINT `field_behaviour_options_ibfk_3` FOREIGN KEY (`instance_id`) REFERENCES `field_value_instances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5328 -  
5329 ---  
5330 --- Constraints for table `field_orders`  
5331 ---  
5332 -ALTER TABLE `field_orders`  
5333 - ADD CONSTRAINT `field_orders_ibfk_1` FOREIGN KEY (`child_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5334 - ADD CONSTRAINT `field_orders_ibfk_2` FOREIGN KEY (`parent_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5335 - ADD CONSTRAINT `field_orders_ibfk_3` FOREIGN KEY (`fieldset_id`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5336 -  
5337 ---  
5338 --- Constraints for table `field_value_instances`  
5339 ---  
5340 -ALTER TABLE `field_value_instances`  
5341 - ADD CONSTRAINT `field_value_instances_ibfk_1` FOREIGN KEY (`field_value_id`) REFERENCES `metadata_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5342 - ADD CONSTRAINT `field_value_instances_ibfk_2` FOREIGN KEY (`behaviour_id`) REFERENCES `field_behaviours` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5343 - ADD CONSTRAINT `field_value_instances_ibfk_3` FOREIGN KEY (`field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5344 -  
5345 ---  
5346 --- Constraints for table `folders`  
5347 ---  
5348 -ALTER TABLE `folders`  
5349 - ADD CONSTRAINT `folders_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5350 - ADD CONSTRAINT `folders_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5351 - ADD CONSTRAINT `folders_ibfk_3` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5352 - ADD CONSTRAINT `folders_ibfk_4` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5353 -  
5354 ---  
5355 --- Constraints for table `folders_users_roles_link`  
5356 ---  
5357 -ALTER TABLE `folders_users_roles_link`  
5358 - ADD CONSTRAINT `folders_users_roles_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5359 - ADD CONSTRAINT `folders_users_roles_link_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5360 -  
5361 ---  
5362 --- Constraints for table `folder_descendants`  
5363 ---  
5364 -ALTER TABLE `folder_descendants`  
5365 - ADD CONSTRAINT `folder_descendants_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5366 - ADD CONSTRAINT `folder_descendants_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5367 -  
5368 ---  
5369 --- Constraints for table `folder_doctypes_link`  
5370 ---  
5371 -ALTER TABLE `folder_doctypes_link`  
5372 - ADD CONSTRAINT `folder_doctypes_link_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5373 - ADD CONSTRAINT `folder_doctypes_link_ibfk_2` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5374 -  
5375 ---  
5376 --- Constraints for table `folder_subscriptions`  
5377 ---  
5378 -ALTER TABLE `folder_subscriptions`  
5379 - ADD CONSTRAINT `folder_subscriptions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5380 - ADD CONSTRAINT `folder_subscriptions_ibfk_2` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5381 -  
5382 ---  
5383 --- Constraints for table `folder_workflow_map`  
5384 ---  
5385 -ALTER TABLE `folder_workflow_map`  
5386 - ADD CONSTRAINT `folder_workflow_map_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5387 - ADD CONSTRAINT `folder_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5388 -  
5389 ---  
5390 --- Constraints for table `groups_groups_link`  
5391 ---  
5392 -ALTER TABLE `groups_groups_link`  
5393 - ADD CONSTRAINT `groups_groups_link_ibfk_1` FOREIGN KEY (`parent_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5394 - ADD CONSTRAINT `groups_groups_link_ibfk_2` FOREIGN KEY (`member_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5395 -  
5396 ---  
5397 --- Constraints for table `groups_lookup`  
5398 ---  
5399 -ALTER TABLE `groups_lookup`  
5400 - ADD CONSTRAINT `groups_lookup_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5401 -  
5402 ---  
5403 --- Constraints for table `index_files`  
5404 ---  
5405 -ALTER TABLE `index_files`  
5406 - ADD CONSTRAINT `index_files_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5407 - ADD CONSTRAINT `index_files_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5408 -  
5409 ---  
5410 --- Constraints for table `metadata_lookup`  
5411 ---  
5412 -ALTER TABLE `metadata_lookup`  
5413 - ADD CONSTRAINT `metadata_lookup_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5414 -  
5415 ---  
5416 --- Constraints for table `metadata_lookup_tree`  
5417 ---  
5418 -ALTER TABLE `metadata_lookup_tree`  
5419 - ADD CONSTRAINT `metadata_lookup_tree_ibfk_1` FOREIGN KEY (`document_field_id`) REFERENCES `document_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5420 -  
5421 ---  
5422 --- Constraints for table `mime_document_mapping`  
5423 ---  
5424 -ALTER TABLE `mime_document_mapping`  
5425 - ADD CONSTRAINT `mime_document_mapping_ibfk_1` FOREIGN KEY (`mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5426 - ADD CONSTRAINT `mime_document_mapping_ibfk_2` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5427 -  
5428 ---  
5429 --- Constraints for table `mime_types`  
5430 ---  
5431 -ALTER TABLE `mime_types`  
5432 - ADD CONSTRAINT `mime_types_ibfk_1` FOREIGN KEY (`mime_document_id`) REFERENCES `mime_documents` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,  
5433 - ADD CONSTRAINT `mime_types_ibfk_2` FOREIGN KEY (`extractor_id`) REFERENCES `mime_extractors` (`id`) ON DELETE SET NULL ON UPDATE SET NULL;  
5434 -  
5435 ---  
5436 --- Constraints for table `news`  
5437 ---  
5438 -ALTER TABLE `news`  
5439 - ADD CONSTRAINT `news_ibfk_1` FOREIGN KEY (`image_mime_type_id`) REFERENCES `mime_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5440 -  
5441 ---  
5442 --- Constraints for table `notifications`  
5443 ---  
5444 -ALTER TABLE `notifications`  
5445 - ADD CONSTRAINT `notifications_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5446 -  
5447 ---  
5448 --- Constraints for table `permission_assignments`  
5449 ---  
5450 -ALTER TABLE `permission_assignments`  
5451 - ADD CONSTRAINT `permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5452 - ADD CONSTRAINT `permission_assignments_ibfk_2` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5453 - ADD CONSTRAINT `permission_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5454 -  
5455 ---  
5456 --- Constraints for table `permission_descriptor_groups`  
5457 ---  
5458 -ALTER TABLE `permission_descriptor_groups`  
5459 - ADD CONSTRAINT `permission_descriptor_groups_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5460 - ADD CONSTRAINT `permission_descriptor_groups_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5461 -  
5462 ---  
5463 --- Constraints for table `permission_descriptor_roles`  
5464 ---  
5465 -ALTER TABLE `permission_descriptor_roles`  
5466 - ADD CONSTRAINT `permission_descriptor_roles_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5467 - ADD CONSTRAINT `permission_descriptor_roles_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5468 -  
5469 ---  
5470 --- Constraints for table `permission_descriptor_users`  
5471 ---  
5472 -ALTER TABLE `permission_descriptor_users`  
5473 - ADD CONSTRAINT `permission_descriptor_users_ibfk_1` FOREIGN KEY (`descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5474 - ADD CONSTRAINT `permission_descriptor_users_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5475 -  
5476 ---  
5477 --- Constraints for table `permission_dynamic_assignments`  
5478 ---  
5479 -ALTER TABLE `permission_dynamic_assignments`  
5480 - ADD CONSTRAINT `permission_dynamic_assignments_ibfk_1` FOREIGN KEY (`dynamic_condition_id`) REFERENCES `permission_dynamic_conditions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5481 - ADD CONSTRAINT `permission_dynamic_assignments_ibfk_2` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5482 -  
5483 ---  
5484 --- Constraints for table `permission_dynamic_conditions`  
5485 ---  
5486 -ALTER TABLE `permission_dynamic_conditions`  
5487 - ADD CONSTRAINT `permission_dynamic_conditions_ibfk_1` FOREIGN KEY (`permission_object_id`) REFERENCES `permission_objects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5488 - ADD CONSTRAINT `permission_dynamic_conditions_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5489 - ADD CONSTRAINT `permission_dynamic_conditions_ibfk_3` FOREIGN KEY (`condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5490 -  
5491 ---  
5492 --- Constraints for table `permission_lookup_assignments`  
5493 ---  
5494 -ALTER TABLE `permission_lookup_assignments`  
5495 - ADD CONSTRAINT `permission_lookup_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5496 - ADD CONSTRAINT `permission_lookup_assignments_ibfk_2` FOREIGN KEY (`permission_lookup_id`) REFERENCES `permission_lookups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5497 - ADD CONSTRAINT `permission_lookup_assignments_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5498 -  
5499 ---  
5500 --- Constraints for table `plugin_rss`  
5501 ---  
5502 -ALTER TABLE `plugin_rss`  
5503 - ADD CONSTRAINT `plugin_rss_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5504 -  
5505 ---  
5506 --- Constraints for table `role_allocations`  
5507 ---  
5508 -ALTER TABLE `role_allocations`  
5509 - ADD CONSTRAINT `role_allocations_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5510 - ADD CONSTRAINT `role_allocations_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5511 - ADD CONSTRAINT `role_allocations_ibfk_3` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5512 -  
5513 ---  
5514 --- Constraints for table `saved_searches`  
5515 ---  
5516 -ALTER TABLE `saved_searches`  
5517 - ADD CONSTRAINT `saved_searches_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5518 -  
5519 ---  
5520 --- Constraints for table `search_document_user_link`  
5521 ---  
5522 -ALTER TABLE `search_document_user_link`  
5523 - ADD CONSTRAINT `search_document_user_link_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5524 - ADD CONSTRAINT `search_document_user_link_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5525 -  
5526 ---  
5527 --- Constraints for table `search_saved`  
5528 ---  
5529 -ALTER TABLE `search_saved`  
5530 - ADD CONSTRAINT `search_saved_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5531 -  
5532 ---  
5533 --- Constraints for table `search_saved_events`  
5534 ---  
5535 -ALTER TABLE `search_saved_events`  
5536 - ADD CONSTRAINT `search_saved_events_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5537 -  
5538 ---  
5539 --- Constraints for table `time_period`  
5540 ---  
5541 -ALTER TABLE `time_period`  
5542 - ADD CONSTRAINT `time_period_ibfk_1` FOREIGN KEY (`time_unit_id`) REFERENCES `time_unit_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5543 -  
5544 ---  
5545 --- Constraints for table `type_workflow_map`  
5546 ---  
5547 -ALTER TABLE `type_workflow_map`  
5548 - ADD CONSTRAINT `type_workflow_map_ibfk_1` FOREIGN KEY (`document_type_id`) REFERENCES `document_types_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5549 - ADD CONSTRAINT `type_workflow_map_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5550 -  
5551 ---  
5552 --- Constraints for table `units_lookup`  
5553 ---  
5554 -ALTER TABLE `units_lookup`  
5555 - ADD CONSTRAINT `units_lookup_ibfk_1` FOREIGN KEY (`folder_id`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5556 -  
5557 ---  
5558 --- Constraints for table `units_organisations_link`  
5559 ---  
5560 -ALTER TABLE `units_organisations_link`  
5561 - ADD CONSTRAINT `units_organisations_link_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `units_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5562 - ADD CONSTRAINT `units_organisations_link_ibfk_2` FOREIGN KEY (`organisation_id`) REFERENCES `organisations_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5563 -  
5564 ---  
5565 --- Constraints for table `uploaded_files`  
5566 ---  
5567 -ALTER TABLE `uploaded_files`  
5568 - ADD CONSTRAINT `uploaded_files_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5569 - ADD CONSTRAINT `uploaded_files_ibfk_2` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5570 -  
5571 ---  
5572 --- Constraints for table `users`  
5573 ---  
5574 -ALTER TABLE `users`  
5575 - ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`authentication_source_id`) REFERENCES `authentication_sources` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5576 -  
5577 ---  
5578 --- Constraints for table `users_groups_link`  
5579 ---  
5580 -ALTER TABLE `users_groups_link`  
5581 - ADD CONSTRAINT `users_groups_link_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5582 - ADD CONSTRAINT `users_groups_link_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5583 -  
5584 ---  
5585 --- Constraints for table `user_history`  
5586 ---  
5587 -ALTER TABLE `user_history`  
5588 - ADD CONSTRAINT `user_history_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5589 -  
5590 ---  
5591 --- Constraints for table `workflows`  
5592 ---  
5593 -ALTER TABLE `workflows`  
5594 - ADD CONSTRAINT `workflows_ibfk_1` FOREIGN KEY (`start_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5595 -  
5596 ---  
5597 --- Constraints for table `workflow_documents`  
5598 ---  
5599 -ALTER TABLE `workflow_documents`  
5600 - ADD CONSTRAINT `workflow_documents_ibfk_1` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5601 - ADD CONSTRAINT `workflow_documents_ibfk_2` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5602 - ADD CONSTRAINT `workflow_documents_ibfk_3` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5603 -  
5604 ---  
5605 --- Constraints for table `workflow_states`  
5606 ---  
5607 -ALTER TABLE `workflow_states`  
5608 - ADD CONSTRAINT `workflow_states_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5609 - ADD CONSTRAINT `workflow_states_ibfk_2` FOREIGN KEY (`inform_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5610 -  
5611 ---  
5612 --- Constraints for table `workflow_state_actions`  
5613 ---  
5614 -ALTER TABLE `workflow_state_actions`  
5615 - ADD CONSTRAINT `workflow_state_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5616 -  
5617 ---  
5618 --- Constraints for table `workflow_state_disabled_actions`  
5619 ---  
5620 -ALTER TABLE `workflow_state_disabled_actions`  
5621 - ADD CONSTRAINT `workflow_state_disabled_actions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5622 -  
5623 ---  
5624 --- Constraints for table `workflow_state_permission_assignments`  
5625 ---  
5626 -ALTER TABLE `workflow_state_permission_assignments`  
5627 - ADD CONSTRAINT `workflow_state_permission_assignments_ibfk_1` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5628 - ADD CONSTRAINT `workflow_state_permission_assignments_ibfk_2` FOREIGN KEY (`permission_descriptor_id`) REFERENCES `permission_descriptors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5629 - ADD CONSTRAINT `workflow_state_permission_assignments_ibfk_3` FOREIGN KEY (`workflow_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5630 -  
5631 ---  
5632 --- Constraints for table `workflow_state_transitions`  
5633 ---  
5634 -ALTER TABLE `workflow_state_transitions`  
5635 - ADD CONSTRAINT `workflow_state_transitions_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5636 - ADD CONSTRAINT `workflow_state_transitions_ibfk_2` FOREIGN KEY (`transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5637 -  
5638 ---  
5639 --- Constraints for table `workflow_transitions`  
5640 ---  
5641 -ALTER TABLE `workflow_transitions`  
5642 - ADD CONSTRAINT `workflow_transitions_ibfk_1` FOREIGN KEY (`workflow_id`) REFERENCES `workflows` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5643 - ADD CONSTRAINT `workflow_transitions_ibfk_2` FOREIGN KEY (`target_state_id`) REFERENCES `workflow_states` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5644 - ADD CONSTRAINT `workflow_transitions_ibfk_3` FOREIGN KEY (`guard_permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5645 - ADD CONSTRAINT `workflow_transitions_ibfk_4` FOREIGN KEY (`guard_condition_id`) REFERENCES `saved_searches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5646 - ADD CONSTRAINT `workflow_transitions_ibfk_5` FOREIGN KEY (`guard_group_id`) REFERENCES `groups_lookup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  
5647 - ADD CONSTRAINT `workflow_transitions_ibfk_6` FOREIGN KEY (`guard_role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
5648 -  
5649 ---  
5650 --- Constraints for table `workflow_trigger_instances`  
5651 ---  
5652 -ALTER TABLE `workflow_trigger_instances`  
5653 - ADD CONSTRAINT `workflow_trigger_instances_ibfk_1` FOREIGN KEY (`workflow_transition_id`) REFERENCES `workflow_transitions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;  
setup/wizard/sql/upgrades/folders.sql deleted
1 -ALTER TABLE `folders` ADD `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `creator_id` ,  
2 -ADD `modified_user_id` INT( 11 ) NULL DEFAULT NULL AFTER `created` ,  
3 -ADD `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `modified_user_id` ;  
4 -  
5 -#The following lines are for inserting the data which should have been there if this table had always stored this data  
6 -  
7 -UPDATE folders f set f.created =  
8 - (SELECT datetime FROM folder_transactions ft  
9 - WHERE ft.transaction_namespace = 'ktcore.transactions.create' AND ft.folder_id = f.id AND ft.user_id = f.creator_id  
10 - ORDER BY datetime DESC LIMIT 1) ;  
11 -  
12 -#TODO check whether there are additional actions which should trigger a modified date/user change  
13 -  
14 -UPDATE folders f set f.modified =  
15 - (SELECT datetime FROM folder_transactions ft  
16 - WHERE (ft.transaction_namespace = 'ktcore.transactions.move' OR ft.transaction_namespace = 'ktcore.transactions.rename')  
17 - AND ft.folder_id = f.id  
18 - AND ft.datetime > f.created  
19 - ORDER BY datetime DESC LIMIT 1) ;  
20 -  
21 -UPDATE folders f set f.modified_user_id =  
22 - (SELECT user_id FROM folder_transactions ft  
23 - WHERE (ft.transaction_namespace = 'ktcore.transactions.move' OR ft.transaction_namespace = 'ktcore.transactions.rename')  
24 - AND ft.folder_id = f.id  
25 - AND ft.datetime > f.created  
26 - ORDER BY datetime DESC LIMIT 1) ;  
27 -  
28 -UPDATE folders f set f.modified = f.created WHERE f.modified IS NULL OR f.modified = '0000-00-00 00:00:00' ;  
29 -  
30 -UPDATE folders f set f.modified_user_id = f.creator_id WHERE f.modified_user_id IS NULL ;  
31 \ No newline at end of file 0 \ No newline at end of file
setup/wizard/sql/upgrades/search_ranking.sql deleted
1 -UPDATE `search_ranking` SET ranking = 300 WHERE groupname = 'document_metadata_version' AND itemname = 'name';  
2 -INSERT INTO `search_ranking` VALUES ('document_fields_link','value',1,'T');  
3 \ No newline at end of file 0 \ No newline at end of file
setup/wizard/sql/user.sql deleted
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 ---  
20 --- You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,  
21 --- California 94120-7775, or email info@knowledgetree.com.  
22 ---  
23 --- The interactive user interfaces in modified source and object code versions  
24 --- of this program must display Appropriate Legal Notices, as required under  
25 --- Section 5 of the GNU General Public License version 3.  
26 ---  
27 --- In accordance with Section 7(b) of the GNU General Public License version 3,  
28 --- these Appropriate Legal Notices must retain the display of the "Powered by  
29 --- KnowledgeTree" logo and retain the original copyright notice. If the display of the  
30 --- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices  
31 --- must display the words "Powered by KnowledgeTree" and retain the original  
32 --- copyright notice.  
33 --- Contributor( s): ______________________________________  
34 ---  
35 -  
36 --- default dms user  
37 -GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO dms@localhost IDENTIFIED BY 'djw9281js';  
38 -GRANT ALL PRIVILEGES ON dms.* TO dmsadmin@localhost IDENTIFIED BY 'js9281djw';  
setup/wizard/steps/database.php
@@ -634,10 +634,11 @@ class database extends Step @@ -634,10 +634,11 @@ class database extends Step
634 if(!$this->createDmsUser($con)) { // Create dms users 634 if(!$this->createDmsUser($con)) { // Create dms users
635 635
636 } 636 }
  637 +/*
637 if(!$this->loadUpgraded($con)) { 638 if(!$this->loadUpgraded($con)) {
638 $this->error['con'] = "Could not load upgraded database"; 639 $this->error['con'] = "Could not load upgraded database";
639 } 640 }
640 -/* 641 +*/
641 if(!$this->createSchema($con)) { 642 if(!$this->createSchema($con)) {
642 $this->error['con'] = "Could not create schema "; 643 $this->error['con'] = "Could not create schema ";
643 } 644 }
@@ -647,7 +648,7 @@ class database extends Step @@ -647,7 +648,7 @@ class database extends Step
647 if(!$this->applyUpgrades($con)) { 648 if(!$this->applyUpgrades($con)) {
648 $this->error['con'] = "Could not apply updates "; 649 $this->error['con'] = "Could not apply updates ";
649 } 650 }
650 -*/ 651 +
651 return true; 652 return true;
652 } 653 }
653 654
@@ -719,9 +720,9 @@ class database extends Step @@ -719,9 +720,9 @@ class database extends Step
719 private function createDmsUser($con) { 720 private function createDmsUser($con) {
720 if($this->dmsname == '' || $this->dmspassword == '') { 721 if($this->dmsname == '' || $this->dmspassword == '') {
721 if($this->dpassword == '') { 722 if($this->dpassword == '') {
722 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_DIR."user.sql\""; 723 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_INSTALL_DIR."user.sql\"";
723 } else { 724 } else {
724 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_DIR."user.sql\""; 725 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_INSTALL_DIR."user.sql\"";
725 } 726 }
726 $response = $this->_util->pexec($command); 727 $response = $this->_util->pexec($command);
727 return $response; 728 return $response;
@@ -740,9 +741,9 @@ class database extends Step @@ -740,9 +741,9 @@ class database extends Step
740 741
741 private function loadUpgraded($con) { 742 private function loadUpgraded($con) {
742 if($this->dpassword == '') { 743 if($this->dpassword == '') {
743 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_DIR."dms.sql\""; 744 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_INSTALL_DIR."dms.sql\"";
744 } else { 745 } else {
745 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_DIR."dms.sql\""; 746 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_INSTALL_DIR."dms.sql\"";
746 } 747 }
747 $response = $this->_util->pexec($command); 748 $response = $this->_util->pexec($command);
748 return $response; 749 return $response;
@@ -758,11 +759,10 @@ class database extends Step @@ -758,11 +759,10 @@ class database extends Step
758 */ 759 */
759 private function createSchema($con) { 760 private function createSchema($con) {
760 if($this->dpassword == '') { 761 if($this->dpassword == '') {
761 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_DIR."structure.sql\""; 762 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_INSTALL_DIR."structure.sql\"";
762 } else { 763 } else {
763 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_DIR."structure.sql\""; 764 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_INSTALL_DIR."structure.sql\"";
764 } 765 }
765 - echo $command;die;  
766 $response = $this->_util->pexec($command); 766 $response = $this->_util->pexec($command);
767 return $response; 767 return $response;
768 } 768 }
@@ -777,9 +777,9 @@ class database extends Step @@ -777,9 +777,9 @@ class database extends Step
777 */ 777 */
778 private function populateSchema($con) { 778 private function populateSchema($con) {
779 if($this->dpassword == '') { 779 if($this->dpassword == '') {
780 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_DIR."data.sql\""; 780 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} {$this->dname} < \"".SQL_INSTALL_DIR."data.sql\"";
781 } else { 781 } else {
782 - $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_DIR."data.sql\""; 782 + $command = "\"".$this->mysqlDir."{$this->dbbinary}\" -u{$this->duname} -p{$this->dpassword} {$this->dname} < \"".SQL_INSTALL_DIR."data.sql\"";
783 } 783 }
784 $response = $this->_util->pexec($command); 784 $response = $this->_util->pexec($command);
785 return $response; 785 return $response;
@@ -858,8 +858,10 @@ class database extends Step @@ -858,8 +858,10 @@ class database extends Step
858 $this->duname = 'root'; 858 $this->duname = 'root';
859 $this->dpassword = 'root'; 859 $this->dpassword = 'root';
860 $this->dname = 'dms_install'; 860 $this->dname = 'dms_install';
  861 + $this->dbbinary = 'mysql';
861 $con = $this->_dbhandler->load($this->dhost, $this->duname, $this->dpassword, $this->dname); 862 $con = $this->_dbhandler->load($this->dhost, $this->duname, $this->dpassword, $this->dname);
862 $this->createSchema($con); 863 $this->createSchema($con);
  864 + echo 'Schema loaded<br>';
863 } 865 }
864 } 866 }
865 867