aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1247.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1247.php')
-rw-r--r--Zotlabs/Update/_1247.php23
1 files changed, 23 insertions, 0 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;
+
+ }
+
+}