aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.xml b/debug.xml
index 346eda292..304ae7f3d 100644
--- a/debug.xml
+++ b/debug.xml
@@ -323,8 +323,8 @@
DELETE FROM notifications WHERE id = :id;
</entry>
- <entry key='database.clearPositionsHistory'>
- DELETE FROM positions WHERE id != :positionId and deviceid = :deviceId and servertime &lt; :serverTime;
+ <entry key='database.deletePositions'>
+ DELETE FROM positions WHERE serverTime &lt; :serverTime AND id NOT IN (SELECT positionId FROM devices);
</entry>
<!-- PROTOCOL CONFIG -->