MigrationHelper::defaultColumns()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 13
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 14
c 0
b 0
f 0
ccs 13
cts 13
cp 1
rs 9.8666
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace GDCInfo;
4
5
use Illuminate\Database\Schema\Blueprint;
6
7
class MigrationHelper
8
{
9 8
    public static function defaultColumns(Blueprint $table)
10
    {
11 8
        $table->unsignedBigInteger('gdc');
12 8
        $table->string('first_name')->nullable()->index();
13 8
        $table->string('last_name')->nullable()->index();
14 8
        $table->string('status')->nullable()->index();
15 8
        $table->string('registrant_type')->nullable()->index();
16 8
        $table->text('qualifications')->nullable();
17 8
        $table->date('first_registered_on')->nullable();
18 8
        $table->date('current_period_from')->nullable();
19 8
        $table->date('current_period_until')->nullable();
20 8
        $table->json('data')->nullable();
21 8
        $table->dateTime('last_fetched_at');
22 8
        $table->timestamps();
23
    }
24
}
25