From 37b4eb3b51cf7096391324bb6000cc30f2c6ad1f Mon Sep 17 00:00:00 2001 From: = Date: Thu, 24 Dec 2020 09:13:19 +1100 Subject: [PATCH] Fix for null values in country table --- ..._remove_null_values_in_countries_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2020_12_23_220648_remove_null_values_in_countries_table.php diff --git a/database/migrations/2020_12_23_220648_remove_null_values_in_countries_table.php b/database/migrations/2020_12_23_220648_remove_null_values_in_countries_table.php new file mode 100644 index 000000000000..02c1e9ed7502 --- /dev/null +++ b/database/migrations/2020_12_23_220648_remove_null_values_in_countries_table.php @@ -0,0 +1,32 @@ +update(['thousand_separator' => '']); + $countries = Country::whereNull('decimal_separator')->update(['decimal_separator' => '']); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('countries', function (Blueprint $table) { + // + }); + } +}