diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 6713330e5..c6b151af5 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -635,6 +635,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]); @@ -789,6 +794,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]);