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)
-- 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`),

View File

@ -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 |

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
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"],