diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-22 17:51:23 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-22 17:51:23 +1200 |
commit | 05cb432d786e3e4248b54dc47d457ebf9e33ba62 (patch) | |
tree | 2534c50504dc2282417b5d14567155977d0c32fb /debug.xml | |
parent | 55ee0b56cd1f668711b9ffc82e7d90961435b42f (diff) | |
parent | c8816bdd85d62fb767795b2dc4d31326fdad9cd5 (diff) | |
download | trackermap-server-05cb432d786e3e4248b54dc47d457ebf9e33ba62.tar.gz trackermap-server-05cb432d786e3e4248b54dc47d457ebf9e33ba62.tar.bz2 trackermap-server-05cb432d786e3e4248b54dc47d457ebf9e33ba62.zip |
Merge pull request #2354 from Abyss777/device_attribute_aliases
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 attribute_aliases; + </entry> + + <entry key='database.insertAttributeAlias'> + INSERT INTO attribute_aliases (deviceId, attribute, alias) + VALUES (:deviceId, :attribute, :alias); + </entry> + + <entry key='database.updateAttributeAlias'> + UPDATE attribute_aliases SET + deviceId = :deviceId, + attribute = :attribute, + alias = :alias + WHERE id = :id; + </entry> + + <entry key='database.deleteAttributeAlias'> + DELETE FROM attribute_aliases WHERE id = :id; + </entry> <!-- PROTOCOL CONFIG --> |