-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from shaunst55/adding_backlog_owner_colors
Adding backlog owner colors
- Loading branch information
Showing
41 changed files
with
1,052 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,54 @@ | ||
ALTER TABLE issue | ||
ADD size_estimate VARCHAR(20) AFTER name; | ||
|
||
ALTER ALGORITHM = UNDEFINED DEFINER = `root` @`localhost` SQL SECURITY DEFINER VIEW `issue_detail` | ||
AS | ||
(SELECT `issue`.`id` AS `id`, | ||
`issue`.`status` AS `status`, | ||
`issue`.`type_id` AS `type_id`, | ||
`issue`.`name` AS `name`, | ||
`issue`.`size_estimate` AS `size_estimate`, | ||
`issue`.`description` AS `description`, | ||
`issue`.`parent_id` AS `parent_id`, | ||
`issue`.`author_id` AS `author_id`, | ||
`issue`.`owner_id` AS `owner_id`, | ||
`issue`.`priority` AS `priority`, | ||
`issue`.`hours_total` AS `hours_total`, | ||
`issue`.`hours_remaining` AS `hours_remaining`, | ||
`issue`.`hours_spent` AS `hours_spent`, | ||
`issue`.`created_date` AS `created_date`, | ||
`issue`.`closed_date` AS `closed_date`, | ||
`issue`.`deleted_date` AS `deleted_date`, | ||
`issue`.`start_date` AS `start_date`, | ||
`issue`.`due_date` AS `due_date`, | ||
isnull(`issue`.`due_date`) AS `has_due_date`, | ||
`issue`.`repeat_cycle` AS `repeat_cycle`, | ||
`issue`.`sprint_id` AS `sprint_id`, | ||
`issue`.`due_date_sprint` AS `due_date_sprint`, | ||
`sprint`.`name` AS `sprint_name`, | ||
`sprint`.`start_date` AS `sprint_start_date`, | ||
`sprint`.`end_date` AS `sprint_end_date`, | ||
`type`.`name` AS `type_name`, | ||
`status`.`name` AS `status_name`, | ||
`status`.`closed` AS `status_closed`, | ||
`priority`.`id` AS `priority_id`, | ||
`priority`.`name` AS `priority_name`, | ||
`author`.`username` AS `author_username`, | ||
`author`.`name` AS `author_name`, | ||
`author`.`email` AS `author_email`, | ||
`author`.`task_color` AS `author_task_color`, | ||
`owner`.`username` AS `owner_username`, | ||
`owner`.`name` AS `owner_name`, | ||
`owner`.`email` AS `owner_email`, | ||
`owner`.`task_color` AS `owner_task_color` | ||
FROM ((((((`issue` | ||
LEFT JOIN `user` `author` | ||
ON ((`issue`.`author_id` = `author`.`id`))) | ||
LEFT JOIN `user` `owner` | ||
ON ((`issue`.`owner_id` = `owner`.`id`))) | ||
LEFT JOIN `issue_status` `status` | ||
ON ((`issue`.`status` = `status`.`id`))) | ||
LEFT JOIN `issue_priority` `priority` | ||
ON ((`issue`.`priority` = `priority`.`value`))) | ||
LEFT JOIN `issue_type` `type` | ||
ON ((`issue`.`type_id` = `type`.`id`))) | ||
LEFT JOIN `sprint` ON ((`issue`.`sprint_id` = `sprint`.`id`)))); | ||
ALTER TABLE issue ADD size_estimate VARCHAR(20) AFTER name; | ||
|
||
# Update version | ||
ALTER VIEW `issue_detail` | ||
AS ( | ||
SELECT | ||
`issue`.`id` AS `id`, | ||
`issue`.`status` AS `status`, | ||
`issue`.`type_id` AS `type_id`, | ||
`issue`.`name` AS `name`, | ||
`issue`.`size_estimate` AS `size_estimate`, | ||
`issue`.`description` AS `description`, | ||
`issue`.`parent_id` AS `parent_id`, | ||
`issue`.`author_id` AS `author_id`, | ||
`issue`.`owner_id` AS `owner_id`, | ||
`issue`.`priority` AS `priority`, | ||
`issue`.`hours_total` AS `hours_total`, | ||
`issue`.`hours_remaining` AS `hours_remaining`, | ||
`issue`.`hours_spent` AS `hours_spent`, | ||
`issue`.`created_date` AS `created_date`, | ||
`issue`.`closed_date` AS `closed_date`, | ||
`issue`.`deleted_date` AS `deleted_date`, | ||
`issue`.`start_date` AS `start_date`, | ||
`issue`.`due_date` AS `due_date`, | ||
isnull(`issue`.`due_date`) AS `has_due_date`, | ||
`issue`.`repeat_cycle` AS `repeat_cycle`, | ||
`issue`.`sprint_id` AS `sprint_id`, | ||
`issue`.`due_date_sprint` AS `due_date_sprint`, | ||
`sprint`.`name` AS `sprint_name`, | ||
`sprint`.`start_date` AS `sprint_start_date`, | ||
`sprint`.`end_date` AS `sprint_end_date`, | ||
`type`.`name` AS `type_name`, | ||
`status`.`name` AS `status_name`, | ||
`status`.`closed` AS `status_closed`, | ||
`priority`.`id` AS `priority_id`, | ||
`priority`.`name` AS `priority_name`, | ||
`author`.`username` AS `author_username`, | ||
`author`.`name` AS `author_name`, | ||
`author`.`email` AS `author_email`, | ||
`author`.`task_color` AS `author_task_color`, | ||
`owner`.`username` AS `owner_username`, | ||
`owner`.`name` AS `owner_name`, | ||
`owner`.`email` AS `owner_email`, | ||
`owner`.`task_color` AS `owner_task_color` | ||
FROM `issue` | ||
LEFT JOIN `user` `author` ON `issue`.`author_id` = `author`.`id` | ||
LEFT JOIN `user` `owner` ON `issue`.`owner_id` = `owner`.`id` | ||
LEFT JOIN `issue_status` `status` ON `issue`.`status` = `status`.`id` | ||
LEFT JOIN `issue_priority` `priority` ON `issue`.`priority` = `priority`.`value` | ||
LEFT JOIN `issue_type` `type` ON `issue`.`type_id` = `type`.`id` | ||
LEFT JOIN `sprint` ON `issue`.`sprint_id` = `sprint`.`id` | ||
); | ||
|
||
# Update version | ||
UPDATE `config` SET `value` = '17.03.17' WHERE `attribute` = 'version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-- Re-add a column removed in 17.03.17 | ||
ALTER VIEW `issue_detail` AS | ||
SELECT | ||
`issue`.`id` AS `id`, | ||
`issue`.`status` AS `status`, | ||
`issue`.`type_id` AS `type_id`, | ||
`issue`.`name` AS `name`, | ||
`issue`.`size_estimate` AS `size_estimate`, | ||
`issue`.`description` AS `description`, | ||
`issue`.`parent_id` AS `parent_id`, | ||
`issue`.`author_id` AS `author_id`, | ||
`issue`.`owner_id` AS `owner_id`, | ||
`issue`.`priority` AS `priority`, | ||
`issue`.`hours_total` AS `hours_total`, | ||
`issue`.`hours_remaining` AS `hours_remaining`, | ||
`issue`.`hours_spent` AS `hours_spent`, | ||
`issue`.`created_date` AS `created_date`, | ||
`issue`.`closed_date` AS `closed_date`, | ||
`issue`.`deleted_date` AS `deleted_date`, | ||
`issue`.`start_date` AS `start_date`, | ||
`issue`.`due_date` AS `due_date`, | ||
ISNULL(`issue`.`due_date`) AS `has_due_date`, | ||
`issue`.`repeat_cycle` AS `repeat_cycle`, | ||
`issue`.`sprint_id` AS `sprint_id`, | ||
`issue`.`due_date_sprint` AS `due_date_sprint`, | ||
`sprint`.`name` AS `sprint_name`, | ||
`sprint`.`start_date` AS `sprint_start_date`, | ||
`sprint`.`end_date` AS `sprint_end_date`, | ||
`type`.`name` AS `type_name`, | ||
`status`.`name` AS `status_name`, | ||
`status`.`closed` AS `status_closed`, | ||
`priority`.`id` AS `priority_id`, | ||
`priority`.`name` AS `priority_name`, | ||
`author`.`username` AS `author_username`, | ||
`author`.`name` AS `author_name`, | ||
`author`.`email` AS `author_email`, | ||
`author`.`task_color` AS `author_task_color`, | ||
`owner`.`username` AS `owner_username`, | ||
`owner`.`name` AS `owner_name`, | ||
`owner`.`email` AS `owner_email`, | ||
`owner`.`task_color` AS `owner_task_color`, | ||
`parent`.`name` AS `parent_name` | ||
FROM `issue` | ||
LEFT JOIN `user` `author` on`issue`.`author_id` = `author`.`id` | ||
LEFT JOIN `user` `owner` on`issue`.`owner_id` = `owner`.`id` | ||
LEFT JOIN `issue_status` `status` on`issue`.`status` = `status`.`id` | ||
LEFT JOIN `issue_priority` `priority` on`issue`.`priority` = `priority`.`value` | ||
LEFT JOIN `issue_type` `type` on`issue`.`type_id` = `type`.`id` | ||
LEFT JOIN `sprint` on`issue`.`sprint_id` = `sprint`.`id` | ||
LEFT JOIN `issue` `parent` ON `issue`.`parent_id` = `parent`.`id`; | ||
|
||
UPDATE `config` SET `value` = '17.03.23' WHERE `attribute` = 'version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.