diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-18 23:26:48 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 23:26:48 +1200 |
commit | 464711d63dafb44e89f3d4112f13250f268c11cd (patch) | |
tree | e4342fb8dd0f743fad8060ca1029504410ce4c21 /setup | |
parent | d3e063cf9de8a45bed4dfe87b73aadfd8d2edeab (diff) | |
parent | bbfe8e8c328a660b8bdcdf089a8cd798cbbc5f2d (diff) | |
download | traccar-server-464711d63dafb44e89f3d4112f13250f268c11cd.tar.gz traccar-server-464711d63dafb44e89f3d4112f13250f268c11cd.tar.bz2 traccar-server-464711d63dafb44e89f3d4112f13250f268c11cd.zip |
Merge pull request #2123 from Abyss777/device_attributes
Add attributes for devices
Diffstat (limited to 'setup')
-rw-r--r-- | setup/unix/traccar.xml | 4 | ||||
-rw-r--r-- | setup/windows/traccar.xml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml index 8a119f35a..e8b29a296 100644 --- a/setup/unix/traccar.xml +++ b/setup/unix/traccar.xml @@ -111,11 +111,11 @@ </entry> <entry key='database.insertDevice'> - INSERT INTO devices (name, uniqueId, groupId) VALUES (:name, :uniqueId, :groupId); + INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes); </entry> <entry key='database.updateDevice'> - UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId WHERE id = :id; + UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId, attributes = :attributes WHERE id = :id; </entry> <entry key='database.updateDeviceStatus'> diff --git a/setup/windows/traccar.xml b/setup/windows/traccar.xml index 049034b01..6220263ef 100644 --- a/setup/windows/traccar.xml +++ b/setup/windows/traccar.xml @@ -111,11 +111,11 @@ </entry>
<entry key='database.insertDevice'>
- INSERT INTO devices (name, uniqueId, groupId) VALUES (:name, :uniqueId, :groupId);
+ INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes);
</entry>
<entry key='database.updateDevice'>
- UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId WHERE id = :id;
+ UPDATE devices SET name = :name, uniqueId = :uniqueId, groupId = :groupId, attributes = :attributes WHERE id = :id;
</entry>
<entry key='database.updateDeviceStatus'>
|