diff --git a/apps/labrinth/migrations/20260803120000_delphi_detail_verdict_timestamps.sql b/apps/labrinth/migrations/20260803120000_delphi_detail_verdict_timestamps.sql index 1c76f65d59..8ed20055a5 100644 --- a/apps/labrinth/migrations/20260803120000_delphi_detail_verdict_timestamps.sql +++ b/apps/labrinth/migrations/20260803120000_delphi_detail_verdict_timestamps.sql @@ -3,3 +3,9 @@ ALTER TABLE delphi_issue_detail_verdicts ALTER TABLE delphi_global_detail_verdicts ADD COLUMN updated_at TIMESTAMPTZ; + +CREATE INDEX delphi_report_issue_details_issue_id + ON delphi_report_issue_details (issue_id); + +CREATE INDEX threads_messages_thread_id_created_id + ON threads_messages (thread_id, created DESC, id DESC); diff --git a/apps/labrinth/migrations/20260803130000_tech_review_query_indexes.sql b/apps/labrinth/migrations/20260803130000_tech_review_query_indexes.sql deleted file mode 100644 index ec567c2cc1..0000000000 --- a/apps/labrinth/migrations/20260803130000_tech_review_query_indexes.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE INDEX delphi_report_issue_details_issue_id - ON delphi_report_issue_details (issue_id); - -CREATE INDEX threads_messages_thread_id_created_id - ON threads_messages (thread_id, created DESC, id DESC);