add logic, test

This commit is contained in:
Nazri
2018-05-30 16:33:11 +08:00
parent 7381252c57
commit cc3ea574f8
5 changed files with 97 additions and 31 deletions
@@ -19,7 +19,6 @@ class CreateUserBankSlipsTable extends Migration
$table->string('bankslip_url')->nullable();
$table->double('transfer_amount')->nullable();
$table->string('cust_marking')->nullable();
$table->boolean('is_approve')->nullable();
$table->integer('book_id')->unsigned();
$table->foreign('book_id')->references('id')->on('bookings');
@@ -14,7 +14,7 @@ class UpdateUploadBookingBankslip extends Migration
public function up()
{
Schema::table('user_bank_slips', function (Blueprint $table) {
$table->boolean('is_approve')->default('false');
$table->boolean('is_approve')->default('0');
});
}
/**