Passed
Branch master (549a47)
by Robert
13:30
created

CreateTagGroupsTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A 2016_06_29_073615_create_tag_groups_table.php$0 ➔ up() 0 6 1
A 2016_06_29_073615_create_tag_groups_table.php$0 ➔ down() 0 3 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
return new class extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('tagging_tag_groups', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->string('slug', 125)->index();
13
            $table->string('name', 125);
14
        });
15
    }
16
17
    public function down()
18
    {
19
        Schema::drop('tagging_tag_groups');
20
    }
21
};
22