Merge pull request #9362 from annando/post-update-term
Postupdate: Check for existence of the "term" table
This commit is contained in:
commit
f096b8c879
1 changed files with 10 additions and 0 deletions
|
@ -635,6 +635,11 @@ class PostUpdate
|
||||||
return true;
|
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);
|
$id = DI::config()->get('system', 'post_update_version_1342_id', 0);
|
||||||
|
|
||||||
Logger::info('Start', ['item' => $id]);
|
Logger::info('Start', ['item' => $id]);
|
||||||
|
@ -789,6 +794,11 @@ class PostUpdate
|
||||||
return true;
|
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);
|
$id = DI::config()->get('system', 'post_update_version_1346_id', 0);
|
||||||
|
|
||||||
Logger::info('Start', ['item' => $id]);
|
Logger::info('Start', ['item' => $id]);
|
||||||
|
|
Loading…
Reference in a new issue