aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDocNielsen <docnielsen@gmail.com>2012-11-01 13:28:35 +0100
committerDocNielsen <docnielsen@gmail.com>2012-11-01 13:28:35 +0100
commitc8368a9854d79f8358f9b071c98ba72c972bc78d (patch)
treebf52d2291716edc78b6b37fa16005299bd65b06e
parentf168056e4b5d6e04523d05acfec4c526d309c260 (diff)
downloadtraccar-server-c8368a9854d79f8358f9b071c98ba72c972bc78d.tar.gz
traccar-server-c8368a9854d79f8358f9b071c98ba72c972bc78d.tar.bz2
traccar-server-c8368a9854d79f8358f9b071c98ba72c972bc78d.zip
Update setup/linux/linux.cfg
get positions from sql with the newest on top.
-rw-r--r--setup/linux/linux.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup/linux/linux.cfg b/setup/linux/linux.cfg
index 63d6be2ef..b11fc209b 100644
--- a/setup/linux/linux.cfg
+++ b/setup/linux/linux.cfg
@@ -51,7 +51,8 @@
<-->
<entry key="database.deleteDevice">
DELETE FROM devices
- WHERE id = :id;
+ WHERE id = :id
+ ORDER by time DESC;
</entry>
<!-->