aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 20:48:29 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-06 20:48:29 +0200
commit6ffdf3880f89b83c701f866a6188ef6f079078c5 (patch)
treeb6c0c7cad557e8743d1c9ca97dfa223ce475dc99
parent66cf0852728d2f95ed3a5b7a304dbc7b79111831 (diff)
downloadvolse-hubzilla-6ffdf3880f89b83c701f866a6188ef6f079078c5.tar.gz
volse-hubzilla-6ffdf3880f89b83c701f866a6188ef6f079078c5.tar.bz2
volse-hubzilla-6ffdf3880f89b83c701f866a6188ef6f079078c5.zip
another db update to get rid of the old view bookmarks entries
-rw-r--r--Zotlabs/Update/_1223.php23
-rwxr-xr-xboot.php2
2 files changed, 24 insertions, 1 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;
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index ea714bab9..3613813d7 100755
--- a/boot.php
+++ b/boot.php
@@ -54,7 +54,7 @@ define ( 'STD_VERSION', '3.9' );
define ( 'ZOT_REVISION', '6.0a' );
-define ( 'DB_UPDATE_VERSION', 1222 );
+define ( 'DB_UPDATE_VERSION', 1223 );
define ( 'PROJECT_BASE', __DIR__ );