aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1234.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-05-09 19:40:47 +0200
committerMax Kostikov <max@kostikov.co>2019-05-09 19:40:47 +0200
commitb9b65d7dfbf0d5532c93bd7395b5dbbcb8c1b68f (patch)
tree7983e0b72be6bbd924af694cde0e1482264cf247 /Zotlabs/Update/_1234.php
parent1545c78d05cee05de18d191169fd577a3fd9842d (diff)
parentf0c292e77b697bd89a529244cb23e886e5481d40 (diff)
downloadvolse-hubzilla-b9b65d7dfbf0d5532c93bd7395b5dbbcb8c1b68f.tar.gz
volse-hubzilla-b9b65d7dfbf0d5532c93bd7395b5dbbcb8c1b68f.tar.bz2
volse-hubzilla-b9b65d7dfbf0d5532c93bd7395b5dbbcb8c1b68f.zip
Merge branch 'dev' into 'dev'
remove the caldav and event app and make calendar the default app See merge request hubzilla/core!1643
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;
+
+ }
+
+}