Reject user bank slip with reason. Add migration for userbankslip.

This commit is contained in:
Too
2018-06-18 18:57:27 +08:00
parent 50492ef1a3
commit 012fef948e
4 changed files with 78 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRejectUserBankSlipTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('user_bank_slips', function (Blueprint $table) {
$table->boolean('is_reject')->default('0');
$table->string('reject_reason')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
if (Schema::hasColumn('user_bank_slips', 'is_reject')) {
Schema::table('user_bank_slips', function (Blueprint $table) {
// $table->dropColumn('is_reject');
// $table->dropColumn('reject_reason');
});
}
}
}