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

PopulateSkills29November2018::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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