change account_num data type to string since have to allow user to enter space

This commit is contained in:
Jack Goh
2018-07-30 16:32:04 +08:00
parent cc2539d44c
commit 6dd391544b
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeDatatypeInBookingTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bookings', function (Blueprint $table) {
$table->string('account_num')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bookings', function (Blueprint $table) {
//
});
}
}
@@ -44,6 +44,7 @@
<div class="row upload">
<div class="col">
<el-upload :action="'/api/booking/' + booking_id + '/upload-user-bankslip'"
:show-file-list="false"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:on-error="uploadError"