CreateInstamojoRefundTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 20
dl 0
loc 38
rs 10
c 1
b 1
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 20 1
A down() 0 3 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateInstamojoRefundTable extends Migration
8
{
9
    /**
10
    * Run the migrations.
11
    *
12
    * @return void
13
    */
14
    public function up()
15
    {
16
        Schema::create('instamojo_refund', function (Blueprint $table) {
17
            $table->engine = 'InnoDB';
18
            $table->charset = 'utf8mb4';
19
            $table->collation = 'utf8mb4_unicode_ci';
20
            $table->increments('id');
21
            $table->integer('user_id')->unsigned();
22
            $table->foreign('user_id')->references('id')->on('users');
23
            $table->string('refund_id');
24
            $table->string('payment_id');
25
            $table->string('status');
26
            $table->string('type');
27
            $table->string('body');
28
            $table->string('refund_amount');
29
            $table->string('total_amount');
30
            $table->integer('created_by');
31
            $table->integer('updated_by')->nullable();
32
            $table->dateTime('deleted_at')->nullable();
33
            $table->timestamps();
34
        });
35
    }
36
37
    /**
38
    * Reverse the migrations.
39
    *
40
    * @return void
41
    */
42
    public function down()
43
    {
44
        Schema::dropIfExists('instamojo_refund');
45
    }
46
}
47