aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1247.php
blob: e776a52f4954a30678481dc94afe98f6efa5162a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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;

	}

}