mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
fix booking internal server error due to db not accepting null value
fixed copy right on booking form update notification seeder
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class MakeNullableInBookingsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('bookings', function (Blueprint $table) {
|
||||||
|
$table->string('company_name')->nullable()->change();
|
||||||
|
$table->string('company_address')->nullable()->change();
|
||||||
|
$table->string('bank_address')->nullable()->change();
|
||||||
|
$table->string('swift_code')->nullable()->change();
|
||||||
|
$table->string('cnap')->nullable()->change();
|
||||||
|
$table->string('term')->nullable()->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('bookings', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@ class NotificationSeeder extends Seeder
|
|||||||
DB::table('notifications')->insert([
|
DB::table('notifications')->insert([
|
||||||
'detail' => 'This is an user seeder notification',
|
'detail' => 'This is an user seeder notification',
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'link' => 'http://www.google.com',
|
'link' => '/',
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||||
]);
|
]);
|
||||||
@@ -27,7 +27,7 @@ class NotificationSeeder extends Seeder
|
|||||||
DB::table('notifications')->insert([
|
DB::table('notifications')->insert([
|
||||||
'detail' => 'This is an admin seeder notification',
|
'detail' => 'This is an admin seeder notification',
|
||||||
'user_id' => $admin->id,
|
'user_id' => $admin->id,
|
||||||
'link' => 'http://www.google.com',
|
'link' => '/',
|
||||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="order_no">
|
<el-form-item prop="order_no">
|
||||||
<el-input v-model="bookingForm.order_no" placeholder="Order No." style="width: 80%" required="true" />
|
<el-input v-model="bookingForm.order_no" placeholder="Order No. (Optional)" style="width: 80%" required="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="account_name">
|
<el-form-item prop="account_name">
|
||||||
<el-input v-model="bookingForm.account_name" placeholder="China Beneficiary Name" style="width: 80%" required="true" />
|
<el-input v-model="bookingForm.account_name" placeholder="China Beneficiary Name" style="width: 80%" required="true" />
|
||||||
|
|||||||
Reference in New Issue
Block a user