Issue 9977: Check for the existance of the "item" table on postupdate

This commit is contained in:
Michael 2021-03-04 00:00:24 +00:00
parent 1e996af321
commit b029e78212

View file

@ -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)]);