[server] Tweak measurement data properties

This commit is contained in:
Starbeamrainbowlabs 2019-01-17 17:02:22 +00:00
parent 3a62ef08d9
commit aa88da0617
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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")},