Skip to content

Commit

Permalink
index end
Browse files Browse the repository at this point in the history
  • Loading branch information
pikachu0310 committed Nov 25, 2023
1 parent 69f7151 commit edca348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func initializeHandler(c echo.Context) error {
ALTER TABLE `isudns`.`records` ADD INDEX (name);
ALTER TABLE `isupipe`.`themes` ADD INDEX `user_id` (`user_id`);
ALTER TABLE `isupipe`.`reservation_slots` ADD INDEX `start_at_end_at` (`start_at`, `end_at`);
ALTER TABLE `isupipe`.`reservation_slots` ADD INDEX `end_at` (`end_at`);
*/
dbConn.Exec("ALTER TABLE `isupipe`.`livestream_tags` ADD INDEX `livestream_id` (`livestream_id`);")
dbConn.Exec("ALTER TABLE `isupipe`.`icons` ADD INDEX `user_id` (`user_id`);")
Expand All @@ -226,6 +227,7 @@ func initializeHandler(c echo.Context) error {
dbConn.Exec("ALTER TABLE `isudns`.`records` ADD INDEX `name` (`name`);")
dbConn.Exec("ALTER TABLE `isupipe`.`themes` ADD INDEX `user_id` (`user_id`);")
dbConn.Exec("ALTER TABLE `isupipe`.`reservation_slots` ADD INDEX `start_at_end_at` (`start_at`, `end_at`);")
dbConn.Exec("ALTER TABLE `isupipe`.`reservation_slots` ADD INDEX `end_at` (`end_at`);")

c.Request().Header.Add("Content-Type", "application/json;charset=utf-8")
return c.JSON(http.StatusOK, InitializeResponse{
Expand Down

0 comments on commit edca348

Please sign in to comment.