for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateInstamojoRefundTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('instamojo_refund', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');
$table->string('refund_id');
$table->string('payment_id');
$table->string('status');
$table->string('type');
$table->string('body');
$table->string('refund_amount');
$table->string('total_amount');
$table->integer('created_by');
$table->integer('updated_by')->nullable();
$table->dateTime('deleted_at')->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('instamojo_refund');