45 $entities_table = $select->joinEntitiesTable($select->getTableAlias(),
'entity_guid');
47 $select->select(
'count(*) AS total')
48 ->where($select->compare(
"{$select->getTableAlias()}.name",
'like',
'notification:method:%',
ELGG_VALUE_STRING))
49 ->andWhere($select->compare(
"{$entities_table}.type",
'=',
'user',
ELGG_VALUE_STRING));
61 $update->set(
'name',
'REPLACE(name, "notification:method:", "notification:default:")')
62 ->where($update->compare(
'name',
'like',
'notification:method:%',
ELGG_VALUE_STRING));
68 $update->andWhere($update->compare(
'entity_guid',
'in',
$users->getSQL()));
static table(string $table)
Returns a QueryBuilder for updating data in a given table.
if(empty($user_guids)) $users
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(string $table, string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
_elgg_services()
Get the global service provider.
run(Result $result, $offset)
System upgrades are executed synchronously at system upgrade.