This commit is contained in:
shimon
2023-09-26 12:25:52 +03:00
parent 68efce9a4b
commit c32133073c
+1 -1
View File
@@ -166,7 +166,7 @@ class V20 extends Migration
foreach ($stats as $stat) {
var_dump("{$stat['time']}_{$stat['period']}_{$to}");
$id = \md5("{$stat['time']}_{$stat['period']}_{$to}");
//$stat->setAttribute('$id', $id);
$stat->setAttribute('$id', $id);
$stat->setAttribute('metric', $to);
console::log("updating metric {$from} to {$to}");
$this->projectDB->updateDocument('stats', $stat->getId(), $stat);