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