From 36b06ee2a1a376f0aff8305a951253ddb9137640 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 4 Oct 2020 19:20:18 +0000 Subject: [PATCH] Postupdate: Check for existence of the "term" table --- src/Database/PostUpdate.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index a418a7948d..9b467c7101 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -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]);