blob: b61c6ed395cfbb3a84c9380e640ebd96c4239606 (
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
|
<?php
namespace Zotlabs\Update;
class _1248 {
function run() {
q("START TRANSACTION");
// remove possible bogus entries from xconfig
$r = dbq("DELETE FROM xconfig WHERE xchan = ''");
// remove gnu social app - it has been moved to addons unmaintained
$r1 = dbq("DELETE FROM app WHERE app_plugin = 'gnusoc'");
if($r && $r1) {
q("COMMIT");
return UPDATE_SUCCESS;
}
q("ROLLBACK");
return UPDATE_FAILED;
}
}
|