From 1520a26e0f4356bef13f5988cc5b5db352e2e14a Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 12 May 2020 08:34:35 +0000 Subject: fix update for postgres --- Zotlabs/Update/_1238.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Update/_1238.php b/Zotlabs/Update/_1238.php index 428f7ce15..e08cd334f 100644 --- a/Zotlabs/Update/_1238.php +++ b/Zotlabs/Update/_1238.php @@ -21,11 +21,11 @@ class _1238 { // fix singleton networks hubloc_id_url $r2 = q("UPDATE hubloc - LEFT JOIN xchan ON hubloc_hash = xchan_hash - SET hubloc_id_url = xchan_url - WHERE hubloc_network IN ('activitypub', 'diaspora', 'friendica-over-diaspora', 'gnusoc') - AND hubloc_id_url = '' - AND xchan_url != ''" + LEFT JOIN xchan ON hubloc.hubloc_hash = xchan.xchan_hash + SET hubloc.hubloc_id_url = xchan.xchan_url + WHERE hubloc.hubloc_network IN ('activitypub', 'diaspora', 'friendica-over-diaspora', 'gnusoc') + AND hubloc.hubloc_id_url = '' + AND xchan.xchan_url != ''" ); if($r1 && $r2) { -- cgit v1.2.3