Add event action storage. Closes #2344
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user