Add event action storage. Closes #2344

This commit is contained in:
James Brooks
2017-02-03 22:34:13 +00:00
parent c2790e29cc
commit 3dc154dff1
92 changed files with 1512 additions and 128 deletions

View File

@@ -11,6 +11,7 @@
namespace CachetHQ\Cachet\Console\Commands;
use CachetHQ\Cachet\Models\Action;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\ComponentGroup;
use CachetHQ\Cachet\Models\Incident;
@@ -84,6 +85,7 @@ class DemoSeederCommand extends Command
return;
}
$this->seedActions();
$this->seedComponentGroups();
$this->seedComponents();
$this->seedIncidents();
@@ -98,6 +100,16 @@ class DemoSeederCommand extends Command
$this->info('Database seeded with demo data successfully!');
}
/**
* Seed the actions table.
*
* @return void
*/
protected function seedActions()
{
Action::truncate();
}
/**
* Seed the component groups table.
*