Airship\Engine\Continuum\AutoUpdater::updateDBRecord PHP Method

updateDBRecord() public method

Update the version string in airship_package_cache
public updateDBRecord ( string $type, UpdateInfo $info ) : boolean
$type string
$info UpdateInfo
return boolean
    public function updateDBRecord(string $type, UpdateInfo $info) : bool
    {
        $db = \Airship\get_database();
        $db->beginTransaction();
        $db->update('airship_package_cache', ['current_version' => $info->getVersion()], ['packagetype' => $type, 'supplier' => $info->getSupplierName(), 'name' => $info->getPackageName()]);
        return $db->commit();
    }