Skip to content

Commit

Permalink
Comment on license_attribution field
Browse files Browse the repository at this point in the history
  • Loading branch information
effjot committed Dec 22, 2023
1 parent 14247d1 commit 173f7d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pg_metadata/install/sql/pgmetadata/70_COMMENT.sql
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ COMMENT ON COLUMN pgmetadata.dataset.publication_frequency IS 'Frequency of publ
COMMENT ON COLUMN pgmetadata.dataset.license IS 'License. E.g. Public domain';


-- 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.confidentiality
COMMENT ON COLUMN pgmetadata.dataset.confidentiality IS 'Confidentiality of the data.';

Expand Down
2 changes: 2 additions & 0 deletions pg_metadata/install/sql/upgrade/upgrade_to_1.3.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 173f7d6

Please sign in to comment.