CreateDuckFunkPagesTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
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 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