aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1253.php
blob: 3b0e6899ad32753122a7027e9c037bbe89a30eed (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 _1253 {

	function run() {

		dbq("START TRANSACTION");

		$r = dbq("DELETE FROM app WHERE app_name IN ('Wiki', 'Cards', 'Articles') AND app_plugin = ''");

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

		dbq("ROLLBACK");
		return UPDATE_FAILED;

	}

}