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

CreatePullRequestsHasCommitsTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreatePullRequestsHasCommitsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     */
11
    public function up()
12
    {
13
        Schema::create('pull_requests_has_commits', function (Blueprint $table) {
14
            $table->increments('id');
15
            $table->integer('pull_request_id')->unsigned()->nullable()->index('fk_pull_requests_has_commits_pull_request_id_idx');
16
            $table->integer('commit_id')->unsigned()->nullable()->index('fk_pull_requests_has_commits_commit_id_idx');
17
            $table->timestamps();
18
            $table->softDeletes();
19
        });
20
    }
21
22
    /**
23
     * Reverse the migrations.
24
     */
25
    public function down()
26
    {
27
        Schema::drop('pull_requests_has_commits');
28
    }
29
}
30