aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/master/master.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/master/master.sql b/sources/master/master.sql
index b77ebb5..5397a4c 100644
--- a/sources/master/master.sql
+++ b/sources/master/master.sql
@@ -96,6 +96,8 @@ UPDATE top_tags SET
UPDATE top_tags SET in_wiki=1 WHERE skey || '=' || svalue IN (SELECT distinct tag FROM wiki.wikipages WHERE value IS NOT NULL AND value != '*');
UPDATE top_tags SET in_wiki_en=1 WHERE skey || '=' || svalue IN (SELECT distinct tag FROM wiki.wikipages WHERE value IS NOT NULL AND value != '*' AND lang='en');
+UPDATE top_tags SET in_projects=(SELECT num FROM projects.project_counts p WHERE p.key=skey AND p.value=svalue);
+
CREATE UNIQUE INDEX top_tags_key_value_idx ON top_tags (skey, svalue);
-- ============================================================================