From 51bbcc2a7dccef72051387f032fd45346ae536ad Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 16 Mar 2016 09:26:39 +0000 Subject: [PATCH] Always truncate incident templates --- app/Console/Commands/DemoSeederCommand.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Console/Commands/DemoSeederCommand.php b/app/Console/Commands/DemoSeederCommand.php index ce3d66ed..0fe720e6 100644 --- a/app/Console/Commands/DemoSeederCommand.php +++ b/app/Console/Commands/DemoSeederCommand.php @@ -14,6 +14,7 @@ namespace CachetHQ\Cachet\Console\Commands; use CachetHQ\Cachet\Models\Component; use CachetHQ\Cachet\Models\ComponentGroup; use CachetHQ\Cachet\Models\Incident; +use CachetHQ\Cachet\Models\IncidentTemplate; use CachetHQ\Cachet\Models\Metric; use CachetHQ\Cachet\Models\MetricPoint; use CachetHQ\Cachet\Models\Setting; @@ -62,6 +63,7 @@ class DemoSeederCommand extends Command $this->seedComponentGroups(); $this->seedComponents(); $this->seedIncidents(); + $this->seedIncidentTemplates(); $this->seedMetricPoints(); $this->seedMetrics(); $this->seedSettings(); @@ -207,6 +209,16 @@ class DemoSeederCommand extends Command } } + /** + * Seed the incident templates table. + * + * @return void + */ + protected function seedIncidentTemplates() + { + IncidentTemplate::truncate(); + } + /** * Seed the metric points table. *