Lot's of stuff and it may need to be updated again when going to 1.12.8.
My OA is on 1.12.8 right now so the following works on 1.12.8. Probably just skip the system table changes for 1.12.6?
Code:
Select system.id, system.hostname, system.owner, floor(system.memory_count / 1024) As pc_memory, processor.description, system.manufacturer, system.model, system.serial, system.icon, Date(system.last_seen) As last_seen, system.last_seen_by, system.owner, system.os_family, windows.client_site_name, windows.user_name, oa_location.name, monitor.id, monitor.manufacturer, monitor.serial, monitor.model From system Left Join oa_group_sys On system.id = oa_group_sys.system_id Left Join windows On system.id = windows.system_id Left Join processor On processor.system_id = system.id Left Join monitor On monitor.system_id = system.id Left Join oa_location On system.location_id = oa_location.id Where oa_group_sys.group_id = @group And system.type = 'computer' And system.class != 'server' And windows.current = 'y' And processor.current = 'y' And monitor.current = 'y' Order By system.hostname
How to get there via find and replace.
Code:
sys_hw_ -> ""
sys_sw_ -> ""
system.system_id -> system.id
man_ -> ""
system.pc_memory -> system.memory_count
processor.processor_description -> processor.description
windows.windows_ -> windows.
oa_location.location_ -> oa_location.
monitor.monitor_ -> monitor.
timestamp -> last_seen
Remove timestamp = timestamp from where clause and replace with table.current = y