RED-8561: updated sql query to avoid conflicts with primary key in table entity
This commit is contained in:
parent
96be1ba52e
commit
01f857fcef
@ -5,7 +5,7 @@
|
|||||||
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 entity (id, add_to_dictionary_action, description, dossier_id, dossier_template_id, hex_color, is_case_insensitive, is_hint, is_recommendation,
|
||||||
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, soft_deleted_time, skipped_hex_color,
|
label, rank, type, version, recommendation_hex_color, has_dictionary, system_managed, auto_hide_skipped, soft_deleted_time, skipped_hex_color,
|
||||||
dossier_dictionary_only)
|
dossier_dictionary_only)
|
||||||
SELECT (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))), e.add_to_dictionary_action, e.description, e.dossier_id, e.dossier_template_id, e.hex_color, e.is_case_insensitive, e.is_hint, e.is_recommendation,
|
SELECT (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))), e.add_to_dictionary_action, e.description, NULL, e.dossier_template_id, e.hex_color, e.is_case_insensitive, e.is_hint, e.is_recommendation,
|
||||||
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,
|
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,
|
||||||
e.dossier_dictionary_only
|
e.dossier_dictionary_only
|
||||||
FROM entity e
|
FROM entity e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user