CreateOrganizationsTable::down()   A
last analyzed

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 CreateOrganizationsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     */
11
    public function up()
12
    {
13
        Schema::create('organizations', function (Blueprint $table) {
14
            $table->increments('id');
15
            $table->bigInteger('github_id')->unsigned()->nullable()->unique();
16
            $table->string('username')->nullable()->index('login');
17
            $table->string('url')->nullable();
18
            $table->string('repos_url')->nullable();
19
            $table->string('events_url')->nullable();
20
            $table->string('hooks_url')->nullable();
21
            $table->string('issues_url')->nullable();
22
            $table->string('members_url')->nullable();
23
            $table->string('public_members_url')->nullable();
24
            $table->string('avatar_url')->nullable();
25
            $table->string('title')->nullable();
26
            $table->string('description')->nullable();
27
            $table->string('blog')->nullable();
28
            $table->string('location')->nullable();
29
            $table->string('email')->nullable();
30
            $table->string('public_repos')->nullable();
31
            $table->string('html_url')->nullable();
32
            $table->integer('total_private_repos')->unsigned()->nullable();
33
            $table->dateTime('since')->nullable();
34
            $table->integer('disk_usage')->nullable();
35
            $table->timestamps();
36
            $table->softDeletes();
37
        });
38
    }
39
40
    /**
41
     * Reverse the migrations.
42
     */
43
    public function down()
44
    {
45
        Schema::drop('organizations');
46
    }
47
}
48