diff --git a/client/cdb_dataservices_client--0.12.0--0.12.1.sql b/client/cdb_dataservices_client--0.12.0--0.12.1.sql index 404fb71..8c5522c 100644 --- a/client/cdb_dataservices_client--0.12.0--0.12.1.sql +++ b/client/cdb_dataservices_client--0.12.0--0.12.1.sql @@ -3,3 +3,10 @@ \echo Use "ALTER EXTENSION cdb_dataservices_client UPDATE TO '0.12.1'" to load this file. \quit -- HERE goes your code to upgrade/downgrade +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE score numeric; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE numtiles bigint; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE notnull_percent numeric; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE numgeoms numeric; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE percentfill numeric; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE estnumgeoms numeric; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry ADD ATTRIBUTE meanmediansize numeric; diff --git a/client/cdb_dataservices_client--0.12.1--0.12.0.sql b/client/cdb_dataservices_client--0.12.1--0.12.0.sql index 126503e..c214e61 100644 --- a/client/cdb_dataservices_client--0.12.1--0.12.0.sql +++ b/client/cdb_dataservices_client--0.12.1--0.12.0.sql @@ -3,3 +3,10 @@ \echo Use "ALTER EXTENSION cdb_dataservices_client UPDATE TO '0.12.0'" to load this file. \quit -- HERE goes your code to upgrade/downgrade +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE score; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE numtiles; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE notnull_percent; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE numgeoms; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE percentfill; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE estnumgeoms; +ALTER TYPE cdb_dataservices_client.obs_meta_geometry DROP ATTRIBUTE meanmediansize; diff --git a/client/sql/16_custom_types.sql b/client/sql/16_custom_types.sql index 9f26b97..0bb19a2 100644 --- a/client/sql/16_custom_types.sql +++ b/client/sql/16_custom_types.sql @@ -15,6 +15,6 @@ CREATE TYPE cdb_dataservices_client.obs_meta_numerator AS (numer_id text, numer_ CREATE TYPE cdb_dataservices_client.obs_meta_denominator AS (denom_id text, denom_name text, denom_description text, denom_weight text, denom_license text, denom_source text, denom_type text, denom_aggregate text, denom_extra jsonb, denom_tags jsonb, valid_numer boolean, valid_geom boolean, valid_timespan boolean); -CREATE TYPE cdb_dataservices_client.obs_meta_geometry AS (geom_id text, geom_name text, geom_description text, geom_weight text, geom_aggregate text, geom_license text, geom_source text, valid_numer boolean, valid_denom boolean, valid_timespan boolean); +CREATE TYPE cdb_dataservices_client.obs_meta_geometry AS (geom_id text, geom_name text, geom_description text, geom_weight text, geom_aggregate text, geom_license text, geom_source text, valid_numer boolean, valid_denom boolean, valid_timespan boolean, score numeric, numtiles bigint, notnull_percent numeric, numgeoms numeric, percentfill numeric, estnumgeoms numeric, meanmediansize numeric); CREATE TYPE cdb_dataservices_client.obs_meta_timespan AS (timespan_id text, timespan_name text, timespan_description text, timespan_weight text, timespan_aggregate text, timespan_license text, timespan_source text, valid_numer boolean, valid_denom boolean, valid_geom boolean);