Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

CreateNewsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 20 1
A down() 0 3 1
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateNewsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        \Schema::create('news', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('title');
18
            $table->string('slug');
19
            $table->longText('content');
20
            $table->unsignedInteger('category');
21
            $table->tinyInteger('publish');
22
            $table->timestamp('publish_date')->nullable();
23
            $table->timestamp('unpublish_date')->nullable();
24
            $table->timestamp('event_date')->nullable();
25
            $table->unsignedInteger('creator_id');
26
            $table->unsignedInteger('modified_id');
27
            $table->string('alt_text');
28
            $table->string('seo_title');
29
            $table->string('seo_keywords');
30
            $table->string('seo_description');
31
            $table->softDeletes();
32
            $table->timestamps();
33
        });
34
    }
35
36
    /**
37
     * Reverse the migrations.
38
     *
39
     * @return void
40
     */
41
    public function down()
42
    {
43
        \Schema::dropIfExists('news');
44
    }
45
}
46