aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-21 07:58:28 +0300
committerninioe <ninioe@gmail.com>2016-07-21 07:58:28 +0300
commit2e7987b5df7611299aa76bcc9eca3424ce31d204 (patch)
treec7314d97562365d2cf1fa67f707ee0a250aa3b42 /debug.xml
parent19d51272931f92c5c8a139e8aa8f9aa0314f6c61 (diff)
downloadtrackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.gz
trackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.bz2
trackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.zip
protect Device positionId on clear history
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.xml b/debug.xml
index 19e81db07..346eda292 100644
--- a/debug.xml
+++ b/debug.xml
@@ -324,7 +324,7 @@
</entry>
<entry key='database.clearPositionsHistory'>
- DELETE FROM positions WHERE deviceid = :deviceId and servertime &lt; :serverTime;
+ DELETE FROM positions WHERE id != :positionId and deviceid = :deviceId and servertime &lt; :serverTime;
</entry>
<!-- PROTOCOL CONFIG -->