Fix IncidentTableSeeder

This commit is contained in:
James Brooks
2015-06-16 08:25:48 +01:00
parent 90b2fe51f8
commit 5a8f0b3145
+4 -2
View File
@@ -20,8 +20,6 @@ class IncidentTableSeeder extends Seeder
*/ */
public function run() public function run()
{ {
Model::unguard();
$defaultIncidents = [ $defaultIncidents = [
[ [
'name' => 'Awesome', 'name' => 'Awesome',
@@ -29,6 +27,7 @@ class IncidentTableSeeder extends Seeder
'status' => 4, 'status' => 4,
'component_id' => 0, 'component_id' => 0,
'scheduled_at' => null, 'scheduled_at' => null,
'visible' => 1,
], ],
[ [
'name' => 'Monitoring the fix', 'name' => 'Monitoring the fix',
@@ -36,6 +35,7 @@ class IncidentTableSeeder extends Seeder
'status' => 3, 'status' => 3,
'component_id' => 0, 'component_id' => 0,
'scheduled_at' => null, 'scheduled_at' => null,
'visible' => 1,
], ],
[ [
'name' => 'Update', 'name' => 'Update',
@@ -43,12 +43,14 @@ class IncidentTableSeeder extends Seeder
'status' => 2, 'status' => 2,
'component_id' => 0, 'component_id' => 0,
'scheduled_at' => null, 'scheduled_at' => null,
'visible' => 1,
], ],
[ [
'name' => 'Test Incident', 'name' => 'Test Incident',
'message' => 'Something went wrong, oh noes.', 'message' => 'Something went wrong, oh noes.',
'component_id' => 0, 'component_id' => 0,
'scheduled_at' => null, 'scheduled_at' => null,
'visible' => 1,
], ],
]; ];