diff options
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 < :serverTime; + <entry key='database.deletePositions'> + DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices); </entry> <!-- PROTOCOL CONFIG --> |