From 94ea366eb33694447812e6d63133aea28379d6f4 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 18 Jul 2016 11:12:14 +0500 Subject: - Added attributes to devices - Fixed license header for DeviceManager.java - Fixed editing attributes for not saved (new) object. --- setup/windows/traccar.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup/windows') 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 @@ - INSERT INTO devices (name, uniqueId, groupId) VALUES (:name, :uniqueId, :groupId); + INSERT INTO devices (name, uniqueId, groupId, attributes) VALUES (:name, :uniqueId, :groupId, :attributes); - 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; -- cgit v1.2.3