]> git.mxchange.org Git - friendica.git/commitdiff
Issue 11975: Don't call the postupdate if the table is missing
authorMichael <heluecht@pirati.ca>
Sat, 8 Oct 2022 14:42:11 +0000 (14:42 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 8 Oct 2022 14:42:11 +0000 (14:42 +0000)
src/Database/PostUpdate.php

index 62b023fb6fdd6c09fe86d44bb2b933db30e3b3df..c0eac95c81da0d4e584b887bebfa8f338c226c57 100644 (file)
@@ -1040,6 +1040,11 @@ class PostUpdate
                        return true;
                }
 
+               if (!DBStructure::existsTable('conversation')) {
+                       DI::config()->set('system', 'post_update_version', 1452);
+                       return true;
+               }
+
                $id = DI::config()->get('system', 'post_update_version_1452_id', 0);
 
                Logger::info('Start', ['uri-id' => $id]);