Commit b1e1730f authored by Siiri Tann's avatar Siiri Tann
Browse files

TEIS-2180: added new classifierDefinitions and classifierItems related to accidents.

parent 20daa687
theGroup=ee.sm.ti.teis
theVersion=1.23.0
theVersion=1.24.0-SNAPSHOT
commonsVersion=1.25.0
officeApiGatewayVersion=1.25.0
schedulerVersion=1.15.0
......
--liquibase formatted sql
--changeset siiri:2021-05-31.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';
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());
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()),
('ACCIDENT_STATUS__IN_PROGRESS', 'IN_PROGRESS', 'ACCIDENT_STATUS', null, 'Tööandja uurimisel', 2, false, now(), null, 'CURRENT', now()),
('ACCIDENT_STATUS__IN_REVIEW', 'IN_REVIEW', 'ACCIDENT_STATUS', null, 'Ülevaatamisel', 3, false, now(), null, 'CURRENT', now()),
('ACCIDENT_STATUS__CONFIRMED', 'CONFIRMED', 'ACCIDENT_STATUS', null, 'Andmed kinnitatud', 4, false, now(), null, 'CURRENT', now()),
('ACCIDENT_STATUS__CANCELED', 'CANCELED', 'ACCIDENT_STATUS', null, 'Tühistatud', 5, false, now(), null, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS__UNSPECIFIED', 'UNSPECIFIED', 'ACCIDENT_INVESTIGATION_STATUS', null, 'Määramata', 1, false, now(), null, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS__IN_DECIDING', 'IN_DECIDING', 'ACCIDENT_INVESTIGATION_STATUS', null, 'Otsustamisel', 2, false, now(), null, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS__NOT_INVESTIGATED', 'NOT_INVESTIGATED', 'ACCIDENT_INVESTIGATION_STATUS', null, 'Ei vaja uurimist', 3, false, now(), null, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS__UNDER_INVESTIGATION', 'UNDER_INVESTIGATION', 'ACCIDENT_INVESTIGATION_STATUS', null, 'Uurimisel', 4, false, now(), null, 'CURRENT', now()),
('ACCIDENT_INVESTIGATION_STATUS__COMPLETED', 'COMPLETED', 'ACCIDENT_INVESTIGATION_STATUS', null, 'Uurimine lõpetatud', 5, false, now(), null, 'CURRENT', now());
UPDATE execution_trigger SET execute = true WHERE id = 'cache-reinitialize';
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