From 669fd6a99bf6070cd0e54187c53befcab7e5d657 Mon Sep 17 00:00:00 2001 From: David Raznick Date: Tue, 19 Mar 2019 13:29:15 +0000 Subject: [PATCH] In release_summary_with_data show compiled release not record. Also remove field_count downgrade. --- sql/008-release.sql | 2 +- sql/009-field-counts_downgrade.sql | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 sql/009-field-counts_downgrade.sql diff --git a/sql/008-release.sql b/sql/008-release.sql index 29798b4..c2a8a34 100644 --- a/sql/008-release.sql +++ b/sql/008-release.sql @@ -326,7 +326,7 @@ select c.transform_type, c.transform_from_collection_id, c.deleted_at, - d.data, + case when release_type = 'record' then d.data -> 'compiledRelease' else d.data end AS data, pd.data as package_data from release_summary rs diff --git a/sql/009-field-counts_downgrade.sql b/sql/009-field-counts_downgrade.sql deleted file mode 100644 index 6959c20..0000000 --- a/sql/009-field-counts_downgrade.sql +++ /dev/null @@ -1,4 +0,0 @@ -set search_path = views, public; - -drop table if exists field_counts; -drop table if exists field_counts_by_buyer;