From cbfea67ba639b4e789b798cc9c7b6cbe3d865775 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 19 Nov 2020 09:47:59 +0000 Subject: [PATCH] Improved key length --- database.sql | 8 ++++---- static/dbstructure.config.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/database.sql b/database.sql index 0d60666204..da3c458ef9 100644 --- a/database.sql +++ b/database.sql @@ -175,14 +175,14 @@ CREATE TABLE IF NOT EXISTS `contact` ( PRIMARY KEY(`id`), INDEX `uid_name` (`uid`,`name`(190)), INDEX `self_uid` (`self`,`uid`), - INDEX `alias_uid` (`alias`(96),`uid`), + INDEX `alias_uid` (`alias`(128),`uid`), INDEX `pending_uid` (`pending`,`uid`), INDEX `blocked_uid` (`blocked`,`uid`), INDEX `uid_rel_network_poll` (`uid`,`rel`,`network`,`poll`(64),`archive`), INDEX `uid_network_batch` (`uid`,`network`,`batch`(64)), - INDEX `addr_uid` (`addr`(96),`uid`), - INDEX `nurl_uid` (`nurl`(96),`uid`), - INDEX `nick_uid` (`nick`(32),`uid`), + INDEX `addr_uid` (`addr`(128),`uid`), + INDEX `nurl_uid` (`nurl`(128),`uid`), + INDEX `nick_uid` (`nick`(128),`uid`), INDEX `attag_uid` (`attag`(96),`uid`), INDEX `dfrn-id` (`dfrn-id`(64)), INDEX `issued-id` (`issued-id`(64)), diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 990835fe8b..4d729960fa 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -234,14 +234,14 @@ return [ "PRIMARY" => ["id"], "uid_name" => ["uid", "name(190)"], "self_uid" => ["self", "uid"], - "alias_uid" => ["alias(96)", "uid"], + "alias_uid" => ["alias(128)", "uid"], "pending_uid" => ["pending", "uid"], "blocked_uid" => ["blocked", "uid"], "uid_rel_network_poll" => ["uid", "rel", "network", "poll(64)", "archive"], "uid_network_batch" => ["uid", "network", "batch(64)"], - "addr_uid" => ["addr(96)", "uid"], - "nurl_uid" => ["nurl(96)", "uid"], - "nick_uid" => ["nick(32)", "uid"], + "addr_uid" => ["addr(128)", "uid"], + "nurl_uid" => ["nurl(128)", "uid"], + "nick_uid" => ["nick(128)", "uid"], "attag_uid" => ["attag(96)", "uid"], "dfrn-id" => ["dfrn-id(64)"], "issued-id" => ["issued-id(64)"],