From eae1affb212ca97edfe15ca7b23e319544ac667f Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 14 Dec 2023 05:36:31 +0000 Subject: [PATCH] Index added --- database.sql | 3 ++- doc/database/db_post-user.md | 1 + static/dbstructure.config.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 86f8e82eb5..013f182285 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2023.09-rc (Giant Rhubarb) --- DB_UPDATE_VERSION 1540 +-- DB_UPDATE_VERSION 1541 -- ------------------------------------------ @@ -1535,6 +1535,7 @@ CREATE TABLE IF NOT EXISTS `post-user` ( INDEX `psid` (`psid`), INDEX `author-id_uid` (`author-id`,`uid`), INDEX `author-id_received` (`author-id`,`received`), + INDEX `owner-id_received` (`owner-id`,`received`), INDEX `parent-uri-id_uid` (`parent-uri-id`,`uid`), INDEX `uid_wall_received` (`uid`,`wall`,`received`), INDEX `uid_contactid` (`uid`,`contact-id`), diff --git a/doc/database/db_post-user.md b/doc/database/db_post-user.md index 2fe91d144b..d56fa620b8 100644 --- a/doc/database/db_post-user.md +++ b/doc/database/db_post-user.md @@ -59,6 +59,7 @@ Indexes | psid | psid | | author-id_uid | author-id, uid | | author-id_received | author-id, received | +| owner-id_received | owner-id, received | | parent-uri-id_uid | parent-uri-id, uid | | uid_wall_received | uid, wall, received | | uid_contactid | uid, contact-id | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index be16270ca2..cd5b0563ab 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -56,7 +56,7 @@ use Friendica\Database\DBA; // This file is required several times during the test in DbaDefinition which justifies this condition if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1540); + define('DB_UPDATE_VERSION', 1541); } return [ @@ -1552,6 +1552,7 @@ return [ "psid" => ["psid"], "author-id_uid" => ["author-id", "uid"], "author-id_received" => ["author-id", "received"], + "owner-id_received" => ["owner-id", "received"], "parent-uri-id_uid" => ["parent-uri-id", "uid"], "uid_wall_received" => ["uid", "wall", "received"], "uid_contactid" => ["uid", "contact-id"], -- 2.39.5