Commit 339cffbd authored by Siiri Tann's avatar Siiri Tann
Browse files

Merge branch 'TEIS-2180-2' into 'develop'

TEIS-2180: classifierDefinition fix

Closes TEIS-2180

See merge request teis/classifiers-service!93
parents 7727d40e 345f5980
--liquibase formatted sql
--changeset siiri:2021-05-31.TEIS-2180.add-classifier-definitions-and-classifier-items.sql
--changeset siiri:2021-06-01.TEIS-2180.add-classifier-definitions-and-classifier-items.sql
DELETE FROM classifier_definition WHERE id = 'ACCIDENT_STATUS';
DELETE FROM classifier_definition WHERE id = 'ACCIDENT_INVESTIGATION_STATUS';
......@@ -8,8 +8,8 @@ DELETE FROM classifier_item WHERE classifier_definition_id = 'ACCIDENT_STATUS';
DELETE FROM classifier_item WHERE classifier_definition_id = 'ACCIDENT_INVESTIGATION_STATUS';
INSERT INTO classifier_definition (id, default_value, name, editable, hierarchical, ordered, object_status, created_at) VALUES
('ACCIDENT_STATUS', 'ACCIDENT_STATUS__PENDING', 'Tööõnnetuse menetlemise staatus', false, false, true, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS', 'ACCIDENT_INVESTIGATION_STATUS__UNSPECIFIED', 'Tööõnnetusega seotud TI uurimise staatus', false, false, true, 'CURRENT', now());
('ACCIDENT_STATUS', 'PENDING', 'Tööõnnetuse menetlemise staatus', false, false, true, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS', 'UNSPECIFIED', 'Tööõnnetusega seotud TI uurimise staatus', false, false, true, 'CURRENT', now());
INSERT INTO classifier_item (id, code, classifier_definition_id, upper_classifier_item_id, name, seq_no, editable, valid_from, valid_until, object_status, created_at) VALUES
('ACCIDENT_STATUS__PENDING', 'PENDING', 'ACCIDENT_STATUS', null, 'Registreerimisel', 1, false, now(), null, 'CURRENT', now()),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment