Doh. Factories are dev only.
This commit is contained in:
@@ -25,8 +25,11 @@ class MetricPointSeeder extends Seeder
|
|||||||
for ($i=0; $i < 11; $i++) {
|
for ($i=0; $i < 11; $i++) {
|
||||||
$metricTime = (new DateTime())->sub(new DateInterval('PT'.$i.'H'));
|
$metricTime = (new DateTime())->sub(new DateInterval('PT'.$i.'H'));
|
||||||
|
|
||||||
$pointFactory = factory('CachetHQ\Cachet\Models\MetricPoint');
|
$point = MetricPoint::create([
|
||||||
$point = $pointFactory->create();
|
'metric_id' => 1,
|
||||||
|
'value' => rand(1, 100),
|
||||||
|
'created_at' => $metricTime,
|
||||||
|
]);
|
||||||
|
|
||||||
$point->update([
|
$point->update([
|
||||||
'created_at' => $metricTime,
|
'created_at' => $metricTime,
|
||||||
|
|||||||
Reference in New Issue
Block a user