瀏覽代碼

Remove now useless main/top_articles_view

jherve 1 年之前
父節點
當前提交
fee65e7521
共有 1 個文件被更改,包括 0 次插入45 次删除
  1. 0 45
      src/de_quoi_parle_le_monde/storage.py

+ 0 - 45
src/de_quoi_parle_le_monde/storage.py

@@ -193,51 +193,6 @@ class Storage:
                 """
             )
 
-            await conn.execute(
-                """
-                CREATE VIEW IF NOT EXISTS main_articles_view AS
-                    SELECT
-                        s.id AS snapshot_id,
-                        s.site_id,
-                        s.site_name,
-                        s.site_original_url,
-                        s.timestamp,
-                        s.timestamp_virtual,
-                        fas.id AS featured_article_snapshot_id,
-                        fas.title,
-                        fas.url
-                    FROM
-                        main_articles as m
-                    JOIN
-                        snapshots_view AS s ON s.id = m.snapshot_id
-                    JOIN
-                        featured_article_snapshots AS fas ON m.featured_article_snapshot_id = fas.id
-                """
-            )
-
-            await conn.execute(
-                """
-                CREATE VIEW IF NOT EXISTS top_articles_view AS
-                    SELECT
-                        s.id AS snapshot_id,
-                        s.site_id,
-                        s.site_name,
-                        s.site_original_url,
-                        s.timestamp,
-                        s.timestamp_virtual,
-                        fas.id AS featured_article_snapshot_id,
-                        fas.title,
-                        fas.url,
-                        t.rank
-                    FROM
-                        top_articles as t
-                    JOIN
-                        snapshots_view AS s ON s.id = t.snapshot_id
-                    JOIN
-                        featured_article_snapshots AS fas ON t.featured_article_snapshot_id = fas.id
-                """
-            )
-
             await conn.execute(
                 """
                 CREATE VIEW IF NOT EXISTS main_page_apparitions AS