aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-27 13:57:18 +0000
committerMario <mario@mariovavti.com>2021-06-27 13:57:18 +0000
commit7002248325d705067319a650b1692c2af9ccbc05 (patch)
tree8a0b77f34830e8a5c3e1da0b4c2863bd7a0dcfba
parentd8d0f01f805a0c1507bb62013f9987259685a5ed (diff)
downloadvolse-hubzilla-7002248325d705067319a650b1692c2af9ccbc05.tar.gz
volse-hubzilla-7002248325d705067319a650b1692c2af9ccbc05.tar.bz2
volse-hubzilla-7002248325d705067319a650b1692c2af9ccbc05.zip
update 1247 to clean up bogus entries in updates. this only affects directory servers.
-rw-r--r--Zotlabs/Update/_1247.php23
-rw-r--r--boot.php2
2 files changed, 24 insertions, 1 deletions
diff --git a/Zotlabs/Update/_1247.php b/Zotlabs/Update/_1247.php
new file mode 100644
index 000000000..e776a52f4
--- /dev/null
+++ b/Zotlabs/Update/_1247.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1247 {
+
+ function run() {
+
+ q("START TRANSACTION");
+
+ $r = dbq("DELETE FROM updates WHERE ud_addr = '' OR ud_hash = '' OR ud_guid = ''");
+
+ if($r) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}
diff --git a/boot.php b/boot.php
index 23b9db5c6..9e044275b 100644
--- a/boot.php
+++ b/boot.php
@@ -56,7 +56,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '5.9.8' );
define ( 'ZOT_REVISION', '6.0' );
-define ( 'DB_UPDATE_VERSION', 1246 );
+define ( 'DB_UPDATE_VERSION', 1247 );
define ( 'PROJECT_BASE', __DIR__ );