Browse Source

[server] Tweak measurement data properties

pull/26/head
Starbeamrainbowlabs 4 years ago
parent
commit
aa88da0617
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 4
      logic/Repositories/MariaDBMeasurementDataRepository.php

4
logic/Repositories/MariaDBMeasurementDataRepository.php

@ -54,7 +54,9 @@ class MariaDBMeasurementDataRepository implements IMeasurementDataRepository { @@ -54,7 +54,9 @@ class MariaDBMeasurementDataRepository implements IMeasurementDataRepository {
$o = $this->get_static_extra;
return $this->database->query(
"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")},
COALESCE(
{$s("table_name_metadata")}.{$s("column_metadata_recordedon")},

Loading…
Cancel
Save