Merge branch 'hotfix_dossier_redaction_4.1' into 'master'
hotfix: Fixed liquibase sql statement to insert missing dossier_redaction... See merge request redactmanager/persistence-service!383
This commit is contained in:
commit
71f760c1e4
@ -1,12 +1,30 @@
|
|||||||
INSERT INTO entity (id, add_to_dictionary_action, description, dossier_id, dossier_template_id, hex_color, is_case_insensitive, is_hint, is_recommendation,
|
INSERT INTO migrationtestsyngentacpeu.entity (id, add_to_dictionary_action, description, dossier_id, dossier_template_id, hex_color, is_case_insensitive, is_hint,
|
||||||
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, soft_deleted_time, skipped_hex_color,
|
is_recommendation,
|
||||||
|
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, skipped_hex_color,
|
||||||
dossier_dictionary_only)
|
dossier_dictionary_only)
|
||||||
SELECT (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))), TRUE, e.description, NULL, e.dossier_template_id, e.hex_color, e.is_case_insensitive, e.is_hint, e.is_recommendation,
|
SELECT distinct trim(trailing ':' from trim(trailing e.dossier_id from e.id)),
|
||||||
e.label, e.rank, e.type, e.version, e.recommendation_hex_color, e.has_dictionary, e.system_managed, e.auto_hide_skipped, e.soft_deleted_time, e.skipped_hex_color,
|
TRUE,
|
||||||
|
'Entries in this dictionary will only be redacted in this dossier',
|
||||||
|
NULL,
|
||||||
|
e.dossier_template_id,
|
||||||
|
'#9398a0',
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'Dossier Redaction',
|
||||||
|
1500,
|
||||||
|
'dossier_redaction',
|
||||||
|
1,
|
||||||
|
'#8df06c',
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'#C498FA',
|
||||||
TRUE
|
TRUE
|
||||||
FROM entity e
|
FROM migrationtestsyngentacpeu.entity e
|
||||||
WHERE (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))) IS NOT NULL AND (SELECT substr(e.id, POSITION(':' IN e.id) + POSITION(':' IN substr(e.id, POSITION(':' IN e.id) + 1)) + 1)) = '' IS FALSE;
|
WHERE (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))) IS NOT NULL
|
||||||
|
AND (SELECT substr(e.id, POSITION(':' IN e.id) + POSITION(':' IN substr(e.id, POSITION(':' IN e.id) + 1)) + 1)) = '' IS FALSE
|
||||||
UPDATE entity
|
AND NOT EXISTS (SELECT 1
|
||||||
SET dossier_dictionary_only = TRUE, add_to_dictionary_action = TRUE
|
FROM migrationtestsyngentacpeu.entity ee
|
||||||
WHERE starts_with(id, (SELECT trim(trailing ':' from trim(trailing dossier_id from id))));
|
WHERE ee.id =
|
||||||
|
trim(trailing ':' from trim(trailing e.dossier_id from e.id));
|
||||||
Loading…
x
Reference in New Issue
Block a user