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;