Added some test persons and member-states to the seeders.

This commit is contained in:
Lukas Halbritter
2018-09-11 11:04:57 +02:00
parent 3860b5b187
commit f59ee5247a
2 changed files with 38 additions and 2 deletions
@@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class TestMemberStatesTableSeeder extends Seeder
{
@@ -11,6 +12,28 @@ class TestMemberStatesTableSeeder extends Seeder
*/
public function run()
{
//
DB::table('member_states')->insert([
[
'person_id' => 1,
'joining_date' => '2014-9-22',
'leaving_date' => '2014-12-31',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'person_id' => 1,
'joining_date' => '2015-1-1',
'leaving_date' => null,
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'person_id' => 2,
'joining_date' => '2014-9-22',
'leaving_date' => null,
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}