]> git.mxchange.org Git - friendica.git/commitdiff
Fixes PR #14819: Add missing index
authorMichael <heluecht@pirati.ca>
Sun, 16 Feb 2025 10:52:55 +0000 (10:52 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 16 Feb 2025 10:52:55 +0000 (10:52 +0000)
database.sql
doc/database/db_gserver.md
static/dbstructure.config.php

index 068ede1a0d522790aac044e43aef1007df2d1460..5d9cc2abb0e9231e2dda39f0e3df44f184679d41 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2025.02-dev (Interrupted Fern)
--- DB_UPDATE_VERSION 1578
+-- DB_UPDATE_VERSION 1579
 -- ------------------------------------------
 
 
@@ -46,6 +46,7 @@ CREATE TABLE IF NOT EXISTS `gserver` (
         UNIQUE INDEX `nurl` (`nurl`(190)),
         INDEX `next_contact` (`next_contact`),
         INDEX `network` (`network`),
+        INDEX `redirect-gsid` (`redirect-gsid`),
        FOREIGN KEY (`redirect-gsid`) REFERENCES `gserver` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
 ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Global servers';
 
index 6770b50e2605d46624edc5f1f15752d05b2bd8af..22939ec2bc4365384e59e80360a8f40a20b535ca 100644 (file)
@@ -46,12 +46,13 @@ Fields
 Indexes
 ------------
 
-| Name         | Fields            |
-| ------------ | ----------------- |
-| PRIMARY      | id                |
-| nurl         | UNIQUE, nurl(190) |
-| next_contact | next_contact      |
-| network      | network           |
+| Name          | Fields            |
+| ------------- | ----------------- |
+| PRIMARY       | id                |
+| nurl          | UNIQUE, nurl(190) |
+| next_contact  | next_contact      |
+| network       | network           |
+| redirect-gsid | redirect-gsid     |
 
 Foreign Keys
 ------------
index d7f2650a485dfbe50a3596f6bce8ee264f0fe3c8..18990c36fcd89811d4a99e992d1f40a8bc7def7d 100644 (file)
@@ -44,7 +44,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', 1578);
+       define('DB_UPDATE_VERSION', 1579);
 }
 
 return [
@@ -92,6 +92,7 @@ return [
                        "nurl" => ["UNIQUE", "nurl(190)"],
                        "next_contact" => ["next_contact"],
                        "network" => ["network"],
+                       "redirect-gsid" => ["redirect-gsid"],
                ]
        ],
        "user" => [