mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:50:12 +00:00
"id" is now post-user-id
This commit is contained in:
parent
6e1483545e
commit
36357e790e
9 changed files with 76 additions and 63 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue