<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateBixoPaymentRefundsTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: bixo_payment_refunds */ Schema::create('bixo_payment_refunds', function ($table) { $table->increments('id'); $table->package::package.fieldtype.INT('payment_id')->nullable(); $table->package::package.fieldtype.DECIMAL('refund_amount')->nullable(); $table->package::package.fieldtype.TIMESTAMP('refund_date')->nullable(); $table->package::package.fieldtype.TEXT('reason')->nullable(); $table->package::package.fieldtype.ENUM('status')->nullable(); $table->text('marking', 200)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('bixo_payment_refunds'); } }