Elgg\UpgradeService::setProcessedUpgrade PHP Method

setProcessedUpgrade() protected method

Saves a processed upgrade to a dataset.
protected setProcessedUpgrade ( string $upgrade ) : boolean
$upgrade string Filename of the processed upgrade (not the path, just the file)
return boolean
    protected function setProcessedUpgrade($upgrade)
    {
        $processed_upgrades = $this->getProcessedUpgrades();
        $processed_upgrades[] = $upgrade;
        $processed_upgrades = array_unique($processed_upgrades);
        return $this->config->save('processed_upgrades', $processed_upgrades);
    }