From 3edc573b3cc06ed33598ce2dd97acbc9055c917c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 17 Apr 2016 12:06:20 +1200 Subject: Update release config files --- setup/unix/traccar.xml | 40 ++++++++++++++++++++++++++++++++++------ setup/windows/traccar.xml | 40 ++++++++++++++++++++++++++++++++++------ 2 files changed, 68 insertions(+), 12 deletions(-) (limited to 'setup') diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml index c43fd25fd..39519890d 100644 --- a/setup/unix/traccar.xml +++ b/setup/unix/traccar.xml @@ -37,12 +37,12 @@ map = :map, bingKey = :bingKey, mapUrl = :mapUrl, - language = :language, distanceUnit = :distanceUnit, speedUnit = :speedUnit, latitude = :latitude, longitude = :longitude, - zoom = :zoom + zoom = :zoom, + twelveHourFormat = :twelveHourFormat WHERE id = :id; @@ -61,8 +61,8 @@ - INSERT INTO users (name, email, hashedPassword, salt, admin) - VALUES (:name, :email, :hashedPassword, :salt, :admin); + INSERT INTO users (name, email, hashedPassword, salt, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat) + VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat); @@ -71,7 +71,6 @@ email = :email, admin = :admin, map = :map, - language = :language, distanceUnit = :distanceUnit, speedUnit = :speedUnit, latitude = :latitude, @@ -124,13 +123,37 @@ DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId; + + SELECT * FROM groups; + + + + INSERT INTO groups (name) VALUES (:name); + + + + UPDATE groups SET name = :name, groupId = :groupId WHERE id = :id; + + + + DELETE FROM groups WHERE id = :id; + + + + INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId); + + + + DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId; + + SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime; INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes) - VALUES (:deviceId, :protocol, :now, :time, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes); + VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes); @@ -248,5 +271,10 @@ 5102 5103 5104 + 5105 + 5106 + 5107 + 5108 + 5109 diff --git a/setup/windows/traccar.xml b/setup/windows/traccar.xml index 40b6fe20e..719857e94 100644 --- a/setup/windows/traccar.xml +++ b/setup/windows/traccar.xml @@ -37,12 +37,12 @@ map = :map, bingKey = :bingKey, mapUrl = :mapUrl, - language = :language, distanceUnit = :distanceUnit, speedUnit = :speedUnit, latitude = :latitude, longitude = :longitude, - zoom = :zoom + zoom = :zoom, + twelveHourFormat = :twelveHourFormat WHERE id = :id; @@ -61,8 +61,8 @@ - INSERT INTO users (name, email, hashedPassword, salt, admin) - VALUES (:name, :email, :hashedPassword, :salt, :admin); + INSERT INTO users (name, email, hashedPassword, salt, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat) + VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat); @@ -71,7 +71,6 @@ email = :email, admin = :admin, map = :map, - language = :language, distanceUnit = :distanceUnit, speedUnit = :speedUnit, latitude = :latitude, @@ -124,13 +123,37 @@ DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId; + + SELECT * FROM groups; + + + + INSERT INTO groups (name) VALUES (:name); + + + + UPDATE groups SET name = :name, groupId = :groupId WHERE id = :id; + + + + DELETE FROM groups WHERE id = :id; + + + + INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId); + + + + DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId; + + SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime; INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes) - VALUES (:deviceId, :protocol, :now, :time, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes); + VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes); @@ -248,5 +271,10 @@ 5102 5103 5104 + 5105 + 5106 + 5107 + 5108 + 5109 -- cgit v1.2.3