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 CreateMpesaC2bCallbacksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create(
'mpesa_c2b_callbacks',
function (Blueprint $table) {
$table->increments('id');
$table->string('TransactionType');
$table->string('TransID')->unique();
$table->string('TransTime');
$table->double('TransAmount', 10, 2);
$table->integer('BusinessShortCode');
$table->string('BillRefNumber');
$table->string('InvoiceNumber')->nullable();
$table->string('ThirdPartyTransID')->nullable();
$table->double('OrgAccountBalance', 10, 2);
$table->string('MSISDN');
$table->string('FirstName')->nullable();
$table->string('MiddleName')->nullable();
$table->string('LastName')->nullable();
$table->timestamps();
}
);
* Reverse the migrations.
public function down()
Schema::dropIfExists('mpesa_c2b_callbacks');