]>
Git — Sourcephile - gargantext.git/blob - devops/postgres/upgrade/0.0.6.9.9.6.4_check.sql
3 (select jsonb_array_elements_text(ngrams_repo_element
->'children') as term
6 (select ngrams_repo_element
->>'root' as term
9 (select child_ngrams.term
, ngrams.terms
11 left join ngrams
on child_ngrams.term
= ngrams.terms
12 where ngrams.terms
is null
16 select parent_ngrams.term
, ngrams.terms
18 left join ngrams
on parent_ngrams.term
= ngrams.terms
19 where ngrams.terms
is null
20 and parent_ngrams.term
is not null)