Passed
Push — master ( 216e85...786672 )
by Nasrul Hazim
03:34
created

CreateCountriesTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateCountriesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up()
13
    {
14
        Schema::create('countries', function (Blueprint $table) {
15
            $table->increments('id');
16
            $table->string('code');
17
            $table->label();
18
            $table->name();
19
            $table->timestamps();
20
        });
21
    }
22
23
    /**
24
     * Reverse the migrations.
25
     */
26
    public function down()
27
    {
28
        Schema::dropIfExists('countries');
29
    }
30
}
31