aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1234.php
blob: b1b3b0c4e58627868bc0356c8d1a300ceabd9c6d (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
24
25
26
<?php

namespace Zotlabs\Update;

class _1234 {

	function run() {
	
		q("START TRANSACTION");

		$r = q("DELETE FROM app WHERE app_name = '%s' OR app_name = '%s'",
			dbesc('Events'),
			dbesc('CalDAV')
		);

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

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}