Skip to content
Snippets Groups Projects
Commit e834cc26 authored by Sabine Schröder's avatar Sabine Schröder
Browse files

#17: added controlled vocabulary for changelog tables

parent 0a0b88e3
No related branches found
No related tags found
No related merge requests found
Pipeline #46990 passed
......@@ -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
-- ==========
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment