diff --git a/api/models/products.go b/api/models/products.go index d588321a..16c3f259 100644 --- a/api/models/products.go +++ b/api/models/products.go @@ -13,8 +13,9 @@ import ( ) var listProductsSQL = `SELECT id, slug, name, label, tags, temporal_resolution, temporal_duration, - parameter_id, parameter, unit_id, unit, dss_fpart, dss_datatype, description, - suite_id, suite, after, before, productfile_count, last_forecast_version + parameter_id, parameter, unit_id, unit, dss_fpart, dss_datatype_id, + dss_datatype, description, suite_id, suite, after, before, + productfile_count, last_forecast_version FROM v_product` // ProductInfo holds information required to create a product diff --git a/sql/common/R__04_views_products.sql b/sql/common/R__04_views_products.sql index 7cd4d33c..2342ff69 100644 --- a/sql/common/R__04_views_products.sql +++ b/sql/common/R__04_views_products.sql @@ -35,6 +35,7 @@ CREATE OR REPLACE VIEW v_product AS ( a.label AS label, a.temporal_resolution AS temporal_resolution, a.temporal_duration AS temporal_duration, + d.id AS dss_datatype_id, d.name AS dss_datatype, a.dss_fpart AS dss_fpart, a.description AS description,