CreateInstamojoRefundTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 1
f 0
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