aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Update/_1219.php26
-rwxr-xr-xboot.php2
2 files changed, 27 insertions, 1 deletions
diff --git a/Zotlabs/Update/_1219.php b/Zotlabs/Update/_1219.php
new file mode 100644
index 000000000..be2534001
--- /dev/null
+++ b/Zotlabs/Update/_1219.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1219 {
+
+ function run() {
+ q("START TRANSACTION");
+
+ $r = q("DELETE FROM xchan WHERE
+ xchan_hash like '%s' AND
+ xchan_network = 'activitypub'",
+ dbesc(z_root()) . '%'
+ );
+
+ if($r) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+ else {
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+ }
+ }
+
+}
diff --git a/boot.php b/boot.php
index 8518a17f6..6c56a7dc0 100755
--- a/boot.php
+++ b/boot.php
@@ -54,7 +54,7 @@ define ( 'STD_VERSION', '3.7.1' );
define ( 'ZOT_REVISION', '6.0a' );
-define ( 'DB_UPDATE_VERSION', 1218 );
+define ( 'DB_UPDATE_VERSION', 1219 );
define ( 'PROJECT_BASE', __DIR__ );