aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-08-25 15:54:26 +0000
committerMario <mario@mariovavti.com>2021-08-25 15:54:26 +0000
commit6261d0826c49ca24df9f694931592fbb9bf60f7e (patch)
treec27379764f0fa792c69c97b3e2626cd5d0ac46ee
parent2e7a915ee8d99970a32e02bf3ac5bb5834f7fa1a (diff)
downloadvolse-hubzilla-6261d0826c49ca24df9f694931592fbb9bf60f7e.tar.gz
volse-hubzilla-6261d0826c49ca24df9f694931592fbb9bf60f7e.tar.bz2
volse-hubzilla-6261d0826c49ca24df9f694931592fbb9bf60f7e.zip
db update 1248 to clean up possible bogus entries in xconfig and remove gnusoc from app
-rw-r--r--Zotlabs/Update/_1248.php27
-rw-r--r--boot.php4
2 files changed, 29 insertions, 2 deletions
diff --git a/Zotlabs/Update/_1248.php b/Zotlabs/Update/_1248.php
new file mode 100644
index 000000000..b61c6ed39
--- /dev/null
+++ b/Zotlabs/Update/_1248.php
@@ -0,0 +1,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;
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index 8fd263344..ab23365c4 100644
--- a/boot.php
+++ b/boot.php
@@ -53,10 +53,10 @@ require_once('include/bbcode.php');
require_once('include/items.php');
define ( 'PLATFORM_NAME', 'hubzilla' );
-define ( 'STD_VERSION', '6.1.3' );
+define ( 'STD_VERSION', '6.1.4' );
define ( 'ZOT_REVISION', '6.0' );
-define ( 'DB_UPDATE_VERSION', 1247 );
+define ( 'DB_UPDATE_VERSION', 1248 );
define ( 'PROJECT_BASE', __DIR__ );