Merge pull request #9981 from annando/issue-9977
Issue 9977: Check for existance of the "item" table on postupdate
This commit is contained in:
commit
f24deebc7f
1 changed files with 5 additions and 0 deletions
|
@ -784,6 +784,11 @@ class PostUpdate
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('item')) {
|
||||
DI::config()->set("system", "post_update_version", 1400);
|
||||
return true;
|
||||
}
|
||||
|
||||
$condition = ["`extid` != ? AND EXISTS(SELECT `id` FROM `post-user` WHERE `uri-id` = `item`.`uri-id` AND `uid` = `item`.`uid` AND `external-id` IS NULL)", ''];
|
||||
Logger::info('Start', ['rest' => DBA::count('item', $condition)]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue