From e731ea58d5ba60d2825d139b5e0494a6e146505e Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 16 Sep 2023 04:23:44 +0000 Subject: [PATCH] Remove unneeded indexes --- database.sql | 2 -- doc/database/db_post-thread-user.md | 2 -- static/dbstructure.config.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/database.sql b/database.sql index 32fb258314..2eec6fb809 100644 --- a/database.sql +++ b/database.sql @@ -1573,8 +1573,6 @@ CREATE TABLE IF NOT EXISTS `post-thread-user` ( INDEX `post-user-id` (`post-user-id`), INDEX `commented` (`commented`), INDEX `received` (`received`), - INDEX `wall` (`wall`), - INDEX `origin` (`origin`), INDEX `uid_received` (`uid`,`received`), INDEX `uid_wall_received` (`uid`,`wall`,`received`), INDEX `uid_commented` (`uid`,`commented`), diff --git a/doc/database/db_post-thread-user.md b/doc/database/db_post-thread-user.md index e29148c4b3..e4f5e39bda 100644 --- a/doc/database/db_post-thread-user.md +++ b/doc/database/db_post-thread-user.md @@ -50,8 +50,6 @@ Indexes | post-user-id | post-user-id | | commented | commented | | received | received | -| wall | wall | -| origin | origin | | uid_received | uid, received | | uid_wall_received | uid, wall, received | | uid_commented | uid, commented | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 17f3fbdc10..89e234e7e9 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1579,8 +1579,6 @@ return [ "post-user-id" => ["post-user-id"], "commented" => ["commented"], "received" => ["received"], - "wall" => ["wall"], - "origin" => ["origin"], "uid_received" => ["uid", "received"], "uid_wall_received" => ["uid", "wall", "received"], "uid_commented" => ["uid", "commented"],