-- ------------------------------------------
-- Friendica 2022.09-dev (Giant Rhubarb)
--- DB_UPDATE_VERSION 1476
+-- DB_UPDATE_VERSION 1477
-- ------------------------------------------
FOREIGN KEY (`uri-id`) REFERENCES `item-uri` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Diaspora compatible contacts - used in the Diaspora implementation';
+--
+-- TABLE fetch-entry
+--
+CREATE TABLE IF NOT EXISTS `fetch-entry` (
+ `id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID',
+ `url` varbinary(255) COMMENT 'url that awaiting to be fetched',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Creation date of the fetch request',
+ `wid` int unsigned COMMENT 'Workerqueue id',
+ PRIMARY KEY(`id`),
+ UNIQUE INDEX `url` (`url`),
+ INDEX `created` (`created`),
+ INDEX `wid` (`wid`),
+ FOREIGN KEY (`wid`) REFERENCES `workerqueue` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
+) DEFAULT COLLATE utf8mb4_general_ci COMMENT='';
+
--
-- TABLE fsuggest
--
| [endpoint](help/database/db_endpoint) | ActivityPub endpoints - used in the ActivityPub implementation |
| [event](help/database/db_event) | Events |
| [fcontact](help/database/db_fcontact) | Diaspora compatible contacts - used in the Diaspora implementation |
+| [fetch-entry](help/database/db_fetch-entry) | |
| [fsuggest](help/database/db_fsuggest) | friend suggestion stuff |
| [group](help/database/db_group) | privacy groups, group info |
| [group_member](help/database/db_group_member) | privacy groups, member info |
--- /dev/null
+Table fetch-entry
+===========
+
+
+
+Fields
+------
+
+| Field | Description | Type | Null | Key | Default | Extra |
+| ------- | ---------------------------------- | -------------- | ---- | --- | ------------------- | -------------- |
+| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
+| url | url that awaiting to be fetched | varbinary(255) | YES | | NULL | |
+| created | Creation date of the fetch request | datetime | NO | | 0001-01-01 00:00:00 | |
+| wid | Workerqueue id | int unsigned | YES | | NULL | |
+
+Indexes
+------------
+
+| Name | Fields |
+| ------- | ----------- |
+| PRIMARY | id |
+| url | UNIQUE, url |
+| created | created |
+| wid | wid |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| wid | [workerqueue](help/database/db_workerqueue) | id |
+
+Return to [database documentation](help/database)
return DBA::exists('workerqueue', ['id' => $fetch['wid'], 'done' => false]);
}
-
}