From a498d370cfd2c357730d2e3bae1d3e2e99a8c763 Mon Sep 17 00:00:00 2001 From: Too Date: Tue, 26 Jun 2018 12:21:53 +0800 Subject: [PATCH] remove eta from booking --- app/Booking.php | 2 +- ...018_06_26_031229_add_eta_booking_table.php | 32 ------------------- tests/Feature/BookingTest.php | 3 +- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 database/migrations/2018_06_26_031229_add_eta_booking_table.php diff --git a/app/Booking.php b/app/Booking.php index 59c2d830..cffe157c 100644 --- a/app/Booking.php +++ b/app/Booking.php @@ -24,7 +24,7 @@ class Booking extends Model "usd_book_bank_branch"); protected $fillable = ['term', 'rate_id', 'user_id', 'amount', 'account_name', 'account_num', 'bank_name', - 'bank_branch', 'company_name' , 'estimated_arrival_time']; + 'bank_branch', 'company_name']; public $timestamps = true; diff --git a/database/migrations/2018_06_26_031229_add_eta_booking_table.php b/database/migrations/2018_06_26_031229_add_eta_booking_table.php deleted file mode 100644 index 460f269d..00000000 --- a/database/migrations/2018_06_26_031229_add_eta_booking_table.php +++ /dev/null @@ -1,32 +0,0 @@ -integer('estimated_arrival_time'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('bookings', function (Blueprint $table) { - // $table->dropColumn('estimated_arrival_time'); - }); - } -} diff --git a/tests/Feature/BookingTest.php b/tests/Feature/BookingTest.php index 9d278b54..c44ed4b5 100644 --- a/tests/Feature/BookingTest.php +++ b/tests/Feature/BookingTest.php @@ -69,8 +69,7 @@ class BookingTest extends TestCase 'usd_book_swift_code' => '2131rew', 'usd_book_cnap' => '2131rew', 'usd_book_bank_branch' => '2131rew', - 'verification_status' => '1', - 'estimated_arrival_time' => '123' + 'verification_status' => '1' ]); if(14000 > $this->setting_credit->rmb_credit_limit){