]> git.mxchange.org Git - friendica.git/commitdiff
Postupdate: Check for existence of the "term" table
authorMichael <heluecht@pirati.ca>
Sun, 4 Oct 2020 19:20:18 +0000 (19:20 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Oct 2020 19:20:18 +0000 (19:20 +0000)
src/Database/PostUpdate.php

index a418a7948dd5c99d6ecbb74dcf3f1cc30573e58f..9b467c7101d027f11b5eec19c5ecc62f5305f771 100644 (file)
@@ -634,6 +634,11 @@ class PostUpdate
                        return true;
                }
 
+               if (!DBStructure::existsTable('term')) {
+                       DI::config()->set('system', 'post_update_version', 1342);
+                       return true;
+               }
+
                $id = DI::config()->get('system', 'post_update_version_1342_id', 0);
 
                Logger::info('Start', ['item' => $id]);
@@ -788,6 +793,11 @@ class PostUpdate
                        return true;
                }
 
+               if (!DBStructure::existsTable('term')) {
+                       DI::config()->set('system', 'post_update_version', 1346);
+                       return true;
+               }
+
                $id = DI::config()->get('system', 'post_update_version_1346_id', 0);
 
                Logger::info('Start', ['item' => $id]);