CreatePointTransactionsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 11 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreatePointTransactionsTable extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('point_transactions', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->text('message');
13
            $table->morphs('pointable');
14
            $table->double('amount');
15
            $table->double('current');
16
            $table->timestamps();
17
        });
18
    }
19
20
    public function down()
21
    {
22
        Schema::dropIfExists('point_transactions');
23
    }
24
}
25