From f15dbe44dbef72172f5c08798e5c257083306583 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Mon, 20 Aug 2018 17:31:25 +0800 Subject: [PATCH] fix bank setting cannot be null error --- ...ullable_in_setting_beneficiaries_table.php | 35 +++++++++++++++++++ ...llable_in_setting_malaysia_banks_table.php | 35 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 database/migrations/2018_08_20_172746_make_nullable_in_setting_beneficiaries_table.php create mode 100644 database/migrations/2018_08_20_172851_make_nullable_in_setting_malaysia_banks_table.php diff --git a/database/migrations/2018_08_20_172746_make_nullable_in_setting_beneficiaries_table.php b/database/migrations/2018_08_20_172746_make_nullable_in_setting_beneficiaries_table.php new file mode 100644 index 00000000..3f842af4 --- /dev/null +++ b/database/migrations/2018_08_20_172746_make_nullable_in_setting_beneficiaries_table.php @@ -0,0 +1,35 @@ +string('bank_address')->nullable()->change(); + $table->string('swift')->nullable()->change(); + $table->string('cnap')->nullable()->change(); + $table->string('bank_branch')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('setting_beneficiaries', function (Blueprint $table) { + // + }); + } +} diff --git a/database/migrations/2018_08_20_172851_make_nullable_in_setting_malaysia_banks_table.php b/database/migrations/2018_08_20_172851_make_nullable_in_setting_malaysia_banks_table.php new file mode 100644 index 00000000..a96df1b4 --- /dev/null +++ b/database/migrations/2018_08_20_172851_make_nullable_in_setting_malaysia_banks_table.php @@ -0,0 +1,35 @@ +string('bank_address')->nullable()->change(); + $table->string('swift')->nullable()->change(); + $table->string('cnap')->nullable()->change(); + $table->string('bank_branch')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('setting_malaysia_banks', function (Blueprint $table) { + // + }); + } +}