update database to be strict and fix migration

This commit is contained in:
Jack Goh
2018-08-02 10:47:44 +08:00
parent 2831038d56
commit 6815828b60
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ return [
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'strict' => true,
'engine' => null,
],
@@ -17,7 +17,7 @@ class CreateSettingSuppliersTable extends Migration
$table->increments('id');
$table->string('company_name');
$table->string('gst_no');
$table->string('supplier_reg_no');
$table->string('supplier_reg_no')->nullable();
$table->string('bank_name');
$table->string('acc_no');
$table->timestamps();
@@ -15,7 +15,7 @@ class AddBookingidForeignkeyToChinabankslipTable extends Migration
{
Schema::table('china_bank_slips', function($table)
{
$table->integer('booking_id')->unsigned();
$table->integer('booking_id')->unsigned()->nullable();
$table->foreign('booking_id')->references('id')->on('bookings');
});
}