Skip to content

Commit

Permalink
Fix sql changelog (tgstation#57972)
Browse files Browse the repository at this point in the history
Fixed bad SQL that I originally wrote in the changelog for 5.11, anyone trying to update their schema from < 5.11 up would notice this.
  • Loading branch information
bobbah authored Mar 28, 2021
1 parent bbb4202 commit b35a1dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions SQL/database_changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ ALTER TABLE `messages` ADD `playtime` INT(11) NULL DEFAULT(NULL) AFTER `severity

-----------------------------------------------------

Version 5.11, 7 September 2020, by bobbahbrown, MrStonedOne, and Jordie0608
Version 5.11, 7 September 2020, by bobbahbrown, MrStonedOne, and Jordie0608 (Updated 26 March 2021 by bobbahbrown)

Adds indices to support search operations on the adminhelp ticket tables. This is to support improved performance on Atlanta Ned's Statbus.

CREATE INDEX `idx_ticket_act_recip` (`action`, `recipient`)
CREATE INDEX `idx_ticket_act_send` (`action`, `sender`)
CREATE INDEX `idx_ticket_tic_rid` (`ticket`, `round_id`)
CREATE INDEX `idx_ticket_act_time_rid` (`action`, `timestamp`, `round_id`)
ALTER TABLE `ticket`
ADD INDEX `idx_ticket_act_recip` (`action`, `recipient`),
ADD INDEX `idx_ticket_act_send` (`action`, `sender`),
ADD INDEX `idx_ticket_tic_rid` (`ticket`, `round_id`),
ADD INDEX `idx_ticket_act_time_rid` (`action`, `timestamp`, `round_id`);

-----------------------------------------------------

Expand Down

0 comments on commit b35a1dd

Please sign in to comment.