1
|
-- phpMyAdmin SQL Dump
|
2
|
-- version 2.11.9.5
|
3
|
-- http://www.phpmyadmin.net
|
4
|
--
|
5
|
-- Host: localhost
|
6
|
-- Generation Time: Jul 21, 2010 at 09:24 AM
|
7
|
-- Server version: 5.0.77
|
8
|
-- PHP Version: 5.1.6
|
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: `redmine_scc`
|
20
|
--
|
21
|
|
22
|
-- --------------------------------------------------------
|
23
|
|
24
|
--
|
25
|
-- Table structure for table `attachments`
|
26
|
--
|
27
|
|
28
|
CREATE TABLE IF NOT EXISTS `attachments` (
|
29
|
`id` int(11) NOT NULL auto_increment,
|
30
|
`container_id` int(11) NOT NULL default '0',
|
31
|
`container_type` varchar(30) NOT NULL default '',
|
32
|
`filename` varchar(255) NOT NULL default '',
|
33
|
`disk_filename` varchar(255) NOT NULL default '',
|
34
|
`filesize` int(11) NOT NULL default '0',
|
35
|
`content_type` varchar(255) default '',
|
36
|
`digest` varchar(40) NOT NULL default '',
|
37
|
`downloads` int(11) NOT NULL default '0',
|
38
|
`author_id` int(11) NOT NULL default '0',
|
39
|
`created_on` datetime default NULL,
|
40
|
`description` varchar(255) default NULL,
|
41
|
PRIMARY KEY (`id`),
|
42
|
KEY `index_attachments_on_container_id_and_container_type` (`container_id`,`container_type`),
|
43
|
KEY `index_attachments_on_author_id` (`author_id`),
|
44
|
KEY `index_attachments_on_created_on` (`created_on`)
|
45
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=508 ;
|
46
|
|
47
|
-- --------------------------------------------------------
|
48
|
|
49
|
--
|
50
|
-- Table structure for table `auth_sources`
|
51
|
--
|
52
|
|
53
|
CREATE TABLE IF NOT EXISTS `auth_sources` (
|
54
|
`id` int(11) NOT NULL auto_increment,
|
55
|
`type` varchar(30) NOT NULL default '',
|
56
|
`name` varchar(60) NOT NULL default '',
|
57
|
`host` varchar(60) default NULL,
|
58
|
`port` int(11) default NULL,
|
59
|
`account` varchar(255) default NULL,
|
60
|
`account_password` varchar(60) default NULL,
|
61
|
`base_dn` varchar(255) default NULL,
|
62
|
`attr_login` varchar(30) default NULL,
|
63
|
`attr_firstname` varchar(30) default NULL,
|
64
|
`attr_lastname` varchar(30) default NULL,
|
65
|
`attr_mail` varchar(30) default NULL,
|
66
|
`onthefly_register` tinyint(1) NOT NULL default '0',
|
67
|
`tls` tinyint(1) NOT NULL default '0',
|
68
|
PRIMARY KEY (`id`),
|
69
|
KEY `index_auth_sources_on_id_and_type` (`id`,`type`)
|
70
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
|
71
|
|
72
|
-- --------------------------------------------------------
|
73
|
|
74
|
--
|
75
|
-- Table structure for table `boards`
|
76
|
--
|
77
|
|
78
|
CREATE TABLE IF NOT EXISTS `boards` (
|
79
|
`id` int(11) NOT NULL auto_increment,
|
80
|
`project_id` int(11) NOT NULL,
|
81
|
`name` varchar(255) NOT NULL default '',
|
82
|
`description` varchar(255) default NULL,
|
83
|
`position` int(11) default '1',
|
84
|
`topics_count` int(11) NOT NULL default '0',
|
85
|
`messages_count` int(11) NOT NULL default '0',
|
86
|
`last_message_id` int(11) default NULL,
|
87
|
PRIMARY KEY (`id`),
|
88
|
KEY `boards_project_id` (`project_id`),
|
89
|
KEY `index_boards_on_last_message_id` (`last_message_id`)
|
90
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
91
|
|
92
|
-- --------------------------------------------------------
|
93
|
|
94
|
--
|
95
|
-- Table structure for table `changes`
|
96
|
--
|
97
|
|
98
|
CREATE TABLE IF NOT EXISTS `changes` (
|
99
|
`id` int(11) NOT NULL auto_increment,
|
100
|
`changeset_id` int(11) NOT NULL,
|
101
|
`action` varchar(1) NOT NULL default '',
|
102
|
`path` varchar(255) NOT NULL default '',
|
103
|
`from_path` varchar(255) default NULL,
|
104
|
`from_revision` varchar(255) default NULL,
|
105
|
`revision` varchar(255) default NULL,
|
106
|
`branch` varchar(255) default NULL,
|
107
|
PRIMARY KEY (`id`),
|
108
|
KEY `changesets_changeset_id` (`changeset_id`)
|
109
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=275853 ;
|
110
|
|
111
|
-- --------------------------------------------------------
|
112
|
|
113
|
--
|
114
|
-- Table structure for table `changesets`
|
115
|
--
|
116
|
|
117
|
CREATE TABLE IF NOT EXISTS `changesets` (
|
118
|
`id` int(11) NOT NULL auto_increment,
|
119
|
`repository_id` int(11) NOT NULL,
|
120
|
`revision` varchar(255) NOT NULL,
|
121
|
`committer` varchar(255) default NULL,
|
122
|
`committed_on` datetime NOT NULL,
|
123
|
`comments` text,
|
124
|
`commit_date` date default NULL,
|
125
|
`scmid` varchar(255) default NULL,
|
126
|
`user_id` int(11) default NULL,
|
127
|
PRIMARY KEY (`id`),
|
128
|
UNIQUE KEY `changesets_repos_rev` (`repository_id`,`revision`),
|
129
|
KEY `index_changesets_on_user_id` (`user_id`),
|
130
|
KEY `index_changesets_on_repository_id` (`repository_id`),
|
131
|
KEY `index_changesets_on_committed_on` (`committed_on`)
|
132
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9554 ;
|
133
|
|
134
|
-- --------------------------------------------------------
|
135
|
|
136
|
--
|
137
|
-- Table structure for table `changesets_issues`
|
138
|
--
|
139
|
|
140
|
CREATE TABLE IF NOT EXISTS `changesets_issues` (
|
141
|
`changeset_id` int(11) NOT NULL,
|
142
|
`issue_id` int(11) NOT NULL,
|
143
|
UNIQUE KEY `changesets_issues_ids` (`changeset_id`,`issue_id`)
|
144
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
145
|
|
146
|
-- --------------------------------------------------------
|
147
|
|
148
|
--
|
149
|
-- Table structure for table `comments`
|
150
|
--
|
151
|
|
152
|
CREATE TABLE IF NOT EXISTS `comments` (
|
153
|
`id` int(11) NOT NULL auto_increment,
|
154
|
`commented_type` varchar(30) NOT NULL default '',
|
155
|
`commented_id` int(11) NOT NULL default '0',
|
156
|
`author_id` int(11) NOT NULL default '0',
|
157
|
`comments` text,
|
158
|
`created_on` datetime NOT NULL,
|
159
|
`updated_on` datetime NOT NULL,
|
160
|
PRIMARY KEY (`id`),
|
161
|
KEY `index_comments_on_commented_id_and_commented_type` (`commented_id`,`commented_type`),
|
162
|
KEY `index_comments_on_author_id` (`author_id`)
|
163
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
164
|
|
165
|
-- --------------------------------------------------------
|
166
|
|
167
|
--
|
168
|
-- Table structure for table `custom_fields`
|
169
|
--
|
170
|
|
171
|
CREATE TABLE IF NOT EXISTS `custom_fields` (
|
172
|
`id` int(11) NOT NULL auto_increment,
|
173
|
`type` varchar(30) NOT NULL default '',
|
174
|
`name` varchar(50) NOT NULL,
|
175
|
`field_format` varchar(30) NOT NULL default '',
|
176
|
`possible_values` text,
|
177
|
`regexp` varchar(255) default '',
|
178
|
`min_length` int(11) NOT NULL default '0',
|
179
|
`max_length` int(11) NOT NULL default '0',
|
180
|
`is_required` tinyint(1) NOT NULL default '0',
|
181
|
`is_for_all` tinyint(1) NOT NULL default '0',
|
182
|
`is_filter` tinyint(1) NOT NULL default '0',
|
183
|
`position` int(11) default '1',
|
184
|
`searchable` tinyint(1) default '0',
|
185
|
`default_value` text,
|
186
|
`editable` tinyint(1) default '1',
|
187
|
PRIMARY KEY (`id`),
|
188
|
KEY `index_custom_fields_on_id_and_type` (`id`,`type`)
|
189
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
|
190
|
|
191
|
-- --------------------------------------------------------
|
192
|
|
193
|
--
|
194
|
-- Table structure for table `custom_fields_projects`
|
195
|
--
|
196
|
|
197
|
CREATE TABLE IF NOT EXISTS `custom_fields_projects` (
|
198
|
`custom_field_id` int(11) NOT NULL default '0',
|
199
|
`project_id` int(11) NOT NULL default '0',
|
200
|
KEY `index_custom_fields_projects_on_custom_field_id_and_project_id` (`custom_field_id`,`project_id`)
|
201
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
202
|
|
203
|
-- --------------------------------------------------------
|
204
|
|
205
|
--
|
206
|
-- Table structure for table `custom_fields_trackers`
|
207
|
--
|
208
|
|
209
|
CREATE TABLE IF NOT EXISTS `custom_fields_trackers` (
|
210
|
`custom_field_id` int(11) NOT NULL default '0',
|
211
|
`tracker_id` int(11) NOT NULL default '0',
|
212
|
KEY `index_custom_fields_trackers_on_custom_field_id_and_tracker_id` (`custom_field_id`,`tracker_id`)
|
213
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
214
|
|
215
|
-- --------------------------------------------------------
|
216
|
|
217
|
--
|
218
|
-- Table structure for table `custom_values`
|
219
|
--
|
220
|
|
221
|
CREATE TABLE IF NOT EXISTS `custom_values` (
|
222
|
`id` int(11) NOT NULL auto_increment,
|
223
|
`customized_type` varchar(30) NOT NULL default '',
|
224
|
`customized_id` int(11) NOT NULL default '0',
|
225
|
`custom_field_id` int(11) NOT NULL default '0',
|
226
|
`value` text,
|
227
|
PRIMARY KEY (`id`),
|
228
|
KEY `custom_values_customized` (`customized_type`,`customized_id`),
|
229
|
KEY `index_custom_values_on_custom_field_id` (`custom_field_id`)
|
230
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=909 ;
|
231
|
|
232
|
-- --------------------------------------------------------
|
233
|
|
234
|
--
|
235
|
-- Table structure for table `documents`
|
236
|
--
|
237
|
|
238
|
CREATE TABLE IF NOT EXISTS `documents` (
|
239
|
`id` int(11) NOT NULL auto_increment,
|
240
|
`project_id` int(11) NOT NULL default '0',
|
241
|
`category_id` int(11) NOT NULL default '0',
|
242
|
`title` varchar(60) NOT NULL default '',
|
243
|
`description` text,
|
244
|
`created_on` datetime default NULL,
|
245
|
PRIMARY KEY (`id`),
|
246
|
KEY `documents_project_id` (`project_id`),
|
247
|
KEY `index_documents_on_category_id` (`category_id`),
|
248
|
KEY `index_documents_on_created_on` (`created_on`)
|
249
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=56 ;
|
250
|
|
251
|
-- --------------------------------------------------------
|
252
|
|
253
|
--
|
254
|
-- Table structure for table `enabled_modules`
|
255
|
--
|
256
|
|
257
|
CREATE TABLE IF NOT EXISTS `enabled_modules` (
|
258
|
`id` int(11) NOT NULL auto_increment,
|
259
|
`project_id` int(11) default NULL,
|
260
|
`name` varchar(255) NOT NULL,
|
261
|
PRIMARY KEY (`id`),
|
262
|
KEY `enabled_modules_project_id` (`project_id`)
|
263
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=549 ;
|
264
|
|
265
|
-- --------------------------------------------------------
|
266
|
|
267
|
--
|
268
|
-- Table structure for table `enumerations`
|
269
|
--
|
270
|
|
271
|
CREATE TABLE IF NOT EXISTS `enumerations` (
|
272
|
`id` int(11) NOT NULL auto_increment,
|
273
|
`name` varchar(30) NOT NULL default '',
|
274
|
`position` int(11) default '1',
|
275
|
`is_default` tinyint(1) NOT NULL default '0',
|
276
|
`type` varchar(255) default NULL,
|
277
|
`active` tinyint(1) NOT NULL default '1',
|
278
|
`project_id` int(11) default NULL,
|
279
|
`parent_id` int(11) default NULL,
|
280
|
PRIMARY KEY (`id`),
|
281
|
KEY `index_enumerations_on_project_id` (`project_id`),
|
282
|
KEY `index_enumerations_on_id_and_type` (`id`,`type`)
|
283
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
|
284
|
|
285
|
-- --------------------------------------------------------
|
286
|
|
287
|
--
|
288
|
-- Table structure for table `groups_users`
|
289
|
--
|
290
|
|
291
|
CREATE TABLE IF NOT EXISTS `groups_users` (
|
292
|
`group_id` int(11) NOT NULL,
|
293
|
`user_id` int(11) NOT NULL,
|
294
|
UNIQUE KEY `groups_users_ids` (`group_id`,`user_id`)
|
295
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
296
|
|
297
|
-- --------------------------------------------------------
|
298
|
|
299
|
--
|
300
|
-- Table structure for table `hudson_builds`
|
301
|
--
|
302
|
|
303
|
CREATE TABLE IF NOT EXISTS `hudson_builds` (
|
304
|
`id` int(11) NOT NULL auto_increment,
|
305
|
`hudson_job_id` int(11) default NULL,
|
306
|
`result` varchar(255) default NULL,
|
307
|
`finished_at` datetime default NULL,
|
308
|
`building` varchar(255) default NULL,
|
309
|
`error` varchar(255) default NULL,
|
310
|
`caused_by` int(11) default NULL,
|
311
|
`number` int(11) default NULL,
|
312
|
PRIMARY KEY (`id`)
|
313
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=151 ;
|
314
|
|
315
|
-- --------------------------------------------------------
|
316
|
|
317
|
--
|
318
|
-- Table structure for table `hudson_build_artifacts`
|
319
|
--
|
320
|
|
321
|
CREATE TABLE IF NOT EXISTS `hudson_build_artifacts` (
|
322
|
`id` int(11) NOT NULL auto_increment,
|
323
|
`hudson_build_id` int(11) default NULL,
|
324
|
`display_path` text,
|
325
|
`file_name` text,
|
326
|
`relative_path` text,
|
327
|
PRIMARY KEY (`id`)
|
328
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=57 ;
|
329
|
|
330
|
-- --------------------------------------------------------
|
331
|
|
332
|
--
|
333
|
-- Table structure for table `hudson_build_changesets`
|
334
|
--
|
335
|
|
336
|
CREATE TABLE IF NOT EXISTS `hudson_build_changesets` (
|
337
|
`id` int(11) NOT NULL auto_increment,
|
338
|
`hudson_build_id` int(11) default NULL,
|
339
|
`repository_id` int(11) default NULL,
|
340
|
`revision` varchar(255) default NULL,
|
341
|
`error` varchar(255) default NULL,
|
342
|
PRIMARY KEY (`id`)
|
343
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=353 ;
|
344
|
|
345
|
-- --------------------------------------------------------
|
346
|
|
347
|
--
|
348
|
-- Table structure for table `hudson_build_test_results`
|
349
|
--
|
350
|
|
351
|
CREATE TABLE IF NOT EXISTS `hudson_build_test_results` (
|
352
|
`id` int(11) NOT NULL auto_increment,
|
353
|
`hudson_build_id` int(11) default NULL,
|
354
|
`fail_count` int(11) default NULL,
|
355
|
`skip_count` int(11) default NULL,
|
356
|
`total_count` int(11) default NULL,
|
357
|
PRIMARY KEY (`id`)
|
358
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
359
|
|
360
|
-- --------------------------------------------------------
|
361
|
|
362
|
--
|
363
|
-- Table structure for table `hudson_health_reports`
|
364
|
--
|
365
|
|
366
|
CREATE TABLE IF NOT EXISTS `hudson_health_reports` (
|
367
|
`id` int(11) NOT NULL auto_increment,
|
368
|
`hudson_job_id` int(11) default NULL,
|
369
|
`description` text,
|
370
|
`score` int(11) default NULL,
|
371
|
`url` varchar(255) default NULL,
|
372
|
PRIMARY KEY (`id`)
|
373
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
374
|
|
375
|
-- --------------------------------------------------------
|
376
|
|
377
|
--
|
378
|
-- Table structure for table `hudson_jobs`
|
379
|
--
|
380
|
|
381
|
CREATE TABLE IF NOT EXISTS `hudson_jobs` (
|
382
|
`id` int(11) NOT NULL auto_increment,
|
383
|
`project_id` int(11) default NULL,
|
384
|
`hudson_id` int(11) default NULL,
|
385
|
`name` varchar(255) default NULL,
|
386
|
`latest_build_number` varchar(255) default NULL,
|
387
|
`created_at` datetime default NULL,
|
388
|
`updated_at` datetime default NULL,
|
389
|
`description` text,
|
390
|
`state` varchar(255) default NULL,
|
391
|
PRIMARY KEY (`id`)
|
392
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
393
|
|
394
|
-- --------------------------------------------------------
|
395
|
|
396
|
--
|
397
|
-- Table structure for table `hudson_job_settings`
|
398
|
--
|
399
|
|
400
|
CREATE TABLE IF NOT EXISTS `hudson_job_settings` (
|
401
|
`id` int(11) NOT NULL auto_increment,
|
402
|
`hudson_job_id` int(11) default NULL,
|
403
|
`build_rotate` tinyint(1) default '0',
|
404
|
`build_rotator_days_to_keep` int(11) default '-1',
|
405
|
`build_rotator_num_to_keep` int(11) default '-1',
|
406
|
PRIMARY KEY (`id`)
|
407
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
408
|
|
409
|
-- --------------------------------------------------------
|
410
|
|
411
|
--
|
412
|
-- Table structure for table `hudson_settings`
|
413
|
--
|
414
|
|
415
|
CREATE TABLE IF NOT EXISTS `hudson_settings` (
|
416
|
`id` int(11) NOT NULL auto_increment,
|
417
|
`project_id` int(11) default NULL,
|
418
|
`url` varchar(255) default NULL,
|
419
|
`job_filter` varchar(255) default NULL,
|
420
|
`show_compact` tinyint(1) default '0',
|
421
|
`auth_user` varchar(255) default '',
|
422
|
`auth_password` varchar(255) default '',
|
423
|
`get_build_details` tinyint(1) default '1',
|
424
|
`look_and_feel` varchar(255) default 'Hudson',
|
425
|
`url_for_plugin` varchar(255) default '',
|
426
|
PRIMARY KEY (`id`)
|
427
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
428
|
|
429
|
-- --------------------------------------------------------
|
430
|
|
431
|
--
|
432
|
-- Table structure for table `hudson_settings_health_reports`
|
433
|
--
|
434
|
|
435
|
CREATE TABLE IF NOT EXISTS `hudson_settings_health_reports` (
|
436
|
`id` int(11) NOT NULL auto_increment,
|
437
|
`hudson_settings_id` int(11) default NULL,
|
438
|
`keyword` varchar(255) default NULL,
|
439
|
`url_format` varchar(255) default NULL,
|
440
|
PRIMARY KEY (`id`)
|
441
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
442
|
|
443
|
-- --------------------------------------------------------
|
444
|
|
445
|
--
|
446
|
-- Table structure for table `issues`
|
447
|
--
|
448
|
|
449
|
CREATE TABLE IF NOT EXISTS `issues` (
|
450
|
`id` int(11) NOT NULL auto_increment,
|
451
|
`tracker_id` int(11) NOT NULL default '0',
|
452
|
`project_id` int(11) NOT NULL default '0',
|
453
|
`subject` varchar(255) NOT NULL default '',
|
454
|
`description` text,
|
455
|
`due_date` date default NULL,
|
456
|
`category_id` int(11) default NULL,
|
457
|
`status_id` int(11) NOT NULL default '0',
|
458
|
`assigned_to_id` int(11) default NULL,
|
459
|
`priority_id` int(11) NOT NULL default '0',
|
460
|
`fixed_version_id` int(11) default NULL,
|
461
|
`author_id` int(11) NOT NULL default '0',
|
462
|
`lock_version` int(11) NOT NULL default '0',
|
463
|
`created_on` datetime default NULL,
|
464
|
`updated_on` datetime default NULL,
|
465
|
`start_date` date default NULL,
|
466
|
`done_ratio` int(11) NOT NULL default '0',
|
467
|
`estimated_hours` float default NULL,
|
468
|
PRIMARY KEY (`id`),
|
469
|
KEY `issues_project_id` (`project_id`),
|
470
|
KEY `index_issues_on_status_id` (`status_id`),
|
471
|
KEY `index_issues_on_category_id` (`category_id`),
|
472
|
KEY `index_issues_on_assigned_to_id` (`assigned_to_id`),
|
473
|
KEY `index_issues_on_fixed_version_id` (`fixed_version_id`),
|
474
|
KEY `index_issues_on_tracker_id` (`tracker_id`),
|
475
|
KEY `index_issues_on_priority_id` (`priority_id`),
|
476
|
KEY `index_issues_on_author_id` (`author_id`),
|
477
|
KEY `index_issues_on_created_on` (`created_on`)
|
478
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1008 ;
|
479
|
|
480
|
-- --------------------------------------------------------
|
481
|
|
482
|
--
|
483
|
-- Table structure for table `issue_categories`
|
484
|
--
|
485
|
|
486
|
CREATE TABLE IF NOT EXISTS `issue_categories` (
|
487
|
`id` int(11) NOT NULL auto_increment,
|
488
|
`project_id` int(11) NOT NULL default '0',
|
489
|
`name` varchar(30) NOT NULL default '',
|
490
|
`assigned_to_id` int(11) default NULL,
|
491
|
PRIMARY KEY (`id`),
|
492
|
KEY `issue_categories_project_id` (`project_id`),
|
493
|
KEY `index_issue_categories_on_assigned_to_id` (`assigned_to_id`)
|
494
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ;
|
495
|
|
496
|
-- --------------------------------------------------------
|
497
|
|
498
|
--
|
499
|
-- Table structure for table `issue_relations`
|
500
|
--
|
501
|
|
502
|
CREATE TABLE IF NOT EXISTS `issue_relations` (
|
503
|
`id` int(11) NOT NULL auto_increment,
|
504
|
`issue_from_id` int(11) NOT NULL,
|
505
|
`issue_to_id` int(11) NOT NULL,
|
506
|
`relation_type` varchar(255) NOT NULL default '',
|
507
|
`delay` int(11) default NULL,
|
508
|
PRIMARY KEY (`id`),
|
509
|
KEY `index_issue_relations_on_issue_from_id` (`issue_from_id`),
|
510
|
KEY `index_issue_relations_on_issue_to_id` (`issue_to_id`)
|
511
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
512
|
|
513
|
-- --------------------------------------------------------
|
514
|
|
515
|
--
|
516
|
-- Table structure for table `issue_statuses`
|
517
|
--
|
518
|
|
519
|
CREATE TABLE IF NOT EXISTS `issue_statuses` (
|
520
|
`id` int(11) NOT NULL auto_increment,
|
521
|
`name` varchar(30) NOT NULL default '',
|
522
|
`is_closed` tinyint(1) NOT NULL default '0',
|
523
|
`is_default` tinyint(1) NOT NULL default '0',
|
524
|
`position` int(11) default '1',
|
525
|
`default_done_ratio` int(11) default NULL,
|
526
|
PRIMARY KEY (`id`),
|
527
|
KEY `index_issue_statuses_on_position` (`position`),
|
528
|
KEY `index_issue_statuses_on_is_closed` (`is_closed`),
|
529
|
KEY `index_issue_statuses_on_is_default` (`is_default`)
|
530
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
|
531
|
|
532
|
-- --------------------------------------------------------
|
533
|
|
534
|
--
|
535
|
-- Table structure for table `journals`
|
536
|
--
|
537
|
|
538
|
CREATE TABLE IF NOT EXISTS `journals` (
|
539
|
`id` int(11) NOT NULL auto_increment,
|
540
|
`journalized_id` int(11) NOT NULL default '0',
|
541
|
`journalized_type` varchar(30) NOT NULL default '',
|
542
|
`user_id` int(11) NOT NULL default '0',
|
543
|
`notes` text,
|
544
|
`created_on` datetime NOT NULL,
|
545
|
PRIMARY KEY (`id`),
|
546
|
KEY `journals_journalized_id` (`journalized_id`,`journalized_type`),
|
547
|
KEY `index_journals_on_user_id` (`user_id`),
|
548
|
KEY `index_journals_on_journalized_id` (`journalized_id`),
|
549
|
KEY `index_journals_on_created_on` (`created_on`)
|
550
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1231 ;
|
551
|
|
552
|
-- --------------------------------------------------------
|
553
|
|
554
|
--
|
555
|
-- Table structure for table `journal_details`
|
556
|
--
|
557
|
|
558
|
CREATE TABLE IF NOT EXISTS `journal_details` (
|
559
|
`id` int(11) NOT NULL auto_increment,
|
560
|
`journal_id` int(11) NOT NULL default '0',
|
561
|
`property` varchar(30) NOT NULL default '',
|
562
|
`prop_key` varchar(30) NOT NULL default '',
|
563
|
`old_value` varchar(255) default NULL,
|
564
|
`value` varchar(255) default NULL,
|
565
|
PRIMARY KEY (`id`),
|
566
|
KEY `journal_details_journal_id` (`journal_id`)
|
567
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1728 ;
|
568
|
|
569
|
-- --------------------------------------------------------
|
570
|
|
571
|
--
|
572
|
-- Table structure for table `license_keys`
|
573
|
--
|
574
|
|
575
|
CREATE TABLE IF NOT EXISTS `license_keys` (
|
576
|
`date` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
577
|
`id` int(11) NOT NULL auto_increment,
|
578
|
`name` varchar(255) default NULL,
|
579
|
`org` varchar(30) NOT NULL,
|
580
|
`customer_code` varchar(19) default NULL,
|
581
|
`registration_key` varchar(40) default NULL,
|
582
|
PRIMARY KEY (`id`)
|
583
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=62 ;
|
584
|
|
585
|
-- --------------------------------------------------------
|
586
|
|
587
|
--
|
588
|
-- Table structure for table `members`
|
589
|
--
|
590
|
|
591
|
CREATE TABLE IF NOT EXISTS `members` (
|
592
|
`id` int(11) NOT NULL auto_increment,
|
593
|
`user_id` int(11) NOT NULL default '0',
|
594
|
`project_id` int(11) NOT NULL default '0',
|
595
|
`created_on` datetime default NULL,
|
596
|
`mail_notification` tinyint(1) NOT NULL default '0',
|
597
|
PRIMARY KEY (`id`),
|
598
|
KEY `index_members_on_user_id` (`user_id`),
|
599
|
KEY `index_members_on_project_id` (`project_id`)
|
600
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=263 ;
|
601
|
|
602
|
-- --------------------------------------------------------
|
603
|
|
604
|
--
|
605
|
-- Table structure for table `member_roles`
|
606
|
--
|
607
|
|
608
|
CREATE TABLE IF NOT EXISTS `member_roles` (
|
609
|
`id` int(11) NOT NULL auto_increment,
|
610
|
`member_id` int(11) NOT NULL,
|
611
|
`role_id` int(11) NOT NULL,
|
612
|
`inherited_from` int(11) default NULL,
|
613
|
PRIMARY KEY (`id`),
|
614
|
KEY `index_member_roles_on_member_id` (`member_id`),
|
615
|
KEY `index_member_roles_on_role_id` (`role_id`)
|
616
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=263 ;
|
617
|
|
618
|
-- --------------------------------------------------------
|
619
|
|
620
|
--
|
621
|
-- Table structure for table `messages`
|
622
|
--
|
623
|
|
624
|
CREATE TABLE IF NOT EXISTS `messages` (
|
625
|
`id` int(11) NOT NULL auto_increment,
|
626
|
`board_id` int(11) NOT NULL,
|
627
|
`parent_id` int(11) default NULL,
|
628
|
`subject` varchar(255) NOT NULL default '',
|
629
|
`content` text,
|
630
|
`author_id` int(11) default NULL,
|
631
|
`replies_count` int(11) NOT NULL default '0',
|
632
|
`last_reply_id` int(11) default NULL,
|
633
|
`created_on` datetime NOT NULL,
|
634
|
`updated_on` datetime NOT NULL,
|
635
|
`locked` tinyint(1) default '0',
|
636
|
`sticky` int(11) default '0',
|
637
|
PRIMARY KEY (`id`),
|
638
|
KEY `messages_board_id` (`board_id`),
|
639
|
KEY `messages_parent_id` (`parent_id`),
|
640
|
KEY `index_messages_on_last_reply_id` (`last_reply_id`),
|
641
|
KEY `index_messages_on_author_id` (`author_id`),
|
642
|
KEY `index_messages_on_created_on` (`created_on`)
|
643
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
|
644
|
|
645
|
-- --------------------------------------------------------
|
646
|
|
647
|
--
|
648
|
-- Table structure for table `news`
|
649
|
--
|
650
|
|
651
|
CREATE TABLE IF NOT EXISTS `news` (
|
652
|
`id` int(11) NOT NULL auto_increment,
|
653
|
`project_id` int(11) default NULL,
|
654
|
`title` varchar(60) NOT NULL default '',
|
655
|
`summary` varchar(255) default '',
|
656
|
`description` text,
|
657
|
`author_id` int(11) NOT NULL default '0',
|
658
|
`created_on` datetime default NULL,
|
659
|
`comments_count` int(11) NOT NULL default '0',
|
660
|
PRIMARY KEY (`id`),
|
661
|
KEY `news_project_id` (`project_id`),
|
662
|
KEY `index_news_on_author_id` (`author_id`),
|
663
|
KEY `index_news_on_created_on` (`created_on`)
|
664
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
665
|
|
666
|
-- --------------------------------------------------------
|
667
|
|
668
|
--
|
669
|
-- Table structure for table `open_id_authentication_associations`
|
670
|
--
|
671
|
|
672
|
CREATE TABLE IF NOT EXISTS `open_id_authentication_associations` (
|
673
|
`id` int(11) NOT NULL auto_increment,
|
674
|
`issued` int(11) default NULL,
|
675
|
`lifetime` int(11) default NULL,
|
676
|
`handle` varchar(255) default NULL,
|
677
|
`assoc_type` varchar(255) default NULL,
|
678
|
`server_url` blob,
|
679
|
`secret` blob,
|
680
|
PRIMARY KEY (`id`)
|
681
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
682
|
|
683
|
-- --------------------------------------------------------
|
684
|
|
685
|
--
|
686
|
-- Table structure for table `open_id_authentication_nonces`
|
687
|
--
|
688
|
|
689
|
CREATE TABLE IF NOT EXISTS `open_id_authentication_nonces` (
|
690
|
`id` int(11) NOT NULL auto_increment,
|
691
|
`timestamp` int(11) NOT NULL,
|
692
|
`server_url` varchar(255) default NULL,
|
693
|
`salt` varchar(255) NOT NULL,
|
694
|
PRIMARY KEY (`id`)
|
695
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
696
|
|
697
|
-- --------------------------------------------------------
|
698
|
|
699
|
--
|
700
|
-- Table structure for table `plugin_schema_info`
|
701
|
--
|
702
|
|
703
|
CREATE TABLE IF NOT EXISTS `plugin_schema_info` (
|
704
|
`plugin_name` varchar(255) default NULL,
|
705
|
`version` int(11) default NULL
|
706
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
707
|
|
708
|
-- --------------------------------------------------------
|
709
|
|
710
|
--
|
711
|
-- Table structure for table `projects`
|
712
|
--
|
713
|
|
714
|
CREATE TABLE IF NOT EXISTS `projects` (
|
715
|
`id` int(11) NOT NULL auto_increment,
|
716
|
`name` varchar(60) NOT NULL,
|
717
|
`description` text,
|
718
|
`homepage` varchar(255) default '',
|
719
|
`is_public` tinyint(1) NOT NULL default '1',
|
720
|
`parent_id` int(11) default NULL,
|
721
|
`created_on` datetime default NULL,
|
722
|
`updated_on` datetime default NULL,
|
723
|
`identifier` varchar(20) default NULL,
|
724
|
`status` int(11) NOT NULL default '1',
|
725
|
`lft` int(11) default NULL,
|
726
|
`rgt` int(11) default NULL,
|
727
|
PRIMARY KEY (`id`),
|
728
|
KEY `index_projects_on_lft` (`lft`),
|
729
|
KEY `index_projects_on_rgt` (`rgt`)
|
730
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ;
|
731
|
|
732
|
-- --------------------------------------------------------
|
733
|
|
734
|
--
|
735
|
-- Table structure for table `projects_trackers`
|
736
|
--
|
737
|
|
738
|
CREATE TABLE IF NOT EXISTS `projects_trackers` (
|
739
|
`project_id` int(11) NOT NULL default '0',
|
740
|
`tracker_id` int(11) NOT NULL default '0',
|
741
|
UNIQUE KEY `projects_trackers_unique` (`project_id`,`tracker_id`),
|
742
|
KEY `projects_trackers_project_id` (`project_id`)
|
743
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
744
|
|
745
|
-- --------------------------------------------------------
|
746
|
|
747
|
--
|
748
|
-- Table structure for table `queries`
|
749
|
--
|
750
|
|
751
|
CREATE TABLE IF NOT EXISTS `queries` (
|
752
|
`id` int(11) NOT NULL auto_increment,
|
753
|
`project_id` int(11) default NULL,
|
754
|
`name` varchar(255) NOT NULL default '',
|
755
|
`filters` text,
|
756
|
`user_id` int(11) NOT NULL default '0',
|
757
|
`is_public` tinyint(1) NOT NULL default '0',
|
758
|
`column_names` text,
|
759
|
`sort_criteria` text,
|
760
|
`group_by` varchar(255) default NULL,
|
761
|
PRIMARY KEY (`id`),
|
762
|
KEY `index_queries_on_project_id` (`project_id`),
|
763
|
KEY `index_queries_on_user_id` (`user_id`)
|
764
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
765
|
|
766
|
-- --------------------------------------------------------
|
767
|
|
768
|
--
|
769
|
-- Table structure for table `repositories`
|
770
|
--
|
771
|
|
772
|
CREATE TABLE IF NOT EXISTS `repositories` (
|
773
|
`id` int(11) NOT NULL auto_increment,
|
774
|
`project_id` int(11) NOT NULL default '0',
|
775
|
`url` varchar(255) NOT NULL default '',
|
776
|
`login` varchar(60) default '',
|
777
|
`password` varchar(60) default '',
|
778
|
`root_url` varchar(255) default '',
|
779
|
`type` varchar(255) default NULL,
|
780
|
`checkout_settings` text,
|
781
|
PRIMARY KEY (`id`),
|
782
|
KEY `index_repositories_on_project_id` (`project_id`)
|
783
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ;
|
784
|
|
785
|
-- --------------------------------------------------------
|
786
|
|
787
|
--
|
788
|
-- Table structure for table `roles`
|
789
|
--
|
790
|
|
791
|
CREATE TABLE IF NOT EXISTS `roles` (
|
792
|
`id` int(11) NOT NULL auto_increment,
|
793
|
`name` varchar(30) NOT NULL default '',
|
794
|
`position` int(11) default '1',
|
795
|
`assignable` tinyint(1) default '1',
|
796
|
`builtin` int(11) NOT NULL default '0',
|
797
|
`permissions` text,
|
798
|
PRIMARY KEY (`id`)
|
799
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
|
800
|
|
801
|
-- --------------------------------------------------------
|
802
|
|
803
|
--
|
804
|
-- Table structure for table `schema_migrations`
|
805
|
--
|
806
|
|
807
|
CREATE TABLE IF NOT EXISTS `schema_migrations` (
|
808
|
`version` varchar(255) NOT NULL,
|
809
|
UNIQUE KEY `unique_schema_migrations` (`version`)
|
810
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
811
|
|
812
|
-- --------------------------------------------------------
|
813
|
|
814
|
--
|
815
|
-- Table structure for table `settings`
|
816
|
--
|
817
|
|
818
|
CREATE TABLE IF NOT EXISTS `settings` (
|
819
|
`id` int(11) NOT NULL auto_increment,
|
820
|
`name` varchar(255) NOT NULL default '',
|
821
|
`value` text,
|
822
|
`updated_on` datetime default NULL,
|
823
|
PRIMARY KEY (`id`),
|
824
|
KEY `index_settings_on_name` (`name`)
|
825
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=50 ;
|
826
|
|
827
|
-- --------------------------------------------------------
|
828
|
|
829
|
--
|
830
|
-- Table structure for table `time_entries`
|
831
|
--
|
832
|
|
833
|
CREATE TABLE IF NOT EXISTS `time_entries` (
|
834
|
`id` int(11) NOT NULL auto_increment,
|
835
|
`project_id` int(11) NOT NULL,
|
836
|
`user_id` int(11) NOT NULL,
|
837
|
`issue_id` int(11) default NULL,
|
838
|
`hours` float NOT NULL,
|
839
|
`comments` varchar(255) default NULL,
|
840
|
`activity_id` int(11) NOT NULL,
|
841
|
`spent_on` date NOT NULL,
|
842
|
`tyear` int(11) NOT NULL,
|
843
|
`tmonth` int(11) NOT NULL,
|
844
|
`tweek` int(11) NOT NULL,
|
845
|
`created_on` datetime NOT NULL,
|
846
|
`updated_on` datetime NOT NULL,
|
847
|
PRIMARY KEY (`id`),
|
848
|
KEY `time_entries_project_id` (`project_id`),
|
849
|
KEY `time_entries_issue_id` (`issue_id`),
|
850
|
KEY `index_time_entries_on_activity_id` (`activity_id`),
|
851
|
KEY `index_time_entries_on_user_id` (`user_id`),
|
852
|
KEY `index_time_entries_on_created_on` (`created_on`)
|
853
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=56 ;
|
854
|
|
855
|
-- --------------------------------------------------------
|
856
|
|
857
|
--
|
858
|
-- Table structure for table `tokens`
|
859
|
--
|
860
|
|
861
|
CREATE TABLE IF NOT EXISTS `tokens` (
|
862
|
`id` int(11) NOT NULL auto_increment,
|
863
|
`user_id` int(11) NOT NULL default '0',
|
864
|
`action` varchar(30) NOT NULL default '',
|
865
|
`value` varchar(40) NOT NULL default '',
|
866
|
`created_on` datetime NOT NULL,
|
867
|
PRIMARY KEY (`id`),
|
868
|
KEY `index_tokens_on_user_id` (`user_id`)
|
869
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=181 ;
|
870
|
|
871
|
-- --------------------------------------------------------
|
872
|
|
873
|
--
|
874
|
-- Table structure for table `trackers`
|
875
|
--
|
876
|
|
877
|
CREATE TABLE IF NOT EXISTS `trackers` (
|
878
|
`id` int(11) NOT NULL auto_increment,
|
879
|
`name` varchar(30) NOT NULL default '',
|
880
|
`is_in_chlog` tinyint(1) NOT NULL default '0',
|
881
|
`position` int(11) default '1',
|
882
|
`is_in_roadmap` tinyint(1) NOT NULL default '1',
|
883
|
PRIMARY KEY (`id`)
|
884
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
|
885
|
|
886
|
-- --------------------------------------------------------
|
887
|
|
888
|
--
|
889
|
-- Table structure for table `users`
|
890
|
--
|
891
|
|
892
|
CREATE TABLE IF NOT EXISTS `users` (
|
893
|
`id` int(11) NOT NULL auto_increment,
|
894
|
`login` varchar(30) NOT NULL default '',
|
895
|
`hashed_password` varchar(40) NOT NULL default '',
|
896
|
`firstname` varchar(30) NOT NULL default '',
|
897
|
`lastname` varchar(30) NOT NULL default '',
|
898
|
`mail` varchar(60) NOT NULL default '',
|
899
|
`mail_notification` tinyint(1) NOT NULL default '1',
|
900
|
`admin` tinyint(1) NOT NULL default '0',
|
901
|
`status` int(11) NOT NULL default '1',
|
902
|
`last_login_on` datetime default NULL,
|
903
|
`language` varchar(5) default '',
|
904
|
`auth_source_id` int(11) default NULL,
|
905
|
`created_on` datetime default NULL,
|
906
|
`updated_on` datetime default NULL,
|
907
|
`type` varchar(255) default NULL,
|
908
|
`identity_url` varchar(255) default NULL,
|
909
|
PRIMARY KEY (`id`),
|
910
|
KEY `index_users_on_id_and_type` (`id`,`type`),
|
911
|
KEY `index_users_on_auth_source_id` (`auth_source_id`)
|
912
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=83 ;
|
913
|
|
914
|
-- --------------------------------------------------------
|
915
|
|
916
|
--
|
917
|
-- Table structure for table `user_preferences`
|
918
|
--
|
919
|
|
920
|
CREATE TABLE IF NOT EXISTS `user_preferences` (
|
921
|
`id` int(11) NOT NULL auto_increment,
|
922
|
`user_id` int(11) NOT NULL default '0',
|
923
|
`others` text,
|
924
|
`hide_mail` tinyint(1) default '0',
|
925
|
`time_zone` varchar(255) default NULL,
|
926
|
PRIMARY KEY (`id`),
|
927
|
KEY `index_user_preferences_on_user_id` (`user_id`)
|
928
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=47 ;
|
929
|
|
930
|
-- --------------------------------------------------------
|
931
|
|
932
|
--
|
933
|
-- Table structure for table `versions`
|
934
|
--
|
935
|
|
936
|
CREATE TABLE IF NOT EXISTS `versions` (
|
937
|
`id` int(11) NOT NULL auto_increment,
|
938
|
`project_id` int(11) NOT NULL default '0',
|
939
|
`name` varchar(255) default '',
|
940
|
`description` varchar(255) default '',
|
941
|
`effective_date` date default NULL,
|
942
|
`created_on` datetime default NULL,
|
943
|
`updated_on` datetime default NULL,
|
944
|
`wiki_page_title` varchar(255) default NULL,
|
945
|
`status` varchar(255) default 'open',
|
946
|
`sharing` varchar(255) NOT NULL default 'none',
|
947
|
PRIMARY KEY (`id`),
|
948
|
KEY `versions_project_id` (`project_id`),
|
949
|
KEY `index_versions_on_sharing` (`sharing`)
|
950
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=93 ;
|
951
|
|
952
|
-- --------------------------------------------------------
|
953
|
|
954
|
--
|
955
|
-- Table structure for table `watchers`
|
956
|
--
|
957
|
|
958
|
CREATE TABLE IF NOT EXISTS `watchers` (
|
959
|
`id` int(11) NOT NULL auto_increment,
|
960
|
`watchable_type` varchar(255) NOT NULL default '',
|
961
|
`watchable_id` int(11) NOT NULL default '0',
|
962
|
`user_id` int(11) default NULL,
|
963
|
PRIMARY KEY (`id`),
|
964
|
KEY `watchers_user_id_type` (`user_id`,`watchable_type`),
|
965
|
KEY `index_watchers_on_user_id` (`user_id`),
|
966
|
KEY `index_watchers_on_watchable_id_and_watchable_type` (`watchable_id`,`watchable_type`)
|
967
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=91 ;
|
968
|
|
969
|
-- --------------------------------------------------------
|
970
|
|
971
|
--
|
972
|
-- Table structure for table `wikis`
|
973
|
--
|
974
|
|
975
|
CREATE TABLE IF NOT EXISTS `wikis` (
|
976
|
`id` int(11) NOT NULL auto_increment,
|
977
|
`project_id` int(11) NOT NULL,
|
978
|
`start_page` varchar(255) NOT NULL,
|
979
|
`status` int(11) NOT NULL default '1',
|
980
|
PRIMARY KEY (`id`),
|
981
|
KEY `wikis_project_id` (`project_id`)
|
982
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
|
983
|
|
984
|
-- --------------------------------------------------------
|
985
|
|
986
|
--
|
987
|
-- Table structure for table `wiki_contents`
|
988
|
--
|
989
|
|
990
|
CREATE TABLE IF NOT EXISTS `wiki_contents` (
|
991
|
`id` int(11) NOT NULL auto_increment,
|
992
|
`page_id` int(11) NOT NULL,
|
993
|
`author_id` int(11) default NULL,
|
994
|
`text` longtext,
|
995
|
`comments` varchar(255) default '',
|
996
|
`updated_on` datetime NOT NULL,
|
997
|
`version` int(11) NOT NULL,
|
998
|
PRIMARY KEY (`id`),
|
999
|
KEY `wiki_contents_page_id` (`page_id`),
|
1000
|
KEY `index_wiki_contents_on_author_id` (`author_id`)
|
1001
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=74 ;
|
1002
|
|
1003
|
-- --------------------------------------------------------
|
1004
|
|
1005
|
--
|
1006
|
-- Table structure for table `wiki_content_versions`
|
1007
|
--
|
1008
|
|
1009
|
CREATE TABLE IF NOT EXISTS `wiki_content_versions` (
|
1010
|
`id` int(11) NOT NULL auto_increment,
|
1011
|
`wiki_content_id` int(11) NOT NULL,
|
1012
|
`page_id` int(11) NOT NULL,
|
1013
|
`author_id` int(11) default NULL,
|
1014
|
`data` longblob,
|
1015
|
`compression` varchar(6) default '',
|
1016
|
`comments` varchar(255) default '',
|
1017
|
`updated_on` datetime NOT NULL,
|
1018
|
`version` int(11) NOT NULL,
|
1019
|
PRIMARY KEY (`id`),
|
1020
|
KEY `wiki_content_versions_wcid` (`wiki_content_id`),
|
1021
|
KEY `index_wiki_content_versions_on_updated_on` (`updated_on`)
|
1022
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=319 ;
|
1023
|
|
1024
|
-- --------------------------------------------------------
|
1025
|
|
1026
|
--
|
1027
|
-- Table structure for table `wiki_pages`
|
1028
|
--
|
1029
|
|
1030
|
CREATE TABLE IF NOT EXISTS `wiki_pages` (
|
1031
|
`id` int(11) NOT NULL auto_increment,
|
1032
|
`wiki_id` int(11) NOT NULL,
|
1033
|
`title` varchar(255) NOT NULL,
|
1034
|
`created_on` datetime NOT NULL,
|
1035
|
`protected` tinyint(1) NOT NULL default '0',
|
1036
|
`parent_id` int(11) default NULL,
|
1037
|
PRIMARY KEY (`id`),
|
1038
|
KEY `wiki_pages_wiki_id_title` (`wiki_id`,`title`),
|
1039
|
KEY `index_wiki_pages_on_wiki_id` (`wiki_id`),
|
1040
|
KEY `index_wiki_pages_on_parent_id` (`parent_id`)
|
1041
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=74 ;
|
1042
|
|
1043
|
-- --------------------------------------------------------
|
1044
|
|
1045
|
--
|
1046
|
-- Table structure for table `wiki_redirects`
|
1047
|
--
|
1048
|
|
1049
|
CREATE TABLE IF NOT EXISTS `wiki_redirects` (
|
1050
|
`id` int(11) NOT NULL auto_increment,
|
1051
|
`wiki_id` int(11) NOT NULL,
|
1052
|
`title` varchar(255) default NULL,
|
1053
|
`redirects_to` varchar(255) default NULL,
|
1054
|
`created_on` datetime NOT NULL,
|
1055
|
PRIMARY KEY (`id`),
|
1056
|
KEY `wiki_redirects_wiki_id_title` (`wiki_id`,`title`),
|
1057
|
KEY `index_wiki_redirects_on_wiki_id` (`wiki_id`)
|
1058
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
1059
|
|
1060
|
-- --------------------------------------------------------
|
1061
|
|
1062
|
--
|
1063
|
-- Table structure for table `workflows`
|
1064
|
--
|
1065
|
|
1066
|
CREATE TABLE IF NOT EXISTS `workflows` (
|
1067
|
`id` int(11) NOT NULL auto_increment,
|
1068
|
`tracker_id` int(11) NOT NULL default '0',
|
1069
|
`old_status_id` int(11) NOT NULL default '0',
|
1070
|
`new_status_id` int(11) NOT NULL default '0',
|
1071
|
`role_id` int(11) NOT NULL default '0',
|
1072
|
PRIMARY KEY (`id`),
|
1073
|
KEY `wkfs_role_tracker_old_status` (`role_id`,`tracker_id`,`old_status_id`),
|
1074
|
KEY `index_workflows_on_old_status_id` (`old_status_id`),
|
1075
|
KEY `index_workflows_on_role_id` (`role_id`),
|
1076
|
KEY `index_workflows_on_new_status_id` (`new_status_id`)
|
1077
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=321 ;
|