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 9f8be9d86a34aea28f5cd748446771a6605aca3f..7c955595996d35a2828c2b3d069b0a9b259128ee 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 -- ==========