Fix machines<->items mapping for Sw/Sh
They were cyclically off by one, so e.g. machine 0 mapped to tm01, machine 99 wrapped around to tm00, machine 100 mapped to tr01, and machine 199 mapped to tr00. The moves seem to be right though. update machines m set item_id = (select item_id from machines m2 where m2.machine_number = (m.machine_number+99) % 100 + case when m.machine_number >= 100 then 100 else 0 end and version_group_id = 20) where version_group_id = 20;
This commit is contained in:
parent
dcda895e22
commit
6d81374fb1