mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-26 07:02:59 +00:00
[server] Tweak measurement data properties
This commit is contained in:
parent
3a62ef08d9
commit
aa88da0617
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ class MariaDBMeasurementDataRepository implements IMeasurementDataRepository {
|
||||||
$o = $this->get_static_extra;
|
$o = $this->get_static_extra;
|
||||||
return $this->database->query(
|
return $this->database->query(
|
||||||
"SELECT
|
"SELECT
|
||||||
{$s("table_name_values")}.*,
|
{$s("table_name_values")}.{$s("column_values_value")},
|
||||||
|
{$s("table_name_values")}.{$s("column_values_reading_id")},
|
||||||
|
|
||||||
{$s("table_name_metadata")}.{$s("column_metadata_device_id")},
|
{$s("table_name_metadata")}.{$s("column_metadata_device_id")},
|
||||||
COALESCE(
|
COALESCE(
|
||||||
{$s("table_name_metadata")}.{$s("column_metadata_recordedon")},
|
{$s("table_name_metadata")}.{$s("column_metadata_recordedon")},
|
||||||
|
|
Loading…
Reference in a new issue