https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b94f442
)
Avoid foreign key violations when deleting unused tables
author
Michael
<heluecht@pirati.ca>
Wed, 24 Mar 2021 19:47:55 +0000
(19:47 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 24 Mar 2021 19:47:55 +0000
(19:47 +0000)
src/Database/DBStructure.php
patch
|
blob
|
history
diff --git
a/src/Database/DBStructure.php
b/src/Database/DBStructure.php
index
0b116b8
..
0a532fa
100644
(file)
--- a/
src/Database/DBStructure.php
+++ b/
src/Database/DBStructure.php
@@
-78,9
+78,9
@@
class DBStructure
return;
}
return;
}
- $old_tables = ['fserver', 'gcign', 'gcontact', 'gcontact-relation', 'gfollower' ,'glink', 'item
', 'item
-delivery-data',
+ $old_tables = ['fserver', 'gcign', 'gcontact', 'gcontact-relation', 'gfollower' ,'glink', 'item-delivery-data',
'item-activity', 'item-content', 'item_id', 'participation', 'poll', 'poll_result', 'queue', 'retriever_rule',
'item-activity', 'item-content', 'item_id', 'participation', 'poll', 'poll_result', 'queue', 'retriever_rule',
- 'sign', 'spam', 'term', '
thread', 'user-
item'];
+ 'sign', 'spam', 'term', '
user-item', 'thread', '
item'];
$tables = DBA::selectToArray(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_NAME'],
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_TYPE' => 'BASE TABLE']);
$tables = DBA::selectToArray(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_NAME'],
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_TYPE' => 'BASE TABLE']);