From 3339ebe1ce76e55cf575d4af77109a597ff2db21 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Thu, 2 Aug 2018 14:26:19 +0800 Subject: [PATCH] make field in china bank slips nullable --- ...ake_nullable_in_china_bank_slips_table.php | 43 +++++++++++++++++++ tests/Feature/ChinaBankSlipTest.php | 1 - 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2018_08_02_141753_make_nullable_in_china_bank_slips_table.php diff --git a/database/migrations/2018_08_02_141753_make_nullable_in_china_bank_slips_table.php b/database/migrations/2018_08_02_141753_make_nullable_in_china_bank_slips_table.php new file mode 100644 index 00000000..ab744439 --- /dev/null +++ b/database/migrations/2018_08_02_141753_make_nullable_in_china_bank_slips_table.php @@ -0,0 +1,43 @@ +string('company_name')->nullable()->change(); + $table->string('bank_name')->nullable()->change(); + $table->string('acc_no')->nullable()->change(); + $table->string('bank_address')->nullable()->change(); + $table->string('swift')->nullable()->change(); + $table->string('cnap')->nullable()->change(); + $table->string('bank_branch')->nullable()->change(); + $table->string('order_id')->nullable()->change(); + $table->decimal('transfer_amount_needed')->nullable()->change(); + $table->decimal('actual_transfer_amount')->nullable()->change(); + $table->string('date')->nullable()->change(); + $table->string('details')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('china_bank_slips', function (Blueprint $table) { + // + }); + } +} diff --git a/tests/Feature/ChinaBankSlipTest.php b/tests/Feature/ChinaBankSlipTest.php index 9e0feb1d..3e9937a9 100644 --- a/tests/Feature/ChinaBankSlipTest.php +++ b/tests/Feature/ChinaBankSlipTest.php @@ -56,7 +56,6 @@ class ChinaBankSlipTest extends TestCase 'details' => "123123", 'date' => "123123" ]); - if(!file_exists($china_bank_slips_path) || $size_in_kb > 3072){ $response->assertStatus(400); }