Issue 9977: Check for the existance of the "item" table on postupdate
This commit is contained in:
parent
1e996af321
commit
b029e78212
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