diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-21 16:27:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-21 16:27:55 +0500 |
commit | baad910016f2f17e6bf89f9d5db17349c4a9a62a (patch) | |
tree | 559c919ea736013ff758d5145082bf9fa65751ac /debug.xml | |
parent | 9ee812366367148387f289b9977fd809e6a56786 (diff) | |
download | trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.tar.gz trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.tar.bz2 trackermap-server-baad910016f2f17e6bf89f9d5db17349c4a9a62a.zip |
Add attributes aliases
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -331,6 +331,27 @@ <entry key='database.deletePositions'> DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices); </entry> + + <entry key='database.selectAttributeAliases'> + SELECT * FROM device_aliases; + </entry> + + <entry key='database.insertAttributeAlias'> + INSERT INTO device_aliases (deviceId, attribute, alias) + VALUES (:deviceId, :attribute, :alias); + </entry> + + <entry key='database.updateAttributeAlias'> + UPDATE device_aliases SET + deviceId = :deviceId, + attribute = :attribute, + alias = :alias + WHERE id = :id; + </entry> + + <entry key='database.deleteAttributeAlias'> + DELETE FROM device_aliases WHERE id = :id; + </entry> <!-- PROTOCOL CONFIG --> |