43 $entities_table = $select->joinEntitiesTable(
'md',
'entity_guid');
45 $select->select(
'count(*) AS total')
46 ->where($select->compare(
'md.name',
'like',
'notification:method:%',
ELGG_VALUE_STRING))
47 ->andWhere($select->compare(
"{$entities_table}.type",
'=',
'user',
ELGG_VALUE_STRING));
59 $update->set(
'name',
'REPLACE(name, "notification:method:", "notification:default:")')
60 ->where($update->compare(
'name',
'like',
'notification:method:%',
ELGG_VALUE_STRING));
62 $users = $update->subquery(
'entities');
66 $update->andWhere($update->compare(
'entity_guid',
'in',
$users->getSQL()));
if(empty($user_guids)) $users
static table($table, $alias=null)
{}
Change the metadata name of the user notification settings to be multi-purpose.
addSuccesses(int $num=1)
Set an item (or items) as successfully upgraded.
Result of a single BatchUpgrade run.
static fromTable($table, $alias=null)
{}
_elgg_services()
Get the global service provider.
run(Result $result, $offset)
System upgrades are executed synchronously at system upgrade.