MigrationHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 13
dl 0
loc 16
c 0
b 0
f 0
ccs 13
cts 13
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultColumns() 0 14 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