1
|
-- phpMyAdmin SQL Dump
|
2
|
-- version 5.0.4deb2
|
3
|
-- https://www.phpmyadmin.net/
|
4
|
--
|
5
|
-- Host: localhost
|
6
|
-- Generation Time: May 10, 2022 at 05:24 PM
|
7
|
-- Server version: 10.5.15-MariaDB-0+deb11u1
|
8
|
-- PHP Version: 7.4.28
|
9
|
|
10
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
11
|
START TRANSACTION;
|
12
|
|
13
|
|
14
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
15
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
16
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
17
|
/*!40101 SET NAMES utf8mb4 */;
|
18
|
|
19
|
--
|
20
|
-- Database: `spade`
|
21
|
--
|
22
|
USE `spade`;
|
23
|
|
24
|
-- --------------------------------------------------------
|
25
|
|
26
|
--
|
27
|
-- Stand-in structure for view `artifactView`
|
28
|
-- (See below for the actual view)
|
29
|
--
|
30
|
CREATE TABLE `artifactView` (
|
31
|
`name` varchar(255)
|
32
|
,`description` longtext
|
33
|
,`created` datetime
|
34
|
,`url` varchar(255)
|
35
|
,`id` bigint(20)
|
36
|
,`artifactClass` varchar(255)
|
37
|
,`mimeType` varchar(255)
|
38
|
,`size` bigint(20)
|
39
|
,`authorId` bigint(20)
|
40
|
,`authorName` varchar(255)
|
41
|
,`projectId` bigint(20)
|
42
|
);
|
43
|
|
44
|
-- --------------------------------------------------------
|
45
|
|
46
|
--
|
47
|
-- Stand-in structure for view `commitedConfigView`
|
48
|
-- (See below for the actual view)
|
49
|
--
|
50
|
CREATE TABLE `commitedConfigView` (
|
51
|
`id` bigint(20)
|
52
|
,`type` varchar(31)
|
53
|
,`name` varchar(255)
|
54
|
,`description` longtext
|
55
|
,`created` datetime
|
56
|
,`authorId` bigint(20)
|
57
|
,`authorName` varchar(255)
|
58
|
,`relationName` varchar(255)
|
59
|
,`relatedId` bigint(20)
|
60
|
,`relatedName` varchar(255)
|
61
|
,`projectId` bigint(20)
|
62
|
,`committed` datetime
|
63
|
);
|
64
|
|
65
|
-- --------------------------------------------------------
|
66
|
|
67
|
--
|
68
|
-- Stand-in structure for view `commitView`
|
69
|
-- (See below for the actual view)
|
70
|
--
|
71
|
CREATE TABLE `commitView` (
|
72
|
`id` bigint(20)
|
73
|
,`type` varchar(31)
|
74
|
,`name` varchar(255)
|
75
|
,`description` longtext
|
76
|
,`created` datetime
|
77
|
,`authorId` bigint(20)
|
78
|
,`authorName` varchar(255)
|
79
|
,`relationName` varchar(255)
|
80
|
,`relatedId` bigint(20)
|
81
|
,`relatedName` varchar(255)
|
82
|
,`projectId` bigint(20)
|
83
|
,`committed` datetime
|
84
|
,`isRelease` bit(1)
|
85
|
,`tag` varchar(255)
|
86
|
,`branch` varchar(255)
|
87
|
,`main` bit(1)
|
88
|
);
|
89
|
|
90
|
-- --------------------------------------------------------
|
91
|
|
92
|
--
|
93
|
-- Stand-in structure for view `configurationView`
|
94
|
-- (See below for the actual view)
|
95
|
--
|
96
|
CREATE TABLE `configurationView` (
|
97
|
`id` bigint(20)
|
98
|
,`type` varchar(31)
|
99
|
,`name` varchar(255)
|
100
|
,`description` longtext
|
101
|
,`created` datetime
|
102
|
,`authorId` bigint(20)
|
103
|
,`authorName` varchar(255)
|
104
|
,`relationName` varchar(255)
|
105
|
,`relatedId` bigint(20)
|
106
|
,`relatedName` varchar(255)
|
107
|
,`projectId` bigint(20)
|
108
|
);
|
109
|
|
110
|
-- --------------------------------------------------------
|
111
|
|
112
|
--
|
113
|
-- Stand-in structure for view `fieldChangeView`
|
114
|
-- (See below for the actual view)
|
115
|
--
|
116
|
CREATE TABLE `fieldChangeView` (
|
117
|
`id` bigint(20)
|
118
|
,`type` varchar(31)
|
119
|
,`name` varchar(255)
|
120
|
,`description` longtext
|
121
|
,`created` datetime
|
122
|
,`authorId` bigint(20)
|
123
|
,`authorName` varchar(255)
|
124
|
,`relationName` varchar(255)
|
125
|
,`relatedId` bigint(20)
|
126
|
,`relatedName` varchar(255)
|
127
|
,`projectId` bigint(20)
|
128
|
,`changeName` varchar(255)
|
129
|
,`changeDesc` longtext
|
130
|
,`itemId` bigint(20)
|
131
|
,`itemType` varchar(31)
|
132
|
,`itemName` varchar(255)
|
133
|
,`itemDesc` longtext
|
134
|
,`itemCreated` datetime
|
135
|
,`field` varchar(255)
|
136
|
,`newValue` longtext
|
137
|
,`oldValue` longtext
|
138
|
);
|
139
|
|
140
|
-- --------------------------------------------------------
|
141
|
|
142
|
--
|
143
|
-- Stand-in structure for view `personView`
|
144
|
-- (See below for the actual view)
|
145
|
--
|
146
|
CREATE TABLE `personView` (
|
147
|
`id` bigint(20)
|
148
|
,`name` varchar(255)
|
149
|
,`projectId` bigint(20)
|
150
|
);
|
151
|
|
152
|
-- --------------------------------------------------------
|
153
|
|
154
|
--
|
155
|
-- Stand-in structure for view `personWithRolesView`
|
156
|
-- (See below for the actual view)
|
157
|
--
|
158
|
CREATE TABLE `personWithRolesView` (
|
159
|
`id` bigint(20)
|
160
|
,`name` varchar(255)
|
161
|
,`role` varchar(255)
|
162
|
,`roleClass` varchar(255)
|
163
|
,`roleSuperClass` varchar(255)
|
164
|
,`projectId` bigint(20)
|
165
|
);
|
166
|
|
167
|
-- --------------------------------------------------------
|
168
|
|
169
|
--
|
170
|
-- Stand-in structure for view `workUnitView`
|
171
|
-- (See below for the actual view)
|
172
|
--
|
173
|
CREATE TABLE `workUnitView` (
|
174
|
`id` bigint(20)
|
175
|
,`name` varchar(255)
|
176
|
,`description` longtext
|
177
|
,`created` datetime
|
178
|
,`dueDate` date
|
179
|
,`estimatedTime` double
|
180
|
,`progress` int(11)
|
181
|
,`spentTime` double
|
182
|
,`startDate` date
|
183
|
,`projectId` bigint(20)
|
184
|
,`authorId` bigint(20)
|
185
|
,`authorName` varchar(255)
|
186
|
,`assigneeId` bigint(20)
|
187
|
,`assigneeName` varchar(255)
|
188
|
,`activityName` varchar(255)
|
189
|
,`activityDesc` longtext
|
190
|
,`activityEndDate` date
|
191
|
,`activityStartDate` date
|
192
|
,`iterationName` varchar(255)
|
193
|
,`iterationDesc` longtext
|
194
|
,`iterationStartDate` date
|
195
|
,`iterationEndDate` date
|
196
|
,`iterationCreated` datetime
|
197
|
,`phaseName` varchar(255)
|
198
|
,`phaseDesc` longtext
|
199
|
,`phaseStartDate` date
|
200
|
,`phaseEndDate` date
|
201
|
,`phaseCreated` datetime
|
202
|
,`priorityName` varchar(255)
|
203
|
,`priorityDesc` longtext
|
204
|
,`prioClass` varchar(255)
|
205
|
,`prioSuperClass` varchar(255)
|
206
|
,`severityName` varchar(255)
|
207
|
,`severityDesc` longtext
|
208
|
,`severityClass` varchar(255)
|
209
|
,`severitySuperClass` varchar(255)
|
210
|
,`resolutionName` varchar(255)
|
211
|
,`resolutionDescription` longtext
|
212
|
,`resolutionClass` varchar(255)
|
213
|
,`resolutionSuperClass` varchar(255)
|
214
|
,`statusName` varchar(255)
|
215
|
,`statusDescription` longtext
|
216
|
,`statusClass` varchar(255)
|
217
|
,`statusSuperClass` varchar(255)
|
218
|
,`wuTypeName` varchar(255)
|
219
|
,`wuTypeDescription` longtext
|
220
|
,`wuTypeClass` varchar(255)
|
221
|
,`categoryName` varchar(255)
|
222
|
,`categoryDesc` longtext
|
223
|
);
|
224
|
|
225
|
-- --------------------------------------------------------
|
226
|
|
227
|
--
|
228
|
-- Structure for view `artifactView`
|
229
|
--
|
230
|
DROP TABLE IF EXISTS `artifactView`;
|
231
|
|
232
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `artifactView` AS SELECT `wi`.`name` AS `name`, `wi`.`description` AS `description`, `wi`.`created` AS `created`, `wi`.`url` AS `url`, `a`.`id` AS `id`, `a`.`artifactClass` AS `artifactClass`, `a`.`mimeType` AS `mimeType`, `a`.`size` AS `size`, `p`.`id` AS `authorId`, `p`.`name` AS `authorName`, `p`.`projectId` AS `projectId` FROM ((`work_item` `wi` join `artifact` `a` on(`a`.`id` = `wi`.`id`)) join `personView` `p` on(`p`.`id` = `wi`.`authorId`)) ;
|
233
|
|
234
|
-- --------------------------------------------------------
|
235
|
|
236
|
--
|
237
|
-- Structure for view `commitedConfigView`
|
238
|
--
|
239
|
DROP TABLE IF EXISTS `commitedConfigView`;
|
240
|
|
241
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `commitedConfigView` AS SELECT `c`.`id` AS `id`, `c`.`type` AS `type`, `c`.`name` AS `name`, `c`.`description` AS `description`, `c`.`created` AS `created`, `c`.`authorId` AS `authorId`, `c`.`authorName` AS `authorName`, `c`.`relationName` AS `relationName`, `c`.`relatedId` AS `relatedId`, `c`.`relatedName` AS `relatedName`, `c`.`projectId` AS `projectId`, `cc`.`committed` AS `committed` FROM (`configurationView` `c` join `committed_configuration` `cc` on(`c`.`id` = `cc`.`id`)) ;
|
242
|
|
243
|
-- --------------------------------------------------------
|
244
|
|
245
|
--
|
246
|
-- Structure for view `commitView`
|
247
|
--
|
248
|
DROP TABLE IF EXISTS `commitView`;
|
249
|
|
250
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `commitView` AS SELECT `cc`.`id` AS `id`, `cc`.`type` AS `type`, `cc`.`name` AS `name`, `cc`.`description` AS `description`, `cc`.`created` AS `created`, `cc`.`authorId` AS `authorId`, `cc`.`authorName` AS `authorName`, `cc`.`relationName` AS `relationName`, `cc`.`relatedId` AS `relatedId`, `cc`.`relatedName` AS `relatedName`, `cc`.`projectId` AS `projectId`, `cc`.`committed` AS `committed`, `cm`.`isRelease` AS `isRelease`, `tg`.`name` AS `tag`, `br`.`name` AS `branch`, `br`.`isMain` AS `main` FROM ((((`commitedConfigView` `cc` join `commit` `cm` on(`cc`.`id` = `cm`.`id`)) left join `tag` `tg` on(`cm`.`id` = `tg`.`configurationId`)) join `configuration_branch` `cfbr` on(`cfbr`.`configurationId` = `cm`.`id`)) join `branch` `br` on(`br`.`id` = `cfbr`.`branchId`)) ;
|
251
|
|
252
|
-- --------------------------------------------------------
|
253
|
|
254
|
--
|
255
|
-- Structure for view `configurationView`
|
256
|
--
|
257
|
DROP TABLE IF EXISTS `configurationView`;
|
258
|
|
259
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `configurationView` AS SELECT `wi`.`id` AS `id`, `wi`.`workItemType` AS `type`, `wi`.`name` AS `name`, `wi`.`description` AS `description`, `wi`.`created` AS `created`, `author`.`id` AS `authorId`, `author`.`name` AS `authorName`, `cpr`.`name` AS `relationName`, `related`.`id` AS `relatedId`, `related`.`name` AS `relatedName`, `c`.`projectId` AS `projectId` FROM ((((`work_item` `wi` join `configuration` `c` on(`c`.`id` = `wi`.`id`)) join `personView` `author` on(`author`.`id` = `wi`.`authorId`)) left join `configuration_person_relation` `cpr` on(`cpr`.`configurationId` = `c`.`id`)) left join `personView` `related` on(`cpr`.`personId` = `related`.`id`)) ;
|
260
|
|
261
|
-- --------------------------------------------------------
|
262
|
|
263
|
--
|
264
|
-- Structure for view `fieldChangeView`
|
265
|
--
|
266
|
DROP TABLE IF EXISTS `fieldChangeView`;
|
267
|
|
268
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `fieldChangeView` AS SELECT `conf`.`id` AS `id`, `conf`.`type` AS `type`, `conf`.`name` AS `name`, `conf`.`description` AS `description`, `conf`.`created` AS `created`, `conf`.`authorId` AS `authorId`, `conf`.`authorName` AS `authorName`, `conf`.`relationName` AS `relationName`, `conf`.`relatedId` AS `relatedId`, `conf`.`relatedName` AS `relatedName`, `conf`.`projectId` AS `projectId`, `wchange`.`name` AS `changeName`, `wchange`.`description` AS `changeDesc`, `item`.`id` AS `itemId`, `item`.`workItemType` AS `itemType`, `item`.`name` AS `itemName`, `item`.`description` AS `itemDesc`, `item`.`created` AS `itemCreated`, `fc`.`name` AS `field`, `fc`.`newValue` AS `newValue`, `fc`.`oldValue` AS `oldValue` FROM ((((`configurationView` `conf` left join `configuration_change` `cfc` on(`cfc`.`configurationId` = `conf`.`id`)) left join `work_item_change` `wchange` on(`wchange`.`id` = `cfc`.`changeId`)) left join `field_change` `fc` on(`fc`.`workItemChangeId` = `wchange`.`id`)) join `work_item` `item` on(`wchange`.`workItemId` = `item`.`id`)) ;
|
269
|
|
270
|
-- --------------------------------------------------------
|
271
|
|
272
|
--
|
273
|
-- Structure for view `personView`
|
274
|
--
|
275
|
DROP TABLE IF EXISTS `personView`;
|
276
|
|
277
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `personView` AS SELECT `p`.`id` AS `id`, `p`.`name` AS `name`, `p`.`projectId` AS `projectId` FROM `person` AS `p` ;
|
278
|
|
279
|
-- --------------------------------------------------------
|
280
|
|
281
|
--
|
282
|
-- Structure for view `personWithRolesView`
|
283
|
--
|
284
|
DROP TABLE IF EXISTS `personWithRolesView`;
|
285
|
|
286
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `personWithRolesView` AS SELECT `p`.`id` AS `id`, `p`.`name` AS `name`, `r`.`name` AS `role`, `rc`.`class` AS `roleClass`, `rc`.`superClass` AS `roleSuperClass`, `p`.`projectId` AS `projectId` FROM (((`person` `p` join `person_role` `pr` on(`pr`.`personId` = `p`.`id`)) join `role` `r` on(`r`.`id` = `pr`.`roleId`)) join `role_classification` `rc` on(`rc`.`id` = `r`.`classId`)) ;
|
287
|
|
288
|
-- --------------------------------------------------------
|
289
|
|
290
|
--
|
291
|
-- Structure for view `workUnitView`
|
292
|
--
|
293
|
DROP TABLE IF EXISTS `workUnitView`;
|
294
|
|
295
|
CREATE ALGORITHM=UNDEFINED SQL SECURITY DEFINER VIEW `workUnitView` AS SELECT `wi`.`id` AS `id`, `wi`.`name` AS `name`, `wi`.`description` AS `description`, `wi`.`created` AS `created`, `wu`.`dueDate` AS `dueDate`, `wu`.`estimatedTime` AS `estimatedTime`, `wu`.`progress` AS `progress`, `wu`.`spentTime` AS `spentTime`, `wu`.`startDate` AS `startDate`, `wu`.`projectId` AS `projectId`, `author`.`id` AS `authorId`, `author`.`name` AS `authorName`, `assignee`.`id` AS `assigneeId`, `assignee`.`name` AS `assigneeName`, `ac`.`name` AS `activityName`, `ac`.`description` AS `activityDesc`, `ac`.`endDate` AS `activityEndDate`, `ac`.`startDate` AS `activityStartDate`, `it`.`name` AS `iterationName`, `it`.`description` AS `iterationDesc`, `it`.`startDate` AS `iterationStartDate`, `it`.`endDate` AS `iterationEndDate`, `it`.`created` AS `iterationCreated`, `ph`.`name` AS `phaseName`, `ph`.`description` AS `phaseDesc`, `ph`.`startDate` AS `phaseStartDate`, `ph`.`endDate` AS `phaseEndDate`, `ph`.`created` AS `phaseCreated`, `pr`.`name` AS `priorityName`, `pr`.`description` AS `priorityDesc`, `prcl`.`class` AS `prioClass`, `prcl`.`superClass` AS `prioSuperClass`, `ser`.`name` AS `severityName`, `ser`.`description` AS `severityDesc`, `sercl`.`class` AS `severityClass`, `sercl`.`superClass` AS `severitySuperClass`, `res`.`name` AS `resolutionName`, `res`.`description` AS `resolutionDescription`, `rescl`.`class` AS `resolutionClass`, `rescl`.`superClass` AS `resolutionSuperClass`, `st`.`name` AS `statusName`, `st`.`description` AS `statusDescription`, `stcl`.`class` AS `statusClass`, `stcl`.`superClass` AS `statusSuperClass`, `wt`.`name` AS `wuTypeName`, `wt`.`description` AS `wuTypeDescription`, `wtcl`.`class` AS `wuTypeClass`, `ct`.`name` AS `categoryName`, `ct`.`description` AS `categoryDesc` FROM ((((((((((((((((((`work_item` `wi` join `work_unit` `wu` on(`wu`.`id` = `wi`.`id`)) join `personView` `author` on(`wi`.`authorId` = `author`.`id`)) join `personView` `assignee` on(`assignee`.`id` = `wu`.`assigneeId`)) left join `activity` `ac` on(`wu`.`activityId` = `ac`.`id`)) left join `iteration` `it` on(`wu`.`iterationId` = `it`.`id`)) left join `phase` `ph` on(`wu`.`phaseId` = `ph`.`id`)) join `priority` `pr` on(`pr`.`id` = `wu`.`priorityId`)) join `priority_classification` `prcl` on(`prcl`.`id` = `pr`.`classId`)) join `severity` `ser` on(`ser`.`id` = `wu`.`severityId`)) join `severity_classification` `sercl` on(`sercl`.`id` = `ser`.`classId`)) left join `resolution` `res` on(`res`.`id` = `wu`.`resolutionId`)) left join `resolution_classification` `rescl` on(`rescl`.`id` = `res`.`classId`)) join `status` `st` on(`st`.`id` = `wu`.`statusId`)) join `status_classification` `stcl` on(`stcl`.`id` = `st`.`classId`)) join `wu_type` `wt` on(`wt`.`id` = `wu`.`wuTypeId`)) join `wu_type_classification` `wtcl` on(`wtcl`.`id` = `wt`.`classId`)) left join `work_unit_category` `wuc` on(`wuc`.`workUnitId` = `wu`.`id`)) left join `category` `ct` on(`ct`.`id` = `wuc`.`categoryId`)) ;
|
296
|
COMMIT;
|
297
|
|
298
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
299
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
300
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|