CreateDuckFunkPagesTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 18 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateDuckFunkPagesTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('duck_funk_pages', function (Blueprint $table) {
12
            $table->bigIncrements('id');
13
            $table->string('title', 255)->nullable(false);
14
            $table->string('slug', 255)->nullable(false);
15
            $table->string('route', 255)->nullable(false);
16
            $table->string('meta_title', 255)->nullable(false);
17
            $table->string('meta_description', 255)->nullable(false);
18
            $table->unsignedBigInteger('min_rank');
19
            $table->unsignedBigInteger('parent_id');
20
            $table->boolean('active')->default(1)->nullable(false);
21
            $table->boolean('no_robots')->default(0)->nullable(false);
22
            $table->timestamps();
23
            $table->timestamp('published_at')->nullable();
24
            $table->softDeletes();
25
        });
26
    }
27
28
    public function down()
29
    {
30
        Schema::drop('duck_funk_pages');
31
    }
32
}
33