]> git.mxchange.org Git - friendica.git/commitdiff
Ensure to only execute this if the table exists
authorMichael <heluecht@pirati.ca>
Thu, 7 Jan 2021 18:13:40 +0000 (18:13 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 7 Jan 2021 18:13:40 +0000 (18:13 +0000)
update.php

index 958e974f9d0b2c9feeb8e742baf4364c2d9648d6..ffcfa6a90f82c169c6589bc5cce1c96379d723c3 100644 (file)
@@ -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;
        }