From 9d5b2230caa434db5bff773b4ffa980da2adc15c Mon Sep 17 00:00:00 2001 From: Gábor Somogyi Date: Wed, 27 Apr 2016 22:52:15 +0200 Subject: Windows config fix --- setup/windows/traccar.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/windows/traccar.xml b/setup/windows/traccar.xml index bf1b216af..80351325b 100644 --- a/setup/windows/traccar.xml +++ b/setup/windows/traccar.xml @@ -161,6 +161,10 @@ SELECT * FROM positions WHERE id IN (SELECT positionId FROM devices); + + SELECT TOP 1 * FROM positions WHERE deviceId = :deviceId AND protocol IS NOT NULL; + + UPDATE devices SET positionId = :id WHERE id = :deviceId; -- cgit v1.2.3