Passed
Push — emailfix ( cdbdd1...0d6707 )
by Tristan
09:00
created

PopulateSkills29November2018   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 4
c 1
b 0
f 1
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 4 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class PopulateSkills29November2018 extends Migration
8
{
9
    public function up()
10
    {
11
        DB::table('skills')->insert([
12
            ['id' => 65, 'name' => 'database_design_and_management', 'skill_type_id'=>2],
13
        ]);
14
    }
15
16
    /**
17
     * Reverse the migrations.
18
     *
19
     * @return void
20
     */
21
    public function down()
22
    {
23
        DB::table('skills')->whereIn('id', [65])->delete();
24
    }
25
}
26