From b28bcce5f1ec81698c8e718cbcf6ab13915fc672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Roncs=C3=A1k?= Date: Mon, 23 Feb 2015 11:50:49 +0100 Subject: [PATCH] Revert "Enhance further install without dummy data" This reverts commit 7d7059504e63091661ca2b9f6342807f09cfb4f6. --- app/commands/AppCommand.php | 8 +- app/database/seeds/StatuslabelsSeeder.php | 112 +++++++++++----------- 2 files changed, 58 insertions(+), 62 deletions(-) diff --git a/app/commands/AppCommand.php b/app/commands/AppCommand.php index 57a08e9890..9c47fb10b2 100755 --- a/app/commands/AppCommand.php +++ b/app/commands/AppCommand.php @@ -100,16 +100,12 @@ class AppCommand extends Command // Seed the tables with dummy data if( $this->dummyData === true ) { - $this->call('db:seed', array('--force'=>true)); + $this->call('db:seed'); } else { // Seeding Settings table is mandatory - $this->call('db:seed', array('--class' => 'SettingsSeeder', '--force'=>true)); - // Seeding Statuslabels is strongly recommended - $this->call('db:seed', array('--class' => 'StatuslabelsSeeder', '--force'=>true)); - // Seeding Categories is good to have - $this->call('db:seed', array('--class' => 'CategoriesSeeder', '--force'=>true)); + $this->call('db:seed', array('--class' => 'SettingsSeeder')); } } diff --git a/app/database/seeds/StatuslabelsSeeder.php b/app/database/seeds/StatuslabelsSeeder.php index c60c71a48d..5ec3bf2cd8 100755 --- a/app/database/seeds/StatuslabelsSeeder.php +++ b/app/database/seeds/StatuslabelsSeeder.php @@ -11,90 +11,90 @@ class StatuslabelsSeeder extends Seeder $date = new DateTime; $status[] = array( - 'name' => 'Ready to Deploy', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Ready to Deploy', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 1, - 'pending' => 0, - 'archived' => 0, - 'notes' => '' + 'pending' => 0, + 'archived' => 0, + 'notes' => '' ); $status[] = array( - 'name' => 'Pending', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Pending', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 1, - 'archived' => 0, - 'notes' => '' + 'pending' => 1, + 'archived' => 0, + 'notes' => '' ); $status[] = array( - 'name' => 'Archived', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Archived', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 0, - 'archived' => 1, - 'notes' => 'These assets are permanently undeployable' + 'pending' => 0, + 'archived' => 1, + 'notes' => 'These assets are permanently undeployable' ); $status[] = array( - 'name' => 'Out for Diagnostics', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Out for Diagnostics', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 0, - 'archived' => 0, - 'notes' => '' + 'pending' => 0, + 'archived' => 0, + 'notes' => '' ); $status[] = array( - 'name' => 'Out for Repair', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Out for Repair', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 0, - 'archived' => 0, - 'notes' => '' + 'pending' => 0, + 'archived' => 0, + 'notes' => '' ); $status[] = array( - 'name' => 'Broken - Not Fixable', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Broken - Not Fixable', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 0, - 'archived' => 1, - 'notes' => '' + 'pending' => 0, + 'archived' => 1, + 'notes' => '' ); $status[] = array( - 'name' => 'Lost/Stolen', - 'created_at' => $date->modify('-10 day'), - 'updated_at' => $date->modify('-3 day'), - 'user_id' => 1, - 'deleted_at' => NULL, + 'name' => 'Lost/Stolen', + 'created_at' => $date->modify('-10 day'), + 'updated_at' => $date->modify('-3 day'), + 'user_id' => 1, + 'deleted_at' => NULL, 'deployable' => 0, - 'pending' => 0, - 'archived' => 1, - 'notes' => '', + 'pending' => 0, + 'archived' => 1, + 'notes' => '', );