Handle redirected servers in server detection.

This commit is contained in:
Michael 2025-02-15 14:43:23 +00:00
parent abc38bec75
commit 0025467500
10 changed files with 56 additions and 15 deletions

View 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', 1577);
define('DB_UPDATE_VERSION', 1578);
}
return [
@ -85,6 +85,7 @@ return [
"blocked" => ["type" => "boolean", "comment" => "Server is blocked"],
"failed" => ["type" => "boolean", "comment" => "Connection failed"],
"next_contact" => ["type" => "datetime", "default" => DBA::NULL_DATETIME, "comment" => "Next connection request"],
"redirect-gsid" => ["type" => "int unsigned", "foreign" => ["gserver" => "id"], "comment" => "Target Gserver id in case of a redirect"],
],
"indexes" => [
"PRIMARY" => ["id"],