Index added

This commit is contained in:
Michael 2023-12-14 05:36:31 +00:00
parent f81192b4c3
commit eae1affb21
3 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
-- ------------------------------------------ -- ------------------------------------------
-- Friendica 2023.09-rc (Giant Rhubarb) -- 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 `psid` (`psid`),
INDEX `author-id_uid` (`author-id`,`uid`), INDEX `author-id_uid` (`author-id`,`uid`),
INDEX `author-id_received` (`author-id`,`received`), INDEX `author-id_received` (`author-id`,`received`),
INDEX `owner-id_received` (`owner-id`,`received`),
INDEX `parent-uri-id_uid` (`parent-uri-id`,`uid`), INDEX `parent-uri-id_uid` (`parent-uri-id`,`uid`),
INDEX `uid_wall_received` (`uid`,`wall`,`received`), INDEX `uid_wall_received` (`uid`,`wall`,`received`),
INDEX `uid_contactid` (`uid`,`contact-id`), INDEX `uid_contactid` (`uid`,`contact-id`),

View file

@ -59,6 +59,7 @@ Indexes
| psid | psid | | psid | psid |
| author-id_uid | author-id, uid | | author-id_uid | author-id, uid |
| author-id_received | author-id, received | | author-id_received | author-id, received |
| owner-id_received | owner-id, received |
| parent-uri-id_uid | parent-uri-id, uid | | parent-uri-id_uid | parent-uri-id, uid |
| uid_wall_received | uid, wall, received | | uid_wall_received | uid, wall, received |
| uid_contactid | uid, contact-id | | uid_contactid | uid, contact-id |

View file

@ -56,7 +56,7 @@ use Friendica\Database\DBA;
// This file is required several times during the test in DbaDefinition which justifies this condition // This file is required several times during the test in DbaDefinition which justifies this condition
if (!defined('DB_UPDATE_VERSION')) { if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1540); define('DB_UPDATE_VERSION', 1541);
} }
return [ return [
@ -1552,6 +1552,7 @@ return [
"psid" => ["psid"], "psid" => ["psid"],
"author-id_uid" => ["author-id", "uid"], "author-id_uid" => ["author-id", "uid"],
"author-id_received" => ["author-id", "received"], "author-id_received" => ["author-id", "received"],
"owner-id_received" => ["owner-id", "received"],
"parent-uri-id_uid" => ["parent-uri-id", "uid"], "parent-uri-id_uid" => ["parent-uri-id", "uid"],
"uid_wall_received" => ["uid", "wall", "received"], "uid_wall_received" => ["uid", "wall", "received"],
"uid_contactid" => ["uid", "contact-id"], "uid_contactid" => ["uid", "contact-id"],