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); }