"participation" is removed since it is unused
This commit is contained in:
parent
5a2c5da81d
commit
e561cad844
6 changed files with 1 additions and 54 deletions
16
database.sql
16
database.sql
|
@ -970,22 +970,6 @@ CREATE TABLE IF NOT EXISTS `parsed_url` (
|
||||||
INDEX `created` (`created`)
|
INDEX `created` (`created`)
|
||||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='cache for \'parse_url\' queries';
|
) 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
|
-- TABLE pconfig
|
||||||
--
|
--
|
||||||
|
|
|
@ -32,7 +32,6 @@ Database Tables
|
||||||
| [notify-threads](help/database/db_notify-threads) | |
|
| [notify-threads](help/database/db_notify-threads) | |
|
||||||
| [oembed](help/database/db_oembed) | cache for OEmbed queries |
|
| [oembed](help/database/db_oembed) | cache for OEmbed queries |
|
||||||
| [parsed_url](help/database/db_parsed_url) | cache for "parse_url" 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 |
|
| [pconfig](help/database/db_pconfig) | personal (per user) configuration storage |
|
||||||
| [photo](help/database/db_photo) | photo storage |
|
| [photo](help/database/db_photo) | photo storage |
|
||||||
| [poll](help/database/db_poll) | data for polls |
|
| [poll](help/database/db_poll) | data for polls |
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
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)
|
|
|
@ -79,7 +79,7 @@ class DBStructure
|
||||||
}
|
}
|
||||||
|
|
||||||
$old_tables = ['fserver', 'gcign', 'gcontact', 'gcontact-relation', 'gfollower' ,'glink', 'item-delivery-data',
|
$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'];
|
'sign', 'spam', 'term', 'user-item'];
|
||||||
|
|
||||||
$tables = DBA::selectToArray(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_NAME'],
|
$tables = DBA::selectToArray(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_NAME'],
|
||||||
|
|
|
@ -1031,20 +1031,6 @@ return [
|
||||||
"created" => ["created"],
|
"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" => [
|
"pconfig" => [
|
||||||
"comment" => "personal (per user) configuration storage",
|
"comment" => "personal (per user) configuration storage",
|
||||||
"fields" => [
|
"fields" => [
|
||||||
|
|
12
update.php
12
update.php
|
@ -490,10 +490,6 @@ function pre_update_1364()
|
||||||
return Update::FAILED;
|
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`)")) {
|
if (!DBA::e("DELETE FROM `profile_check` WHERE NOT `cid` IN (SELECT `id` FROM `contact`)")) {
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
@ -502,10 +498,6 @@ function pre_update_1364()
|
||||||
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`)")) {
|
if (!DBA::e("DELETE FROM `group_member` WHERE NOT `gid` IN (SELECT `id` FROM `group`)")) {
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
@ -514,10 +506,6 @@ function pre_update_1364()
|
||||||
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`)")) {
|
if (DBStructure::existsTable('user-item') && !DBA::e("DELETE FROM `user-item` WHERE NOT `iid` IN (SELECT `id` FROM `item`)")) {
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue