From 4e3a6f35cbc041bafde6097ab7e4d672051ed33d Mon Sep 17 00:00:00 2001 From: lalka2018 <99399973+lalka2016@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:53:01 +0300 Subject: [PATCH] Add correct index for `suggested` --- install/sqls/00043-suggest-posts.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/sqls/00043-suggest-posts.sql b/install/sqls/00043-suggest-posts.sql index 1188f559..07503e51 100644 --- a/install/sqls/00043-suggest-posts.sql +++ b/install/sqls/00043-suggest-posts.sql @@ -1 +1,2 @@ -ALTER TABLE `posts` ADD `suggested` TINYINT(2) UNSIGNED NOT NULL DEFAULT '0' AFTER `deleted`, ADD INDEX (`suggested`); +ALTER TABLE `posts` ADD `suggested` TINYINT(2) UNSIGNED NOT NULL DEFAULT '0' AFTER `deleted`; +ALTER TABLE `posts` ADD INDEX `wall_deleted_suggested` (`wall`, `deleted`, `suggested`);