aboutsummaryrefslogtreecommitdiff
path: root/setup/unix
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-17 23:29:36 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-17 23:29:36 +1200
commit46a264c791a6ea7b8056e642a8aede9ba1c2a27b (patch)
treec5e5639b1c2c6974c25d12c64e594afb18f8839f /setup/unix
parent53183f4299b523df929d3b38fa358df6c78b4c2e (diff)
downloadtrackermap-server-46a264c791a6ea7b8056e642a8aede9ba1c2a27b.tar.gz
trackermap-server-46a264c791a6ea7b8056e642a8aede9ba1c2a27b.tar.bz2
trackermap-server-46a264c791a6ea7b8056e642a8aede9ba1c2a27b.zip
Update release config files again
Diffstat (limited to 'setup/unix')
-rw-r--r--setup/unix/traccar.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml
index 39519890d..2ddf6551f 100644
--- a/setup/unix/traccar.xml
+++ b/setup/unix/traccar.xml
@@ -75,7 +75,8 @@
speedUnit = :speedUnit,
latitude = :latitude,
longitude = :longitude,
- zoom = :zoom
+ zoom = :zoom,
+ twelveHourFormat = :twelveHourFormat
WHERE id = :id;
</entry>
@@ -87,24 +88,24 @@
DELETE FROM users WHERE id = :id;
</entry>
- <entry key='database.getPermissionsAll'>
+ <entry key='database.selectDevicePermissions'>
SELECT userId, deviceId FROM user_device;
</entry>
- <entry key='database.selectDevicesAll'>
- SELECT * FROM devices;
+ <entry key='database.selectGroupPermissions'>
+ SELECT userId, groupId FROM user_group;
</entry>
- <entry key='database.selectDevices'>
- SELECT * FROM devices d INNER JOIN user_device ud ON d.id = ud.deviceId WHERE ud.userId = :userId;
+ <entry key='database.selectDevicesAll'>
+ SELECT * FROM devices;
</entry>
<entry key='database.insertDevice'>
- INSERT INTO devices (name, uniqueId) VALUES (:name, :uniqueId);
+ INSERT INTO devices (name, uniqueId, groupId) VALUES (:name, :uniqueId, :groupId);
</entry>
<entry key='database.updateDevice'>
- UPDATE devices SET name = :name, uniqueId = :uniqueId WHERE id = :id;
+ UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId WHERE id = :id;
</entry>
<entry key='database.updateDeviceStatus'>