aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1247.php
blob: e776a52f4954a30678481dc94afe98f6efa5162a (plain) (tree)






















                                                                                                   
<?php

namespace Zotlabs\Update;

class _1247 {

	function run() {

		q("START TRANSACTION");

		$r = dbq("DELETE FROM updates WHERE ud_addr = '' OR ud_hash = '' OR ud_guid = ''");

		if($r) {
			q("COMMIT");
			return UPDATE_SUCCESS;
		}

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}