From 04cccabfa286edcde06b07cdb18947d8777b659f Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Thu, 21 Apr 2022 13:03:01 +0300 Subject: [PATCH] sql: add desc index on snh(operation_id) --- sql/schema.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/schema.sql b/sql/schema.sql index 85c9ba7..96c1b69 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -311,4 +311,6 @@ begin user_id = new.user_id, news_id = new.news_id, "date" = new.date; -end; \ No newline at end of file +end; + +create index if not exists idx_snh_operation_id_desc on squadrons_news_historical (operation_id desc);