This will help implement device groups in V2.
This will add some overhead when polling and save some overhead when getting groups.
*This changes the output of GetDevicesFromGroup() to be just an array of ids, but I had to add a compatibility option for the API. This could be removed if we want to change the API output.
Store device group relationships in a pivot table.
Think the sql file needs to have all queries to be on one line rather than multi line as it reads the file in and loops through it.
SQL query on one line
+1 from me, I don't extensively use groups but it works for me.
@librenms/reviewers anyone else care to test before we merge in 48 hours.