INDEX `created` (`created`)
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='cache for \'parse_url\' queries';
---
--- TABLE participation
---
-CREATE TABLE IF NOT EXISTS `participation` (
- `iid` int unsigned NOT NULL COMMENT '',
- `server` varchar(60) NOT NULL COMMENT '',
- `cid` int unsigned NOT NULL COMMENT '',
- `fid` int unsigned NOT NULL COMMENT '',
- PRIMARY KEY(`iid`,`server`),
- INDEX `cid` (`cid`),
- INDEX `fid` (`fid`),
- FOREIGN KEY (`iid`) REFERENCES `item` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE,
- FOREIGN KEY (`cid`) REFERENCES `contact` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE,
- FOREIGN KEY (`fid`) REFERENCES `fcontact` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
-) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Storage for participation messages from Diaspora';
-
--
-- TABLE pconfig
--
| [notify-threads](help/database/db_notify-threads) | |
| [oembed](help/database/db_oembed) | cache for OEmbed queries |
| [parsed_url](help/database/db_parsed_url) | cache for "parse_url" queries |
-| [participation](help/database/db_participation) | Storage for participation messages from Diaspora |
| [pconfig](help/database/db_pconfig) | personal (per user) configuration storage |
| [photo](help/database/db_photo) | photo storage |
| [poll](help/database/db_poll) | data for polls |
+++ /dev/null
-Table participation
-===================
-
-| Field | Description | Type | Null | Key | Default | Extra |
-|-------------|------------------|------------------|------|-----|---------------------|-------|
-| iid | item id | int(10) unsigned | NO | PRI | | |
-| server | Name of server | varchar(60) | NO | PRI | | |
-| cid | contact id | int(10) unsigned | NO | | | |
-
-Return to [database documentation](help/database)
}
$old_tables = ['fserver', 'gcign', 'gcontact', 'gcontact-relation', 'gfollower' ,'glink', 'item-delivery-data',
- 'item-activity', 'item-content', 'item_id', 'poll', 'poll_result', 'queue', 'retriever_rule',
+ 'item-activity', 'item-content', 'item_id', 'participation', 'poll', 'poll_result', 'queue', 'retriever_rule',
'sign', 'spam', 'term', 'user-item'];
$tables = DBA::selectToArray(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_NAME'],
"created" => ["created"],
]
],
- "participation" => [
- "comment" => "Storage for participation messages from Diaspora",
- "fields" => [
- "iid" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item" => "id"], "comment" => ""],
- "server" => ["type" => "varchar(60)", "not null" => "1", "primary" => "1", "comment" => ""],
- "cid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["contact" => "id"], "comment" => ""],
- "fid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["fcontact" => "id"], "comment" => ""],
- ],
- "indexes" => [
- "PRIMARY" => ["iid", "server"],
- "cid" => ["cid"],
- "fid" => ["fid"]
- ]
- ],
"pconfig" => [
"comment" => "personal (per user) configuration storage",
"fields" => [
return Update::FAILED;
}
- if (!DBA::e("DELETE FROM `participation` WHERE NOT `cid` IN (SELECT `id` FROM `contact`)")) {
- return Update::FAILED;
- }
-
if (!DBA::e("DELETE FROM `profile_check` WHERE NOT `cid` IN (SELECT `id` FROM `contact`)")) {
return Update::FAILED;
}
return Update::FAILED;
}
- if (!DBA::e("DELETE FROM `participation` WHERE NOT `fid` IN (SELECT `id` FROM `fcontact`)")) {
- return Update::FAILED;
- }
-
if (!DBA::e("DELETE FROM `group_member` WHERE NOT `gid` IN (SELECT `id` FROM `group`)")) {
return Update::FAILED;
}
return Update::FAILED;
}
- if (!DBA::e("DELETE FROM `participation` WHERE NOT `iid` IN (SELECT `id` FROM `item`)")) {
- return Update::FAILED;
- }
-
if (DBStructure::existsTable('user-item') && !DBA::e("DELETE FROM `user-item` WHERE NOT `iid` IN (SELECT `id` FROM `item`)")) {
return Update::FAILED;
}