use Friendica\Model\Contact;
use Friendica\Model\Item;
use Friendica\Model\PermissionSet;
+use Friendica\Database\DBA;
require_once 'include/dba.php';
if (!empty($row['psid']) && !DBA::exists('item', ['psid' => $row['psid']])) {
DBA::delete('permissionset', ['id' => $row['psid']]);
}
- // When the permission set will be used in photo and events as well.
- // this query here needs to be extended.
- if (!empty($row['psid']) && !dba::exists('item', ['psid' => $row['psid']])) {
- dba::delete('permissionset', ['id' => $row['psid']]);
- }
}
DBA::close($rows);
return UPDATE_SUCCESS;
}
-
-function update_1278() {
- Config::set('system', 'maintenance', 1);
- Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
-
- Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
- Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
-
- Config::set('system', 'maintenance', 0);
-
- return UPDATE_SUCCESS;
-}
-
-function update_1278() {
- Config::set('system', 'maintenance', 1);
- Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
-
- Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
- Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
-
- Config::set('system', 'maintenance', 0);
-
- return UPDATE_SUCCESS;
-}