diff --git a/pg_metadata/install/sql/pgmetadata/70_COMMENT.sql b/pg_metadata/install/sql/pgmetadata/70_COMMENT.sql index 543099a5..aa1c3de4 100755 --- a/pg_metadata/install/sql/pgmetadata/70_COMMENT.sql +++ b/pg_metadata/install/sql/pgmetadata/70_COMMENT.sql @@ -207,6 +207,10 @@ COMMENT ON COLUMN pgmetadata.dataset.data_last_update IS 'Date of the last modif COMMENT ON COLUMN pgmetadata.dataset.themes IS 'List of themes'; +-- dataset.license_attribution +COMMENT ON COLUMN pgmetadata.dataset.license_attribution IS 'Attribution, e.g. giving credit for CC-by license, name of licensor, or license number'; + + -- dataset_contact COMMENT ON TABLE pgmetadata.dataset_contact IS 'Pivot table between dataset and contacts.'; diff --git a/pg_metadata/install/sql/upgrade/upgrade_to_1.3.0.sql b/pg_metadata/install/sql/upgrade/upgrade_to_1.3.0.sql index 6090fdbc..e55da539 100644 --- a/pg_metadata/install/sql/upgrade/upgrade_to_1.3.0.sql +++ b/pg_metadata/install/sql/upgrade/upgrade_to_1.3.0.sql @@ -120,6 +120,8 @@ DROP TABLE pgmetadata.t_glossary; ALTER TABLE pgmetadata.dataset ADD COLUMN IF NOT EXISTS license_attribution text; +COMMENT ON COLUMN pgmetadata.dataset.license_attribution IS 'Attribution, e.g. giving credit for CC-by license, name of licensor, or license number'; + CREATE OR REPLACE VIEW pgmetadata.v_dataset AS WITH glossary AS ( SELECT COALESCE(current_setting('pgmetadata.locale'::text, true), 'en'::text) AS locale,