Completed
Push — master ( 2d0bf2...b0eeab )
by Renato
20:37 queued 18:12
created

CreateProductBacklogsTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateProductBacklogsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     */
11
    public function up()
12
    {
13
        Schema::create('product_backlogs', function (Blueprint $table) {
14
            $table->increments('id');
15
            $table->integer('user_id')->unsigned()->nullable()->index('fk_product_backlogs_user_id_idx');
16
            $table->bigInteger('github_id')->unsigned()->nullable()->unique('github_id');
17
            $table->integer('organization_id')->unsigned()->nullable()->index('fk_product_backlogs_organization_id_idx');
18
            $table->string('slug', 60)->nullable()->index('repositories_slug');
19
            $table->string('title')->nullable();
20
            $table->text('description', 65535)->nullable();
0 ignored issues
show
Unused Code introduced by
The call to Blueprint::text() has too many arguments starting with 65535.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
21
            $table->string('fullname')->nullable();
22
            $table->boolean('is_private')->nullable();
23
            $table->string('html_url')->nullable();
24
            $table->boolean('fork')->nullable();
25
            $table->string('url')->nullable();
26
            $table->dateTime('since')->nullable();
27
            $table->dateTime('pushed_at')->nullable();
28
            $table->string('git_url')->nullable();
29
            $table->string('ssh_url')->nullable();
30
            $table->string('clone_url')->nullable();
31
            $table->string('homepage')->nullable();
32
            $table->string('default_branch')->nullable();
33
            $table->integer('position')->unsigned()->nullable()->default(0);
34
            $table->timestamps();
35
            $table->softDeletes();
36
        });
37
    }
38
39
    /**
40
     * Reverse the migrations.
41
     */
42
    public function down()
43
    {
44
        Schema::drop('product_backlogs');
45
    }
46
}
47