forked from LBRYCommunity/lbry-sdk
apply reposted_claim_type on es sync
This commit is contained in:
parent
d5f722792f
commit
7bf211a52b
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ SELECT claimtrie.claim_hash as is_controlling,
|
|||
(select group_concat(tag, ',,') from tag where tag.claim_hash in (claim.claim_hash, claim.reposted_claim_hash)) as tags,
|
||||
(select group_concat(language, ' ') from language where language.claim_hash in (claim.claim_hash, claim.reposted_claim_hash)) as languages,
|
||||
(select cr.has_source from claim cr where cr.claim_hash = claim.reposted_claim_hash) as reposted_has_source,
|
||||
(select cr.claim_type from claim cr where cr.claim_hash = claim.reposted_claim_hash) as reposted_claim_type,
|
||||
claim.*
|
||||
FROM claim LEFT JOIN claimtrie USING (claim_hash)
|
||||
WHERE claim.height % {shards_total} = {shard_num}
|
||||
|
|
Loading…
Reference in a new issue