diff --git a/app/commands/AppCommand.php b/app/commands/AppCommand.php index 08c4bad02c..451fef7e30 100755 --- a/app/commands/AppCommand.php +++ b/app/commands/AppCommand.php @@ -300,6 +300,7 @@ class AppCommand extends Command { // Prepare the user data array. $data = array_merge($this->userData, array( 'activated' => 1, + 'manager_id' => NULL, 'permissions' => array( 'admin' => 1, 'user' => 1, @@ -333,6 +334,7 @@ class AppCommand extends Command { 'email' => 'john.doe@example.com', 'password' => 'johndoe', 'activated' => 1, + 'manager_id' => 1, ); // Create the user diff --git a/app/database/migrations/2013_12_12_055218_add_manager_to_users_table.php b/app/database/migrations/2013_12_12_055218_add_manager_to_users_table.php new file mode 100644 index 0000000000..dd30b3692b --- /dev/null +++ b/app/database/migrations/2013_12_12_055218_add_manager_to_users_table.php @@ -0,0 +1,34 @@ +integer('manager_id')->nullable()->default(NULL); + + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function($table) + { + $table->dropColumn('manager_id'); + }); + } + +} \ No newline at end of file