aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1234.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-09 14:39:40 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-09 14:39:40 +0200
commitf0c292e77b697bd89a529244cb23e886e5481d40 (patch)
treea7c9c2764180832741766f4115f542f84f85c5b1 /Zotlabs/Update/_1234.php
parent9efd484e277578bc27f18baac64c0067852044de (diff)
downloadvolse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.tar.gz
volse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.tar.bz2
volse-hubzilla-f0c292e77b697bd89a529244cb23e886e5481d40.zip
remove the caldav and event app and make calendar the default app
Diffstat (limited to 'Zotlabs/Update/_1234.php')
-rw-r--r--Zotlabs/Update/_1234.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1234.php b/Zotlabs/Update/_1234.php
new file mode 100644
index 000000000..b1b3b0c4e
--- /dev/null
+++ b/Zotlabs/Update/_1234.php
@@ -0,0 +1,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;
+
+ }
+
+}