aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1222.php
blob: 5790254570d8701068a95ca978bc6c990b883d72 (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
27
28
<?php

namespace Zotlabs\Update;

use Zotlabs\Lib\Apps;

class _1222 {

	function run() {

		q("START TRANSACTION");

		$r1 = q("DELETE FROM app WHERE app_name = 'Grid' and app_system = 1");

		if($r1) {
			q("COMMIT");

			Apps::import_system_apps();

			return UPDATE_SUCCESS;
		}

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}