mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Handle redirected servers in server detection.
This commit is contained in:
parent
abc38bec75
commit
0025467500
10 changed files with 56 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
-- ------------------------------------------
|
||||
-- Friendica 2025.02-dev (Interrupted Fern)
|
||||
-- DB_UPDATE_VERSION 1577
|
||||
-- DB_UPDATE_VERSION 1578
|
||||
-- ------------------------------------------
|
||||
|
||||
|
||||
|
@ -41,10 +41,12 @@ CREATE TABLE IF NOT EXISTS `gserver` (
|
|||
`blocked` boolean COMMENT 'Server is blocked',
|
||||
`failed` boolean COMMENT 'Connection failed',
|
||||
`next_contact` datetime DEFAULT '0001-01-01 00:00:00' COMMENT 'Next connection request',
|
||||
`redirect-gsid` int unsigned COMMENT 'Target Gserver id in case of a redirect',
|
||||
PRIMARY KEY(`id`),
|
||||
UNIQUE INDEX `nurl` (`nurl`(190)),
|
||||
INDEX `next_contact` (`next_contact`),
|
||||
INDEX `network` (`network`)
|
||||
INDEX `network` (`network`),
|
||||
FOREIGN KEY (`redirect-gsid`) REFERENCES `gserver` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Global servers';
|
||||
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue