mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Ensure to only execute this if the table exists
This commit is contained in:
parent
2f52afeeac
commit
9ba2bd0736
1 changed files with 1 additions and 1 deletions
|
@ -831,7 +831,7 @@ function pre_update_1377()
|
|||
return Update::FAILED;
|
||||
}
|
||||
|
||||
if (!DBA::e("DELETE FROM `diaspora-interaction` WHERE `uri-id` NOT IN (SELECT `id` FROM `item-uri`)")) {
|
||||
if (DBStructure::existsTable('diaspora-interaction') && !DBA::e("DELETE FROM `diaspora-interaction` WHERE `uri-id` NOT IN (SELECT `id` FROM `item-uri`)")) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue