From dcdec686a4e13f9c4ae27a6e01411228ad85b967 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 14 Mar 2019 12:50:43 +0000 Subject: [PATCH] Add device_type_id output as type_id --- Changelog.md | 1 + logic/Repositories/MariaDBDeviceRepository.php | 3 ++- version | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 823176d..1259681 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ ## v0.5.4 - 14th March 2019 - [API] Added device altitude information to `list-devices` and `device-info` actions + - [API] Added device type id property to `list-devices` action ## v0.5.3 - 7th March 2019 - Tweak x axis labels diff --git a/logic/Repositories/MariaDBDeviceRepository.php b/logic/Repositories/MariaDBDeviceRepository.php index b4b23aa..20a1d73 100644 --- a/logic/Repositories/MariaDBDeviceRepository.php +++ b/logic/Repositories/MariaDBDeviceRepository.php @@ -53,7 +53,8 @@ class MariaDBDeviceRepository implements IDeviceRepository { {$s("column_device_name")} AS name, {$s("column_lat")} AS latitude, {$s("column_long")} AS longitude, - {$s("column_altitude")} AS altitude + {$s("column_altitude")} AS altitude, + {$s("column_device_type")} AS type_id FROM {$s("table_name")}"; if($only_with_location) diff --git a/version b/version index 8ea9cc1..cacd6d6 100644 --- a/version +++ b/version @@ -1 +1 @@ -v0.5.4 +v0.5.4.1