aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1223.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 18:48:29 +0000
committerMario <mario@mariovavti.com>2018-10-06 20:56:23 +0200
commit0a840c02f73b224f40c8a985a7b57d950aa7be48 (patch)
treedf5e9fded74e8aa291fadeb55563b583c866799e /Zotlabs/Update/_1223.php
parent9bfa5c82d19ce42bfb283c35f31518cca461349f (diff)
downloadvolse-hubzilla-0a840c02f73b224f40c8a985a7b57d950aa7be48.tar.gz
volse-hubzilla-0a840c02f73b224f40c8a985a7b57d950aa7be48.tar.bz2
volse-hubzilla-0a840c02f73b224f40c8a985a7b57d950aa7be48.zip
another db update to get rid of the old view bookmarks entries
(cherry picked from commit 6ffdf3880f89b83c701f866a6188ef6f079078c5)
Diffstat (limited to 'Zotlabs/Update/_1223.php')
-rw-r--r--Zotlabs/Update/_1223.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1223.php b/Zotlabs/Update/_1223.php
new file mode 100644
index 000000000..c6f05c806
--- /dev/null
+++ b/Zotlabs/Update/_1223.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1223 {
+
+ function run() {
+
+ q("START TRANSACTION");
+
+ $r1 = q("DELETE FROM app WHERE app_name = 'View Bookmarks' and app_system = 1");
+
+ if($r1) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}