1
|
-- MySQL dump 10.11
|
2
|
--
|
3
|
-- Host: localhost Database: redmine
|
4
|
-- ------------------------------------------------------
|
5
|
-- Server version 5.0.45
|
6
|
|
7
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
8
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
9
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
10
|
/*!40101 SET NAMES utf8 */;
|
11
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
12
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
13
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
14
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
15
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
16
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
17
|
|
18
|
--
|
19
|
-- Table structure for table `attachments`
|
20
|
--
|
21
|
|
22
|
DROP TABLE IF EXISTS `attachments`;
|
23
|
CREATE TABLE `attachments` (
|
24
|
`id` int(11) NOT NULL auto_increment,
|
25
|
`container_id` int(11) NOT NULL default '0',
|
26
|
`container_type` varchar(30) NOT NULL default '',
|
27
|
`filename` varchar(255) NOT NULL default '',
|
28
|
`disk_filename` varchar(255) NOT NULL default '',
|
29
|
`filesize` int(11) NOT NULL default '0',
|
30
|
`content_type` varchar(255) default '',
|
31
|
`digest` varchar(40) NOT NULL default '',
|
32
|
`downloads` int(11) NOT NULL default '0',
|
33
|
`author_id` int(11) NOT NULL default '0',
|
34
|
`created_on` datetime default NULL,
|
35
|
`description` varchar(255) default NULL,
|
36
|
PRIMARY KEY (`id`)
|
37
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
38
|
|
39
|
--
|
40
|
-- Dumping data for table `attachments`
|
41
|
--
|
42
|
|
43
|
LOCK TABLES `attachments` WRITE;
|
44
|
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
|
45
|
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
|
46
|
UNLOCK TABLES;
|
47
|
|
48
|
--
|
49
|
-- Table structure for table `auth_sources`
|
50
|
--
|
51
|
|
52
|
DROP TABLE IF EXISTS `auth_sources`;
|
53
|
CREATE TABLE `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
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
70
|
|
71
|
--
|
72
|
-- Dumping data for table `auth_sources`
|
73
|
--
|
74
|
|
75
|
LOCK TABLES `auth_sources` WRITE;
|
76
|
/*!40000 ALTER TABLE `auth_sources` DISABLE KEYS */;
|
77
|
/*!40000 ALTER TABLE `auth_sources` ENABLE KEYS */;
|
78
|
UNLOCK TABLES;
|
79
|
|
80
|
--
|
81
|
-- Table structure for table `boards`
|
82
|
--
|
83
|
|
84
|
DROP TABLE IF EXISTS `boards`;
|
85
|
CREATE TABLE `boards` (
|
86
|
`id` int(11) NOT NULL auto_increment,
|
87
|
`project_id` int(11) NOT NULL,
|
88
|
`name` varchar(255) NOT NULL default '',
|
89
|
`description` varchar(255) default NULL,
|
90
|
`position` int(11) default '1',
|
91
|
`topics_count` int(11) NOT NULL default '0',
|
92
|
`messages_count` int(11) NOT NULL default '0',
|
93
|
`last_message_id` int(11) default NULL,
|
94
|
PRIMARY KEY (`id`),
|
95
|
KEY `boards_project_id` (`project_id`)
|
96
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
97
|
|
98
|
--
|
99
|
-- Dumping data for table `boards`
|
100
|
--
|
101
|
|
102
|
LOCK TABLES `boards` WRITE;
|
103
|
/*!40000 ALTER TABLE `boards` DISABLE KEYS */;
|
104
|
/*!40000 ALTER TABLE `boards` ENABLE KEYS */;
|
105
|
UNLOCK TABLES;
|
106
|
|
107
|
--
|
108
|
-- Table structure for table `changes`
|
109
|
--
|
110
|
|
111
|
DROP TABLE IF EXISTS `changes`;
|
112
|
CREATE TABLE `changes` (
|
113
|
`id` int(11) NOT NULL auto_increment,
|
114
|
`changeset_id` int(11) NOT NULL,
|
115
|
`action` varchar(1) NOT NULL default '',
|
116
|
`path` varchar(255) NOT NULL default '',
|
117
|
`from_path` varchar(255) default NULL,
|
118
|
`from_revision` varchar(255) default NULL,
|
119
|
`revision` varchar(255) default NULL,
|
120
|
`branch` varchar(255) default NULL,
|
121
|
PRIMARY KEY (`id`),
|
122
|
KEY `changesets_changeset_id` (`changeset_id`)
|
123
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
124
|
|
125
|
--
|
126
|
-- Dumping data for table `changes`
|
127
|
--
|
128
|
|
129
|
LOCK TABLES `changes` WRITE;
|
130
|
/*!40000 ALTER TABLE `changes` DISABLE KEYS */;
|
131
|
/*!40000 ALTER TABLE `changes` ENABLE KEYS */;
|
132
|
UNLOCK TABLES;
|
133
|
|
134
|
--
|
135
|
-- Table structure for table `changesets`
|
136
|
--
|
137
|
|
138
|
DROP TABLE IF EXISTS `changesets`;
|
139
|
CREATE TABLE `changesets` (
|
140
|
`id` int(11) NOT NULL auto_increment,
|
141
|
`repository_id` int(11) NOT NULL,
|
142
|
`revision` varchar(255) NOT NULL,
|
143
|
`committer` varchar(255) default NULL,
|
144
|
`committed_on` datetime NOT NULL,
|
145
|
`comments` text,
|
146
|
`commit_date` date default NULL,
|
147
|
`scmid` varchar(255) default NULL,
|
148
|
`user_id` int(11) default NULL,
|
149
|
PRIMARY KEY (`id`),
|
150
|
UNIQUE KEY `changesets_repos_rev` (`repository_id`,`revision`)
|
151
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
152
|
|
153
|
--
|
154
|
-- Dumping data for table `changesets`
|
155
|
--
|
156
|
|
157
|
LOCK TABLES `changesets` WRITE;
|
158
|
/*!40000 ALTER TABLE `changesets` DISABLE KEYS */;
|
159
|
/*!40000 ALTER TABLE `changesets` ENABLE KEYS */;
|
160
|
UNLOCK TABLES;
|
161
|
|
162
|
--
|
163
|
-- Table structure for table `changesets_issues`
|
164
|
--
|
165
|
|
166
|
DROP TABLE IF EXISTS `changesets_issues`;
|
167
|
CREATE TABLE `changesets_issues` (
|
168
|
`changeset_id` int(11) NOT NULL,
|
169
|
`issue_id` int(11) NOT NULL,
|
170
|
UNIQUE KEY `changesets_issues_ids` (`changeset_id`,`issue_id`)
|
171
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
172
|
|
173
|
--
|
174
|
-- Dumping data for table `changesets_issues`
|
175
|
--
|
176
|
|
177
|
LOCK TABLES `changesets_issues` WRITE;
|
178
|
/*!40000 ALTER TABLE `changesets_issues` DISABLE KEYS */;
|
179
|
/*!40000 ALTER TABLE `changesets_issues` ENABLE KEYS */;
|
180
|
UNLOCK TABLES;
|
181
|
|
182
|
--
|
183
|
-- Table structure for table `comments`
|
184
|
--
|
185
|
|
186
|
DROP TABLE IF EXISTS `comments`;
|
187
|
CREATE TABLE `comments` (
|
188
|
`id` int(11) NOT NULL auto_increment,
|
189
|
`commented_type` varchar(30) NOT NULL default '',
|
190
|
`commented_id` int(11) NOT NULL default '0',
|
191
|
`author_id` int(11) NOT NULL default '0',
|
192
|
`comments` text,
|
193
|
`created_on` datetime NOT NULL,
|
194
|
`updated_on` datetime NOT NULL,
|
195
|
PRIMARY KEY (`id`)
|
196
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
197
|
|
198
|
--
|
199
|
-- Dumping data for table `comments`
|
200
|
--
|
201
|
|
202
|
LOCK TABLES `comments` WRITE;
|
203
|
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
|
204
|
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
|
205
|
UNLOCK TABLES;
|
206
|
|
207
|
--
|
208
|
-- Table structure for table `custom_fields`
|
209
|
--
|
210
|
|
211
|
DROP TABLE IF EXISTS `custom_fields`;
|
212
|
CREATE TABLE `custom_fields` (
|
213
|
`id` int(11) NOT NULL auto_increment,
|
214
|
`type` varchar(30) NOT NULL default '',
|
215
|
`name` varchar(30) NOT NULL default '',
|
216
|
`field_format` varchar(30) NOT NULL default '',
|
217
|
`possible_values` text,
|
218
|
`regexp` varchar(255) default '',
|
219
|
`min_length` int(11) NOT NULL default '0',
|
220
|
`max_length` int(11) NOT NULL default '0',
|
221
|
`is_required` tinyint(1) NOT NULL default '0',
|
222
|
`is_for_all` tinyint(1) NOT NULL default '0',
|
223
|
`is_filter` tinyint(1) NOT NULL default '0',
|
224
|
`position` int(11) default '1',
|
225
|
`searchable` tinyint(1) default '0',
|
226
|
`default_value` text,
|
227
|
PRIMARY KEY (`id`)
|
228
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
229
|
|
230
|
--
|
231
|
-- Dumping data for table `custom_fields`
|
232
|
--
|
233
|
|
234
|
LOCK TABLES `custom_fields` WRITE;
|
235
|
/*!40000 ALTER TABLE `custom_fields` DISABLE KEYS */;
|
236
|
/*!40000 ALTER TABLE `custom_fields` ENABLE KEYS */;
|
237
|
UNLOCK TABLES;
|
238
|
|
239
|
--
|
240
|
-- Table structure for table `custom_fields_projects`
|
241
|
--
|
242
|
|
243
|
DROP TABLE IF EXISTS `custom_fields_projects`;
|
244
|
CREATE TABLE `custom_fields_projects` (
|
245
|
`custom_field_id` int(11) NOT NULL default '0',
|
246
|
`project_id` int(11) NOT NULL default '0'
|
247
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
248
|
|
249
|
--
|
250
|
-- Dumping data for table `custom_fields_projects`
|
251
|
--
|
252
|
|
253
|
LOCK TABLES `custom_fields_projects` WRITE;
|
254
|
/*!40000 ALTER TABLE `custom_fields_projects` DISABLE KEYS */;
|
255
|
/*!40000 ALTER TABLE `custom_fields_projects` ENABLE KEYS */;
|
256
|
UNLOCK TABLES;
|
257
|
|
258
|
--
|
259
|
-- Table structure for table `custom_fields_trackers`
|
260
|
--
|
261
|
|
262
|
DROP TABLE IF EXISTS `custom_fields_trackers`;
|
263
|
CREATE TABLE `custom_fields_trackers` (
|
264
|
`custom_field_id` int(11) NOT NULL default '0',
|
265
|
`tracker_id` int(11) NOT NULL default '0'
|
266
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
267
|
|
268
|
--
|
269
|
-- Dumping data for table `custom_fields_trackers`
|
270
|
--
|
271
|
|
272
|
LOCK TABLES `custom_fields_trackers` WRITE;
|
273
|
/*!40000 ALTER TABLE `custom_fields_trackers` DISABLE KEYS */;
|
274
|
/*!40000 ALTER TABLE `custom_fields_trackers` ENABLE KEYS */;
|
275
|
UNLOCK TABLES;
|
276
|
|
277
|
--
|
278
|
-- Table structure for table `custom_values`
|
279
|
--
|
280
|
|
281
|
DROP TABLE IF EXISTS `custom_values`;
|
282
|
CREATE TABLE `custom_values` (
|
283
|
`id` int(11) NOT NULL auto_increment,
|
284
|
`customized_type` varchar(30) NOT NULL default '',
|
285
|
`customized_id` int(11) NOT NULL default '0',
|
286
|
`custom_field_id` int(11) NOT NULL default '0',
|
287
|
`value` text,
|
288
|
PRIMARY KEY (`id`),
|
289
|
KEY `custom_values_customized` (`customized_type`,`customized_id`)
|
290
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
291
|
|
292
|
--
|
293
|
-- Dumping data for table `custom_values`
|
294
|
--
|
295
|
|
296
|
LOCK TABLES `custom_values` WRITE;
|
297
|
/*!40000 ALTER TABLE `custom_values` DISABLE KEYS */;
|
298
|
/*!40000 ALTER TABLE `custom_values` ENABLE KEYS */;
|
299
|
UNLOCK TABLES;
|
300
|
|
301
|
--
|
302
|
-- Table structure for table `documents`
|
303
|
--
|
304
|
|
305
|
DROP TABLE IF EXISTS `documents`;
|
306
|
CREATE TABLE `documents` (
|
307
|
`id` int(11) NOT NULL auto_increment,
|
308
|
`project_id` int(11) NOT NULL default '0',
|
309
|
`category_id` int(11) NOT NULL default '0',
|
310
|
`title` varchar(60) NOT NULL default '',
|
311
|
`description` text,
|
312
|
`created_on` datetime default NULL,
|
313
|
PRIMARY KEY (`id`),
|
314
|
KEY `documents_project_id` (`project_id`)
|
315
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
316
|
|
317
|
--
|
318
|
-- Dumping data for table `documents`
|
319
|
--
|
320
|
|
321
|
LOCK TABLES `documents` WRITE;
|
322
|
/*!40000 ALTER TABLE `documents` DISABLE KEYS */;
|
323
|
/*!40000 ALTER TABLE `documents` ENABLE KEYS */;
|
324
|
UNLOCK TABLES;
|
325
|
|
326
|
--
|
327
|
-- Table structure for table `enabled_modules`
|
328
|
--
|
329
|
|
330
|
DROP TABLE IF EXISTS `enabled_modules`;
|
331
|
CREATE TABLE `enabled_modules` (
|
332
|
`id` int(11) NOT NULL auto_increment,
|
333
|
`project_id` int(11) default NULL,
|
334
|
`name` varchar(255) NOT NULL,
|
335
|
PRIMARY KEY (`id`),
|
336
|
KEY `enabled_modules_project_id` (`project_id`)
|
337
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
338
|
|
339
|
--
|
340
|
-- Dumping data for table `enabled_modules`
|
341
|
--
|
342
|
|
343
|
LOCK TABLES `enabled_modules` WRITE;
|
344
|
/*!40000 ALTER TABLE `enabled_modules` DISABLE KEYS */;
|
345
|
/*!40000 ALTER TABLE `enabled_modules` ENABLE KEYS */;
|
346
|
UNLOCK TABLES;
|
347
|
|
348
|
--
|
349
|
-- Table structure for table `enumerations`
|
350
|
--
|
351
|
|
352
|
DROP TABLE IF EXISTS `enumerations`;
|
353
|
CREATE TABLE `enumerations` (
|
354
|
`id` int(11) NOT NULL auto_increment,
|
355
|
`opt` varchar(4) NOT NULL default '',
|
356
|
`name` varchar(30) NOT NULL default '',
|
357
|
`position` int(11) default '1',
|
358
|
`is_default` tinyint(1) NOT NULL default '0',
|
359
|
PRIMARY KEY (`id`)
|
360
|
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
|
361
|
|
362
|
--
|
363
|
-- Dumping data for table `enumerations`
|
364
|
--
|
365
|
|
366
|
LOCK TABLES `enumerations` WRITE;
|
367
|
/*!40000 ALTER TABLE `enumerations` DISABLE KEYS */;
|
368
|
INSERT INTO `enumerations` VALUES (1,'DCAT','User documentation',1,0),(2,'DCAT','Technical documentation',2,0),(3,'IPRI','Low',1,0),(4,'IPRI','Normal',2,1),(5,'IPRI','High',3,0),(6,'IPRI','Urgent',4,0),(7,'IPRI','Immediate',5,0),(8,'ACTI','Design',1,0),(9,'ACTI','Development',2,0);
|
369
|
/*!40000 ALTER TABLE `enumerations` ENABLE KEYS */;
|
370
|
UNLOCK TABLES;
|
371
|
|
372
|
--
|
373
|
-- Table structure for table `issue_categories`
|
374
|
--
|
375
|
|
376
|
DROP TABLE IF EXISTS `issue_categories`;
|
377
|
CREATE TABLE `issue_categories` (
|
378
|
`id` int(11) NOT NULL auto_increment,
|
379
|
`project_id` int(11) NOT NULL default '0',
|
380
|
`name` varchar(30) NOT NULL default '',
|
381
|
`assigned_to_id` int(11) default NULL,
|
382
|
PRIMARY KEY (`id`),
|
383
|
KEY `issue_categories_project_id` (`project_id`)
|
384
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
385
|
|
386
|
--
|
387
|
-- Dumping data for table `issue_categories`
|
388
|
--
|
389
|
|
390
|
LOCK TABLES `issue_categories` WRITE;
|
391
|
/*!40000 ALTER TABLE `issue_categories` DISABLE KEYS */;
|
392
|
/*!40000 ALTER TABLE `issue_categories` ENABLE KEYS */;
|
393
|
UNLOCK TABLES;
|
394
|
|
395
|
--
|
396
|
-- Table structure for table `issue_relations`
|
397
|
--
|
398
|
|
399
|
DROP TABLE IF EXISTS `issue_relations`;
|
400
|
CREATE TABLE `issue_relations` (
|
401
|
`id` int(11) NOT NULL auto_increment,
|
402
|
`issue_from_id` int(11) NOT NULL,
|
403
|
`issue_to_id` int(11) NOT NULL,
|
404
|
`relation_type` varchar(255) NOT NULL default '',
|
405
|
`delay` int(11) default NULL,
|
406
|
PRIMARY KEY (`id`)
|
407
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
408
|
|
409
|
--
|
410
|
-- Dumping data for table `issue_relations`
|
411
|
--
|
412
|
|
413
|
LOCK TABLES `issue_relations` WRITE;
|
414
|
/*!40000 ALTER TABLE `issue_relations` DISABLE KEYS */;
|
415
|
/*!40000 ALTER TABLE `issue_relations` ENABLE KEYS */;
|
416
|
UNLOCK TABLES;
|
417
|
|
418
|
--
|
419
|
-- Table structure for table `issue_statuses`
|
420
|
--
|
421
|
|
422
|
DROP TABLE IF EXISTS `issue_statuses`;
|
423
|
CREATE TABLE `issue_statuses` (
|
424
|
`id` int(11) NOT NULL auto_increment,
|
425
|
`name` varchar(30) NOT NULL default '',
|
426
|
`is_closed` tinyint(1) NOT NULL default '0',
|
427
|
`is_default` tinyint(1) NOT NULL default '0',
|
428
|
`position` int(11) default '1',
|
429
|
PRIMARY KEY (`id`)
|
430
|
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
|
431
|
|
432
|
--
|
433
|
-- Dumping data for table `issue_statuses`
|
434
|
--
|
435
|
|
436
|
LOCK TABLES `issue_statuses` WRITE;
|
437
|
/*!40000 ALTER TABLE `issue_statuses` DISABLE KEYS */;
|
438
|
INSERT INTO `issue_statuses` VALUES (1,'New',0,1,1),(2,'Assigned',0,0,2),(3,'Resolved',0,0,3),(4,'Feedback',0,0,4),(5,'Closed',1,0,5),(6,'Rejected',1,0,6);
|
439
|
/*!40000 ALTER TABLE `issue_statuses` ENABLE KEYS */;
|
440
|
UNLOCK TABLES;
|
441
|
|
442
|
--
|
443
|
-- Table structure for table `issues`
|
444
|
--
|
445
|
|
446
|
DROP TABLE IF EXISTS `issues`;
|
447
|
CREATE TABLE `issues` (
|
448
|
`id` int(11) NOT NULL auto_increment,
|
449
|
`tracker_id` int(11) NOT NULL default '0',
|
450
|
`project_id` int(11) NOT NULL default '0',
|
451
|
`subject` varchar(255) NOT NULL default '',
|
452
|
`description` text,
|
453
|
`due_date` date default NULL,
|
454
|
`category_id` int(11) default NULL,
|
455
|
`status_id` int(11) NOT NULL default '0',
|
456
|
`assigned_to_id` int(11) default NULL,
|
457
|
`priority_id` int(11) NOT NULL default '0',
|
458
|
`fixed_version_id` int(11) default NULL,
|
459
|
`author_id` int(11) NOT NULL default '0',
|
460
|
`lock_version` int(11) NOT NULL default '0',
|
461
|
`created_on` datetime default NULL,
|
462
|
`updated_on` datetime default NULL,
|
463
|
`start_date` date default NULL,
|
464
|
`done_ratio` int(11) NOT NULL default '0',
|
465
|
`estimated_hours` float default NULL,
|
466
|
PRIMARY KEY (`id`),
|
467
|
KEY `issues_project_id` (`project_id`)
|
468
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
469
|
|
470
|
--
|
471
|
-- Dumping data for table `issues`
|
472
|
--
|
473
|
|
474
|
LOCK TABLES `issues` WRITE;
|
475
|
/*!40000 ALTER TABLE `issues` DISABLE KEYS */;
|
476
|
/*!40000 ALTER TABLE `issues` ENABLE KEYS */;
|
477
|
UNLOCK TABLES;
|
478
|
|
479
|
--
|
480
|
-- Table structure for table `journal_details`
|
481
|
--
|
482
|
|
483
|
DROP TABLE IF EXISTS `journal_details`;
|
484
|
CREATE TABLE `journal_details` (
|
485
|
`id` int(11) NOT NULL auto_increment,
|
486
|
`journal_id` int(11) NOT NULL default '0',
|
487
|
`property` varchar(30) NOT NULL default '',
|
488
|
`prop_key` varchar(30) NOT NULL default '',
|
489
|
`old_value` varchar(255) default NULL,
|
490
|
`value` varchar(255) default NULL,
|
491
|
PRIMARY KEY (`id`),
|
492
|
KEY `journal_details_journal_id` (`journal_id`)
|
493
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
494
|
|
495
|
--
|
496
|
-- Dumping data for table `journal_details`
|
497
|
--
|
498
|
|
499
|
LOCK TABLES `journal_details` WRITE;
|
500
|
/*!40000 ALTER TABLE `journal_details` DISABLE KEYS */;
|
501
|
/*!40000 ALTER TABLE `journal_details` ENABLE KEYS */;
|
502
|
UNLOCK TABLES;
|
503
|
|
504
|
--
|
505
|
-- Table structure for table `journals`
|
506
|
--
|
507
|
|
508
|
DROP TABLE IF EXISTS `journals`;
|
509
|
CREATE TABLE `journals` (
|
510
|
`id` int(11) NOT NULL auto_increment,
|
511
|
`journalized_id` int(11) NOT NULL default '0',
|
512
|
`journalized_type` varchar(30) NOT NULL default '',
|
513
|
`user_id` int(11) NOT NULL default '0',
|
514
|
`notes` text,
|
515
|
`created_on` datetime NOT NULL,
|
516
|
PRIMARY KEY (`id`),
|
517
|
KEY `journals_journalized_id` (`journalized_id`,`journalized_type`)
|
518
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
519
|
|
520
|
--
|
521
|
-- Dumping data for table `journals`
|
522
|
--
|
523
|
|
524
|
LOCK TABLES `journals` WRITE;
|
525
|
/*!40000 ALTER TABLE `journals` DISABLE KEYS */;
|
526
|
/*!40000 ALTER TABLE `journals` ENABLE KEYS */;
|
527
|
UNLOCK TABLES;
|
528
|
|
529
|
--
|
530
|
-- Table structure for table `members`
|
531
|
--
|
532
|
|
533
|
DROP TABLE IF EXISTS `members`;
|
534
|
CREATE TABLE `members` (
|
535
|
`id` int(11) NOT NULL auto_increment,
|
536
|
`user_id` int(11) NOT NULL default '0',
|
537
|
`project_id` int(11) NOT NULL default '0',
|
538
|
`role_id` int(11) NOT NULL default '0',
|
539
|
`created_on` datetime default NULL,
|
540
|
`mail_notification` tinyint(1) NOT NULL default '0',
|
541
|
PRIMARY KEY (`id`)
|
542
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
543
|
|
544
|
--
|
545
|
-- Dumping data for table `members`
|
546
|
--
|
547
|
|
548
|
LOCK TABLES `members` WRITE;
|
549
|
/*!40000 ALTER TABLE `members` DISABLE KEYS */;
|
550
|
/*!40000 ALTER TABLE `members` ENABLE KEYS */;
|
551
|
UNLOCK TABLES;
|
552
|
|
553
|
--
|
554
|
-- Table structure for table `messages`
|
555
|
--
|
556
|
|
557
|
DROP TABLE IF EXISTS `messages`;
|
558
|
CREATE TABLE `messages` (
|
559
|
`id` int(11) NOT NULL auto_increment,
|
560
|
`board_id` int(11) NOT NULL,
|
561
|
`parent_id` int(11) default NULL,
|
562
|
`subject` varchar(255) NOT NULL default '',
|
563
|
`content` text,
|
564
|
`author_id` int(11) default NULL,
|
565
|
`replies_count` int(11) NOT NULL default '0',
|
566
|
`last_reply_id` int(11) default NULL,
|
567
|
`created_on` datetime NOT NULL,
|
568
|
`updated_on` datetime NOT NULL,
|
569
|
`locked` tinyint(1) default '0',
|
570
|
`sticky` int(11) default '0',
|
571
|
PRIMARY KEY (`id`),
|
572
|
KEY `messages_board_id` (`board_id`),
|
573
|
KEY `messages_parent_id` (`parent_id`)
|
574
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
575
|
|
576
|
--
|
577
|
-- Dumping data for table `messages`
|
578
|
--
|
579
|
|
580
|
LOCK TABLES `messages` WRITE;
|
581
|
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
|
582
|
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
|
583
|
UNLOCK TABLES;
|
584
|
|
585
|
--
|
586
|
-- Table structure for table `news`
|
587
|
--
|
588
|
|
589
|
DROP TABLE IF EXISTS `news`;
|
590
|
CREATE TABLE `news` (
|
591
|
`id` int(11) NOT NULL auto_increment,
|
592
|
`project_id` int(11) default NULL,
|
593
|
`title` varchar(60) NOT NULL default '',
|
594
|
`summary` varchar(255) default '',
|
595
|
`description` text,
|
596
|
`author_id` int(11) NOT NULL default '0',
|
597
|
`created_on` datetime default NULL,
|
598
|
`comments_count` int(11) NOT NULL default '0',
|
599
|
PRIMARY KEY (`id`),
|
600
|
KEY `news_project_id` (`project_id`)
|
601
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
602
|
|
603
|
--
|
604
|
-- Dumping data for table `news`
|
605
|
--
|
606
|
|
607
|
LOCK TABLES `news` WRITE;
|
608
|
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
|
609
|
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
|
610
|
UNLOCK TABLES;
|
611
|
|
612
|
--
|
613
|
-- Table structure for table `plugin_schema_info`
|
614
|
--
|
615
|
|
616
|
DROP TABLE IF EXISTS `plugin_schema_info`;
|
617
|
CREATE TABLE `plugin_schema_info` (
|
618
|
`plugin_name` varchar(255) default NULL,
|
619
|
`version` int(11) default NULL
|
620
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
621
|
|
622
|
--
|
623
|
-- Dumping data for table `plugin_schema_info`
|
624
|
--
|
625
|
|
626
|
LOCK TABLES `plugin_schema_info` WRITE;
|
627
|
/*!40000 ALTER TABLE `plugin_schema_info` DISABLE KEYS */;
|
628
|
/*!40000 ALTER TABLE `plugin_schema_info` ENABLE KEYS */;
|
629
|
UNLOCK TABLES;
|
630
|
|
631
|
--
|
632
|
-- Table structure for table `projects`
|
633
|
--
|
634
|
|
635
|
DROP TABLE IF EXISTS `projects`;
|
636
|
CREATE TABLE `projects` (
|
637
|
`id` int(11) NOT NULL auto_increment,
|
638
|
`name` varchar(30) NOT NULL default '',
|
639
|
`description` text,
|
640
|
`homepage` varchar(255) default '',
|
641
|
`is_public` tinyint(1) NOT NULL default '1',
|
642
|
`parent_id` int(11) default NULL,
|
643
|
`projects_count` int(11) default '0',
|
644
|
`created_on` datetime default NULL,
|
645
|
`updated_on` datetime default NULL,
|
646
|
`identifier` varchar(20) default NULL,
|
647
|
`status` int(11) NOT NULL default '1',
|
648
|
PRIMARY KEY (`id`)
|
649
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
650
|
|
651
|
--
|
652
|
-- Dumping data for table `projects`
|
653
|
--
|
654
|
|
655
|
LOCK TABLES `projects` WRITE;
|
656
|
/*!40000 ALTER TABLE `projects` DISABLE KEYS */;
|
657
|
/*!40000 ALTER TABLE `projects` ENABLE KEYS */;
|
658
|
UNLOCK TABLES;
|
659
|
|
660
|
--
|
661
|
-- Table structure for table `projects_trackers`
|
662
|
--
|
663
|
|
664
|
DROP TABLE IF EXISTS `projects_trackers`;
|
665
|
CREATE TABLE `projects_trackers` (
|
666
|
`project_id` int(11) NOT NULL default '0',
|
667
|
`tracker_id` int(11) NOT NULL default '0',
|
668
|
KEY `projects_trackers_project_id` (`project_id`)
|
669
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
670
|
|
671
|
--
|
672
|
-- Dumping data for table `projects_trackers`
|
673
|
--
|
674
|
|
675
|
LOCK TABLES `projects_trackers` WRITE;
|
676
|
/*!40000 ALTER TABLE `projects_trackers` DISABLE KEYS */;
|
677
|
/*!40000 ALTER TABLE `projects_trackers` ENABLE KEYS */;
|
678
|
UNLOCK TABLES;
|
679
|
|
680
|
--
|
681
|
-- Table structure for table `queries`
|
682
|
--
|
683
|
|
684
|
DROP TABLE IF EXISTS `queries`;
|
685
|
CREATE TABLE `queries` (
|
686
|
`id` int(11) NOT NULL auto_increment,
|
687
|
`project_id` int(11) default NULL,
|
688
|
`name` varchar(255) NOT NULL default '',
|
689
|
`filters` text,
|
690
|
`user_id` int(11) NOT NULL default '0',
|
691
|
`is_public` tinyint(1) NOT NULL default '0',
|
692
|
`column_names` text,
|
693
|
PRIMARY KEY (`id`)
|
694
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
695
|
|
696
|
--
|
697
|
-- Dumping data for table `queries`
|
698
|
--
|
699
|
|
700
|
LOCK TABLES `queries` WRITE;
|
701
|
/*!40000 ALTER TABLE `queries` DISABLE KEYS */;
|
702
|
/*!40000 ALTER TABLE `queries` ENABLE KEYS */;
|
703
|
UNLOCK TABLES;
|
704
|
|
705
|
--
|
706
|
-- Table structure for table `repositories`
|
707
|
--
|
708
|
|
709
|
DROP TABLE IF EXISTS `repositories`;
|
710
|
CREATE TABLE `repositories` (
|
711
|
`id` int(11) NOT NULL auto_increment,
|
712
|
`project_id` int(11) NOT NULL default '0',
|
713
|
`url` varchar(255) NOT NULL default '',
|
714
|
`login` varchar(60) default '',
|
715
|
`password` varchar(60) default '',
|
716
|
`root_url` varchar(255) default '',
|
717
|
`type` varchar(255) default NULL,
|
718
|
PRIMARY KEY (`id`)
|
719
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
720
|
|
721
|
--
|
722
|
-- Dumping data for table `repositories`
|
723
|
--
|
724
|
|
725
|
LOCK TABLES `repositories` WRITE;
|
726
|
/*!40000 ALTER TABLE `repositories` DISABLE KEYS */;
|
727
|
/*!40000 ALTER TABLE `repositories` ENABLE KEYS */;
|
728
|
UNLOCK TABLES;
|
729
|
|
730
|
--
|
731
|
-- Table structure for table `roles`
|
732
|
--
|
733
|
|
734
|
DROP TABLE IF EXISTS `roles`;
|
735
|
CREATE TABLE `roles` (
|
736
|
`id` int(11) NOT NULL auto_increment,
|
737
|
`name` varchar(30) NOT NULL default '',
|
738
|
`position` int(11) default '1',
|
739
|
`assignable` tinyint(1) default '1',
|
740
|
`builtin` int(11) NOT NULL default '0',
|
741
|
`permissions` text,
|
742
|
PRIMARY KEY (`id`)
|
743
|
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
|
744
|
|
745
|
--
|
746
|
-- Dumping data for table `roles`
|
747
|
--
|
748
|
|
749
|
LOCK TABLES `roles` WRITE;
|
750
|
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
|
751
|
INSERT INTO `roles` VALUES (1,'Non member',1,1,1,'--- \n- :add_issues\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :add_messages\n- :view_files\n- :browse_repository\n- :view_changesets\n'),(2,'Anonymous',2,1,2,'--- \n- :view_gantt\n- :view_calendar\n- :view_time_entries\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :view_files\n- :browse_repository\n- :view_changesets\n'),(3,'Manager',3,1,0,'--- \n- :edit_project\n- :select_project_modules\n- :manage_members\n- :manage_versions\n- :manage_categories\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :add_issue_notes\n- :edit_issue_notes\n- :edit_own_issue_notes\n- :move_issues\n- :delete_issues\n- :manage_public_queries\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :view_issue_watchers\n- :add_issue_watchers\n- :log_time\n- :view_time_entries\n- :edit_time_entries\n- :edit_own_time_entries\n- :manage_news\n- :comment_news\n- :manage_documents\n- :view_documents\n- :manage_files\n- :view_files\n- :manage_wiki\n- :rename_wiki_pages\n- :delete_wiki_pages\n- :view_wiki_pages\n- :view_wiki_edits\n- :edit_wiki_pages\n- :delete_wiki_pages_attachments\n- :protect_wiki_pages\n- :manage_repository\n- :browse_repository\n- :view_changesets\n- :commit_access\n- :manage_boards\n- :add_messages\n- :edit_messages\n- :edit_own_messages\n- :delete_messages\n- :delete_own_messages\n'),(4,'Developer',4,1,0,'--- \n- :manage_versions\n- :manage_categories\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :log_time\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :edit_wiki_pages\n- :delete_wiki_pages\n- :add_messages\n- :edit_own_messages\n- :view_files\n- :manage_files\n- :browse_repository\n- :view_changesets\n- :commit_access\n'),(5,'Reporter',5,1,0,'--- \n- :add_issues\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :log_time\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :add_messages\n- :edit_own_messages\n- :view_files\n- :browse_repository\n- :view_changesets\n');
|
752
|
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
|
753
|
UNLOCK TABLES;
|
754
|
|
755
|
--
|
756
|
-- Table structure for table `schema_migrations`
|
757
|
--
|
758
|
|
759
|
DROP TABLE IF EXISTS `schema_migrations`;
|
760
|
CREATE TABLE `schema_migrations` (
|
761
|
`version` varchar(255) NOT NULL,
|
762
|
UNIQUE KEY `unique_schema_migrations` (`version`)
|
763
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
764
|
|
765
|
--
|
766
|
-- Dumping data for table `schema_migrations`
|
767
|
--
|
768
|
|
769
|
LOCK TABLES `schema_migrations` WRITE;
|
770
|
/*!40000 ALTER TABLE `schema_migrations` DISABLE KEYS */;
|
771
|
INSERT INTO `schema_migrations` VALUES ('1'),('10'),('100'),('101'),('11'),('12'),('13'),('14'),('15'),('16'),('17'),('18'),('19'),('2'),('20'),('21'),('22'),('23'),('24'),('25'),('26'),('27'),('28'),('29'),('3'),('30'),('31'),('32'),('33'),('34'),('35'),('36'),('37'),('38'),('39'),('4'),('40'),('41'),('42'),('43'),('44'),('45'),('46'),('47'),('48'),('49'),('5'),('50'),('51'),('52'),('53'),('54'),('55'),('56'),('57'),('58'),('59'),('6'),('60'),('61'),('62'),('63'),('64'),('65'),('66'),('67'),('68'),('69'),('7'),('70'),('71'),('72'),('73'),('74'),('75'),('76'),('77'),('78'),('79'),('8'),('80'),('81'),('82'),('83'),('84'),('85'),('86'),('87'),('88'),('89'),('9'),('90'),('91'),('92'),('93'),('94'),('95'),('96'),('97'),('98'),('99');
|
772
|
/*!40000 ALTER TABLE `schema_migrations` ENABLE KEYS */;
|
773
|
UNLOCK TABLES;
|
774
|
|
775
|
--
|
776
|
-- Table structure for table `settings`
|
777
|
--
|
778
|
|
779
|
DROP TABLE IF EXISTS `settings`;
|
780
|
CREATE TABLE `settings` (
|
781
|
`id` int(11) NOT NULL auto_increment,
|
782
|
`name` varchar(30) NOT NULL default '',
|
783
|
`value` text,
|
784
|
`updated_on` datetime default NULL,
|
785
|
PRIMARY KEY (`id`)
|
786
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
787
|
|
788
|
--
|
789
|
-- Dumping data for table `settings`
|
790
|
--
|
791
|
|
792
|
LOCK TABLES `settings` WRITE;
|
793
|
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
|
794
|
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
|
795
|
UNLOCK TABLES;
|
796
|
|
797
|
--
|
798
|
-- Table structure for table `time_entries`
|
799
|
--
|
800
|
|
801
|
DROP TABLE IF EXISTS `time_entries`;
|
802
|
CREATE TABLE `time_entries` (
|
803
|
`id` int(11) NOT NULL auto_increment,
|
804
|
`project_id` int(11) NOT NULL,
|
805
|
`user_id` int(11) NOT NULL,
|
806
|
`issue_id` int(11) default NULL,
|
807
|
`hours` float NOT NULL,
|
808
|
`comments` varchar(255) default NULL,
|
809
|
`activity_id` int(11) NOT NULL,
|
810
|
`spent_on` date NOT NULL,
|
811
|
`tyear` int(11) NOT NULL,
|
812
|
`tmonth` int(11) NOT NULL,
|
813
|
`tweek` int(11) NOT NULL,
|
814
|
`created_on` datetime NOT NULL,
|
815
|
`updated_on` datetime NOT NULL,
|
816
|
PRIMARY KEY (`id`),
|
817
|
KEY `time_entries_project_id` (`project_id`),
|
818
|
KEY `time_entries_issue_id` (`issue_id`)
|
819
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
820
|
|
821
|
--
|
822
|
-- Dumping data for table `time_entries`
|
823
|
--
|
824
|
|
825
|
LOCK TABLES `time_entries` WRITE;
|
826
|
/*!40000 ALTER TABLE `time_entries` DISABLE KEYS */;
|
827
|
/*!40000 ALTER TABLE `time_entries` ENABLE KEYS */;
|
828
|
UNLOCK TABLES;
|
829
|
|
830
|
--
|
831
|
-- Table structure for table `tokens`
|
832
|
--
|
833
|
|
834
|
DROP TABLE IF EXISTS `tokens`;
|
835
|
CREATE TABLE `tokens` (
|
836
|
`id` int(11) NOT NULL auto_increment,
|
837
|
`user_id` int(11) NOT NULL default '0',
|
838
|
`action` varchar(30) NOT NULL default '',
|
839
|
`value` varchar(40) NOT NULL default '',
|
840
|
`created_on` datetime NOT NULL,
|
841
|
PRIMARY KEY (`id`)
|
842
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
843
|
|
844
|
--
|
845
|
-- Dumping data for table `tokens`
|
846
|
--
|
847
|
|
848
|
LOCK TABLES `tokens` WRITE;
|
849
|
/*!40000 ALTER TABLE `tokens` DISABLE KEYS */;
|
850
|
/*!40000 ALTER TABLE `tokens` ENABLE KEYS */;
|
851
|
UNLOCK TABLES;
|
852
|
|
853
|
--
|
854
|
-- Table structure for table `trackers`
|
855
|
--
|
856
|
|
857
|
DROP TABLE IF EXISTS `trackers`;
|
858
|
CREATE TABLE `trackers` (
|
859
|
`id` int(11) NOT NULL auto_increment,
|
860
|
`name` varchar(30) NOT NULL default '',
|
861
|
`is_in_chlog` tinyint(1) NOT NULL default '0',
|
862
|
`position` int(11) default '1',
|
863
|
`is_in_roadmap` tinyint(1) NOT NULL default '1',
|
864
|
PRIMARY KEY (`id`)
|
865
|
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
866
|
|
867
|
--
|
868
|
-- Dumping data for table `trackers`
|
869
|
--
|
870
|
|
871
|
LOCK TABLES `trackers` WRITE;
|
872
|
/*!40000 ALTER TABLE `trackers` DISABLE KEYS */;
|
873
|
INSERT INTO `trackers` VALUES (1,'Bug',1,1,0),(2,'Feature',1,2,1),(3,'Support',0,3,0);
|
874
|
/*!40000 ALTER TABLE `trackers` ENABLE KEYS */;
|
875
|
UNLOCK TABLES;
|
876
|
|
877
|
--
|
878
|
-- Table structure for table `user_preferences`
|
879
|
--
|
880
|
|
881
|
DROP TABLE IF EXISTS `user_preferences`;
|
882
|
CREATE TABLE `user_preferences` (
|
883
|
`id` int(11) NOT NULL auto_increment,
|
884
|
`user_id` int(11) NOT NULL default '0',
|
885
|
`others` text,
|
886
|
`hide_mail` tinyint(1) default '0',
|
887
|
`time_zone` varchar(255) default NULL,
|
888
|
PRIMARY KEY (`id`)
|
889
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
890
|
|
891
|
--
|
892
|
-- Dumping data for table `user_preferences`
|
893
|
--
|
894
|
|
895
|
LOCK TABLES `user_preferences` WRITE;
|
896
|
/*!40000 ALTER TABLE `user_preferences` DISABLE KEYS */;
|
897
|
/*!40000 ALTER TABLE `user_preferences` ENABLE KEYS */;
|
898
|
UNLOCK TABLES;
|
899
|
|
900
|
--
|
901
|
-- Table structure for table `users`
|
902
|
--
|
903
|
|
904
|
DROP TABLE IF EXISTS `users`;
|
905
|
CREATE TABLE `users` (
|
906
|
`id` int(11) NOT NULL auto_increment,
|
907
|
`login` varchar(30) NOT NULL default '',
|
908
|
`hashed_password` varchar(40) NOT NULL default '',
|
909
|
`firstname` varchar(30) NOT NULL default '',
|
910
|
`lastname` varchar(30) NOT NULL default '',
|
911
|
`mail` varchar(60) NOT NULL default '',
|
912
|
`mail_notification` tinyint(1) NOT NULL default '1',
|
913
|
`admin` tinyint(1) NOT NULL default '0',
|
914
|
`status` int(11) NOT NULL default '1',
|
915
|
`last_login_on` datetime default NULL,
|
916
|
`language` varchar(5) default '',
|
917
|
`auth_source_id` int(11) default NULL,
|
918
|
`created_on` datetime default NULL,
|
919
|
`updated_on` datetime default NULL,
|
920
|
`type` varchar(255) default NULL,
|
921
|
PRIMARY KEY (`id`)
|
922
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
923
|
|
924
|
--
|
925
|
-- Dumping data for table `users`
|
926
|
--
|
927
|
|
928
|
LOCK TABLES `users` WRITE;
|
929
|
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
930
|
INSERT INTO `users` VALUES (1,'admin','d033e22ae348aeb5660fc2140aec35850c4da997','Redmine','Admin','admin@example.net',1,1,1,NULL,'en',NULL,'2009-06-06 14:17:44','2009-06-06 14:17:44','User');
|
931
|
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
932
|
UNLOCK TABLES;
|
933
|
|
934
|
--
|
935
|
-- Table structure for table `versions`
|
936
|
--
|
937
|
|
938
|
DROP TABLE IF EXISTS `versions`;
|
939
|
CREATE TABLE `versions` (
|
940
|
`id` int(11) NOT NULL auto_increment,
|
941
|
`project_id` int(11) NOT NULL default '0',
|
942
|
`name` varchar(255) NOT NULL default '',
|
943
|
`description` varchar(255) default '',
|
944
|
`effective_date` date default NULL,
|
945
|
`created_on` datetime default NULL,
|
946
|
`updated_on` datetime default NULL,
|
947
|
`wiki_page_title` varchar(255) default NULL,
|
948
|
PRIMARY KEY (`id`),
|
949
|
KEY `versions_project_id` (`project_id`)
|
950
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
951
|
|
952
|
--
|
953
|
-- Dumping data for table `versions`
|
954
|
--
|
955
|
|
956
|
LOCK TABLES `versions` WRITE;
|
957
|
/*!40000 ALTER TABLE `versions` DISABLE KEYS */;
|
958
|
/*!40000 ALTER TABLE `versions` ENABLE KEYS */;
|
959
|
UNLOCK TABLES;
|
960
|
|
961
|
--
|
962
|
-- Table structure for table `watchers`
|
963
|
--
|
964
|
|
965
|
DROP TABLE IF EXISTS `watchers`;
|
966
|
CREATE TABLE `watchers` (
|
967
|
`id` int(11) NOT NULL auto_increment,
|
968
|
`watchable_type` varchar(255) NOT NULL default '',
|
969
|
`watchable_id` int(11) NOT NULL default '0',
|
970
|
`user_id` int(11) default NULL,
|
971
|
PRIMARY KEY (`id`)
|
972
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
973
|
|
974
|
--
|
975
|
-- Dumping data for table `watchers`
|
976
|
--
|
977
|
|
978
|
LOCK TABLES `watchers` WRITE;
|
979
|
/*!40000 ALTER TABLE `watchers` DISABLE KEYS */;
|
980
|
/*!40000 ALTER TABLE `watchers` ENABLE KEYS */;
|
981
|
UNLOCK TABLES;
|
982
|
|
983
|
--
|
984
|
-- Table structure for table `wiki_content_versions`
|
985
|
--
|
986
|
|
987
|
DROP TABLE IF EXISTS `wiki_content_versions`;
|
988
|
CREATE TABLE `wiki_content_versions` (
|
989
|
`id` int(11) NOT NULL auto_increment,
|
990
|
`wiki_content_id` int(11) NOT NULL,
|
991
|
`page_id` int(11) NOT NULL,
|
992
|
`author_id` int(11) default NULL,
|
993
|
`data` blob,
|
994
|
`compression` varchar(6) default '',
|
995
|
`comments` varchar(255) default '',
|
996
|
`updated_on` datetime NOT NULL,
|
997
|
`version` int(11) NOT NULL,
|
998
|
PRIMARY KEY (`id`),
|
999
|
KEY `wiki_content_versions_wcid` (`wiki_content_id`)
|
1000
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
1001
|
|
1002
|
--
|
1003
|
-- Dumping data for table `wiki_content_versions`
|
1004
|
--
|
1005
|
|
1006
|
LOCK TABLES `wiki_content_versions` WRITE;
|
1007
|
/*!40000 ALTER TABLE `wiki_content_versions` DISABLE KEYS */;
|
1008
|
/*!40000 ALTER TABLE `wiki_content_versions` ENABLE KEYS */;
|
1009
|
UNLOCK TABLES;
|
1010
|
|
1011
|
--
|
1012
|
-- Table structure for table `wiki_contents`
|
1013
|
--
|
1014
|
|
1015
|
DROP TABLE IF EXISTS `wiki_contents`;
|
1016
|
CREATE TABLE `wiki_contents` (
|
1017
|
`id` int(11) NOT NULL auto_increment,
|
1018
|
`page_id` int(11) NOT NULL,
|
1019
|
`author_id` int(11) default NULL,
|
1020
|
`text` text,
|
1021
|
`comments` varchar(255) default '',
|
1022
|
`updated_on` datetime NOT NULL,
|
1023
|
`version` int(11) NOT NULL,
|
1024
|
PRIMARY KEY (`id`),
|
1025
|
KEY `wiki_contents_page_id` (`page_id`)
|
1026
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
1027
|
|
1028
|
--
|
1029
|
-- Dumping data for table `wiki_contents`
|
1030
|
--
|
1031
|
|
1032
|
LOCK TABLES `wiki_contents` WRITE;
|
1033
|
/*!40000 ALTER TABLE `wiki_contents` DISABLE KEYS */;
|
1034
|
/*!40000 ALTER TABLE `wiki_contents` ENABLE KEYS */;
|
1035
|
UNLOCK TABLES;
|
1036
|
|
1037
|
--
|
1038
|
-- Table structure for table `wiki_pages`
|
1039
|
--
|
1040
|
|
1041
|
DROP TABLE IF EXISTS `wiki_pages`;
|
1042
|
CREATE TABLE `wiki_pages` (
|
1043
|
`id` int(11) NOT NULL auto_increment,
|
1044
|
`wiki_id` int(11) NOT NULL,
|
1045
|
`title` varchar(255) NOT NULL,
|
1046
|
`created_on` datetime NOT NULL,
|
1047
|
`protected` tinyint(1) NOT NULL default '0',
|
1048
|
`parent_id` int(11) default NULL,
|
1049
|
PRIMARY KEY (`id`),
|
1050
|
KEY `wiki_pages_wiki_id_title` (`wiki_id`,`title`)
|
1051
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
1052
|
|
1053
|
--
|
1054
|
-- Dumping data for table `wiki_pages`
|
1055
|
--
|
1056
|
|
1057
|
LOCK TABLES `wiki_pages` WRITE;
|
1058
|
/*!40000 ALTER TABLE `wiki_pages` DISABLE KEYS */;
|
1059
|
/*!40000 ALTER TABLE `wiki_pages` ENABLE KEYS */;
|
1060
|
UNLOCK TABLES;
|
1061
|
|
1062
|
--
|
1063
|
-- Table structure for table `wiki_redirects`
|
1064
|
--
|
1065
|
|
1066
|
DROP TABLE IF EXISTS `wiki_redirects`;
|
1067
|
CREATE TABLE `wiki_redirects` (
|
1068
|
`id` int(11) NOT NULL auto_increment,
|
1069
|
`wiki_id` int(11) NOT NULL,
|
1070
|
`title` varchar(255) default NULL,
|
1071
|
`redirects_to` varchar(255) default NULL,
|
1072
|
`created_on` datetime NOT NULL,
|
1073
|
PRIMARY KEY (`id`),
|
1074
|
KEY `wiki_redirects_wiki_id_title` (`wiki_id`,`title`)
|
1075
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
1076
|
|
1077
|
--
|
1078
|
-- Dumping data for table `wiki_redirects`
|
1079
|
--
|
1080
|
|
1081
|
LOCK TABLES `wiki_redirects` WRITE;
|
1082
|
/*!40000 ALTER TABLE `wiki_redirects` DISABLE KEYS */;
|
1083
|
/*!40000 ALTER TABLE `wiki_redirects` ENABLE KEYS */;
|
1084
|
UNLOCK TABLES;
|
1085
|
|
1086
|
--
|
1087
|
-- Table structure for table `wikis`
|
1088
|
--
|
1089
|
|
1090
|
DROP TABLE IF EXISTS `wikis`;
|
1091
|
CREATE TABLE `wikis` (
|
1092
|
`id` int(11) NOT NULL auto_increment,
|
1093
|
`project_id` int(11) NOT NULL,
|
1094
|
`start_page` varchar(255) NOT NULL,
|
1095
|
`status` int(11) NOT NULL default '1',
|
1096
|
PRIMARY KEY (`id`),
|
1097
|
KEY `wikis_project_id` (`project_id`)
|
1098
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
1099
|
|
1100
|
--
|
1101
|
-- Dumping data for table `wikis`
|
1102
|
--
|
1103
|
|
1104
|
LOCK TABLES `wikis` WRITE;
|
1105
|
/*!40000 ALTER TABLE `wikis` DISABLE KEYS */;
|
1106
|
/*!40000 ALTER TABLE `wikis` ENABLE KEYS */;
|
1107
|
UNLOCK TABLES;
|
1108
|
|
1109
|
--
|
1110
|
-- Table structure for table `workflows`
|
1111
|
--
|
1112
|
|
1113
|
DROP TABLE IF EXISTS `workflows`;
|
1114
|
CREATE TABLE `workflows` (
|
1115
|
`id` int(11) NOT NULL auto_increment,
|
1116
|
`tracker_id` int(11) NOT NULL default '0',
|
1117
|
`old_status_id` int(11) NOT NULL default '0',
|
1118
|
`new_status_id` int(11) NOT NULL default '0',
|
1119
|
`role_id` int(11) NOT NULL default '0',
|
1120
|
PRIMARY KEY (`id`),
|
1121
|
KEY `wkfs_role_tracker_old_status` (`role_id`,`tracker_id`,`old_status_id`)
|
1122
|
) ENGINE=MyISAM AUTO_INCREMENT=145 DEFAULT CHARSET=latin1;
|
1123
|
|
1124
|
--
|
1125
|
-- Dumping data for table `workflows`
|
1126
|
--
|
1127
|
|
1128
|
LOCK TABLES `workflows` WRITE;
|
1129
|
/*!40000 ALTER TABLE `workflows` DISABLE KEYS */;
|
1130
|
INSERT INTO `workflows` VALUES (1,1,1,2,3),(2,1,1,3,3),(3,1,1,4,3),(4,1,1,5,3),(5,1,1,6,3),(6,1,2,1,3),(7,1,2,3,3),(8,1,2,4,3),(9,1,2,5,3),(10,1,2,6,3),(11,1,3,1,3),(12,1,3,2,3),(13,1,3,4,3),(14,1,3,5,3),(15,1,3,6,3),(16,1,4,1,3),(17,1,4,2,3),(18,1,4,3,3),(19,1,4,5,3),(20,1,4,6,3),(21,1,5,1,3),(22,1,5,2,3),(23,1,5,3,3),(24,1,5,4,3),(25,1,5,6,3),(26,1,6,1,3),(27,1,6,2,3),(28,1,6,3,3),(29,1,6,4,3),(30,1,6,5,3),(31,2,1,2,3),(32,2,1,3,3),(33,2,1,4,3),(34,2,1,5,3),(35,2,1,6,3),(36,2,2,1,3),(37,2,2,3,3),(38,2,2,4,3),(39,2,2,5,3),(40,2,2,6,3),(41,2,3,1,3),(42,2,3,2,3),(43,2,3,4,3),(44,2,3,5,3),(45,2,3,6,3),(46,2,4,1,3),(47,2,4,2,3),(48,2,4,3,3),(49,2,4,5,3),(50,2,4,6,3),(51,2,5,1,3),(52,2,5,2,3),(53,2,5,3,3),(54,2,5,4,3),(55,2,5,6,3),(56,2,6,1,3),(57,2,6,2,3),(58,2,6,3,3),(59,2,6,4,3),(60,2,6,5,3),(61,3,1,2,3),(62,3,1,3,3),(63,3,1,4,3),(64,3,1,5,3),(65,3,1,6,3),(66,3,2,1,3),(67,3,2,3,3),(68,3,2,4,3),(69,3,2,5,3),(70,3,2,6,3),(71,3,3,1,3),(72,3,3,2,3),(73,3,3,4,3),(74,3,3,5,3),(75,3,3,6,3),(76,3,4,1,3),(77,3,4,2,3),(78,3,4,3,3),(79,3,4,5,3),(80,3,4,6,3),(81,3,5,1,3),(82,3,5,2,3),(83,3,5,3,3),(84,3,5,4,3),(85,3,5,6,3),(86,3,6,1,3),(87,3,6,2,3),(88,3,6,3,3),(89,3,6,4,3),(90,3,6,5,3),(91,1,1,2,4),(92,1,1,3,4),(93,1,1,4,4),(94,1,1,5,4),(95,1,2,3,4),(96,1,2,4,4),(97,1,2,5,4),(98,1,3,2,4),(99,1,3,4,4),(100,1,3,5,4),(101,1,4,2,4),(102,1,4,3,4),(103,1,4,5,4),(104,2,1,2,4),(105,2,1,3,4),(106,2,1,4,4),(107,2,1,5,4),(108,2,2,3,4),(109,2,2,4,4),(110,2,2,5,4),(111,2,3,2,4),(112,2,3,4,4),(113,2,3,5,4),(114,2,4,2,4),(115,2,4,3,4),(116,2,4,5,4),(117,3,1,2,4),(118,3,1,3,4),(119,3,1,4,4),(120,3,1,5,4),(121,3,2,3,4),(122,3,2,4,4),(123,3,2,5,4),(124,3,3,2,4),(125,3,3,4,4),(126,3,3,5,4),(127,3,4,2,4),(128,3,4,3,4),(129,3,4,5,4),(130,1,1,5,5),(131,1,2,5,5),(132,1,3,5,5),(133,1,4,5,5),(134,1,3,4,5),(135,2,1,5,5),(136,2,2,5,5),(137,2,3,5,5),(138,2,4,5,5),(139,2,3,4,5),(140,3,1,5,5),(141,3,2,5,5),(142,3,3,5,5),(143,3,4,5,5),(144,3,3,4,5);
|
1131
|
/*!40000 ALTER TABLE `workflows` ENABLE KEYS */;
|
1132
|
UNLOCK TABLES;
|
1133
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
1134
|
|
1135
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
1136
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
1137
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
1138
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
1139
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
1140
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
1141
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
1142
|
|
1143
|
-- Dump completed on 2009-06-06 14:19:20
|