Added seeds for projects table.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class TestProjectsTableSeeder extends Seeder
|
||||
{
|
||||
@@ -11,6 +12,55 @@ class TestProjectsTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//
|
||||
// Projects
|
||||
DB::table('projects')->insert([
|
||||
// Closed
|
||||
[
|
||||
'name' => 'Wintersemester 2014',
|
||||
'start_date' => '2014-09-01',
|
||||
'end_date' => '2015-02-28'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'name' => 'Sommersemester 2015',
|
||||
'start_date' => '2015-03-01',
|
||||
'end_date' => '2015-08-31'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
|
||||
// Active
|
||||
[
|
||||
'name' => 'Wintersemester 2018',
|
||||
'start_date' => '2018-09-01',
|
||||
'end_date' => '2019-02-28'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'name' => 'Projekt WiSe 2018',
|
||||
'start_date' => '2018-09-10',
|
||||
'end_date' => '2018-12-31'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
|
||||
// Upcoming
|
||||
[
|
||||
'name' => 'Sommersemester 2019',
|
||||
'start_date' => '2019-03-01',
|
||||
'end_date' => '2019-08-31'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
],
|
||||
[
|
||||
'name' => 'Projekt SoSe 2019',
|
||||
'start_date' => '2019-05-01',
|
||||
'end_date' => '2019-05-31'
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user