hotfix: dossier template level dossier_redactions #385
@ -1,30 +1,11 @@
|
|||||||
INSERT INTO migrationtestsyngentacpeu.entity (id, add_to_dictionary_action, description, dossier_id, dossier_template_id, hex_color, is_case_insensitive, is_hint,
|
INSERT INTO entity (id, add_to_dictionary_action, description, dossier_id, dossier_template_id, hex_color, is_case_insensitive, is_hint, is_recommendation,
|
||||||
is_recommendation,
|
|
||||||
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, skipped_hex_color,
|
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, skipped_hex_color,
|
||||||
dossier_dictionary_only)
|
dossier_dictionary_only)
|
||||||
SELECT distinct trim(trailing ':' from trim(trailing e.dossier_id from e.id)),
|
SELECT distinct trim(trailing ':' from trim(trailing e.dossier_id from e.id)), TRUE, 'Entries in this dictionary will only be redacted in this dossier', NULL, e.dossier_template_id, '#9398a0', false, false, false,
|
||||||
TRUE,
|
'Dossier Redaction', 1500, 'dossier_redaction', 1, '#8df06c', true, true, false, '#C498FA',
|
||||||
'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 migrationtestsyngentacpeu.entity e
|
FROM entity e
|
||||||
WHERE (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))) IS NOT NULL
|
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 AND NOT EXISTS (SELECT 1 FROM entity ee WHERE ee.id =
|
||||||
AND (SELECT substr(e.id, POSITION(':' IN e.id) + POSITION(':' IN substr(e.id, POSITION(':' IN e.id) + 1)) + 1)) = '' IS FALSE
|
|
||||||
AND NOT EXISTS (SELECT 1
|
trim(trailing ':' from trim(trailing e.dossier_id from e.id))
|
||||||
FROM migrationtestsyngentacpeu.entity ee
|
);
|
||||||
WHERE ee.id =
|
|
||||||
trim(trailing ':' from trim(trailing e.dossier_id from e.id));
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user