diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-08-29 13:57:36 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-08-29 13:57:36 +0200 |
commit | 42093aedcf9af8433ad9764116b98182e4fba658 (patch) | |
tree | 9041068723db7dc83f291d05ae4d3de1b079b8fe | |
parent | 74d80473df46f16e3d5ac840648f491588bdbd1f (diff) | |
download | volse-hubzilla-42093aedcf9af8433ad9764116b98182e4fba658.tar.gz volse-hubzilla-42093aedcf9af8433ad9764116b98182e4fba658.tar.bz2 volse-hubzilla-42093aedcf9af8433ad9764116b98182e4fba658.zip |
db update to get rid of bogus activitypub xchans which got created due to a bug in the pubcrawl addon
-rw-r--r-- | Zotlabs/Update/_1219.php | 26 | ||||
-rwxr-xr-x | boot.php | 2 |
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; + } + } + +} @@ -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__ ); |