Skip to content

Can cause issue if two tracker have the same label #4

Description

@jan-henssler-intland

UPDATE object SET reference_id = (SELECT newlabelId from field_index_fix_log WHERE oldlabelId = fieldIndex) WHERE type_id = 25 AND parent_id = trackerId AND reference_id = fieldIndex;

select NEWLABELID INTO new_field_id from FIELD_INDEX_FIX_LOG where OBJECT_TYPE = 'Field Index Change' AND OLDLABELID = nextField;

Please add the start_tracker_id as an additional attribute. Current query can have double or more results. It is not precise enough
(SELECT newlabelId from field_index_fix_log WHERE oldlabelId = fieldIndex AND tracker_id = start_tracker_id)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions