From e834cc268b04ead6f82a2371fa07aa46e50b3ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabine=20Schr=C3=B6der?= <s.schroeder@fz-juelich.de> Date: Tue, 29 Sep 2020 21:33:32 +0200 Subject: [PATCH] #17: added controlled vocabulary for changelog tables --- .../toar_controlled_vocabulary--0.1.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/extension/toar_controlled_vocabulary-0.1/toar_controlled_vocabulary--0.1.sql b/extension/toar_controlled_vocabulary-0.1/toar_controlled_vocabulary--0.1.sql index 9f8be9d..7c95559 100644 --- a/extension/toar_controlled_vocabulary-0.1/toar_controlled_vocabulary--0.1.sql +++ b/extension/toar_controlled_vocabulary-0.1/toar_controlled_vocabulary--0.1.sql @@ -69,6 +69,29 @@ INSERT INTO OK_vocabulary (enum_val, enum_str, enum_display_str) VALUES (6, 'Individual', 'individual'), (7, 'Other', 'other'); +-- Changelogs +-- ========== + +-- Type of Change + +CREATE TABLE IF NOT EXISTS CL_vocabulary ( + enum_val INT NOT NULL, + enum_str character varying(128) NOT NULL, + enum_display_str character varying(128) NOT NULL, + PRIMARY KEY(enum_val, enum_str), + CONSTRAINT cl_enum_val_unique UNIQUE (enum_val) +); + +INSERT INTO CL_vocabulary (enum_val, enum_str, enum_display_str) VALUES + (0, 'Created', 'created'), + (1, 'SingleValue', 'single value correction in metadata'), + (2, 'Comprehensive', 'comprehensive metadata revision'), + (3, 'Typo', 'typographic correction of metadata'), + (4, 'UnspecifiedData', 'unspecified data value corrections'), + (5, 'Replaced', 'replaced data with a new version'), + (6, 'Flagging', 'data value flagging'); + + -- Timeseries -- ========== -- GitLab