Commit 345f5980 authored by Siiri's avatar Siiri
Browse files

TEIS-2180: classifierDefinition fix

parent 7727d40e
--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