"id" is now post-user-id
This commit is contained in:
@@ -1232,7 +1232,7 @@ class DBStructure
|
||||
} elseif ($verbose) {
|
||||
echo "Zero permissionset already added\n";
|
||||
}
|
||||
if (!self::existsForeignKeyForField('item', 'psid')) {
|
||||
if (self::existsTable('item') && !self::existsForeignKeyForField('item', 'psid')) {
|
||||
$sets = DBA::p("SELECT `psid`, `item`.`uid`, `item`.`private` FROM `item`
|
||||
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
||||
WHERE `permissionset`.`id` IS NULL AND NOT `psid` IS NULL");
|
||||
|
||||
@@ -179,6 +179,11 @@ class PostUpdate
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('item')) {
|
||||
DI::config()->set('system', 'post_update_version', 1329);
|
||||
return true;
|
||||
}
|
||||
|
||||
$id = DI::config()->get('system', 'post_update_version_1329_id', 0);
|
||||
|
||||
Logger::info('Start', ['item' => $id]);
|
||||
@@ -514,7 +519,7 @@ class PostUpdate
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('item-activity')) {
|
||||
if (!DBStructure::existsTable('item-activity') || !DBStructure::existsTable('item')) {
|
||||
DI::config()->set('system', 'post_update_version', 1347);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user