From f21949e5e0e9a4e06a2738dd4a937c0618e936ca Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jan 2021 09:00:25 +1100 Subject: [PATCH 1/2] Fix for migration on clean setup --- .../2021_01_03_215053_update_canadian_dollar_symbol.php | 5 ++++- database/seeders/CurrenciesSeeder.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/database/migrations/2021_01_03_215053_update_canadian_dollar_symbol.php b/database/migrations/2021_01_03_215053_update_canadian_dollar_symbol.php index bd17fcbf358f..2b4d0e415230 100644 --- a/database/migrations/2021_01_03_215053_update_canadian_dollar_symbol.php +++ b/database/migrations/2021_01_03_215053_update_canadian_dollar_symbol.php @@ -16,7 +16,10 @@ class UpdateCanadianDollarSymbol extends Migration */ public function up() { - Currency::find(9)->update(['symbol' => '$']); + $currency = Currency::find(9); + + if($currency) + $currency->update(['symbol' => '$']); $this->buildCache(true); } diff --git a/database/seeders/CurrenciesSeeder.php b/database/seeders/CurrenciesSeeder.php index f34b0a6fad0a..f0901e49276c 100644 --- a/database/seeders/CurrenciesSeeder.php +++ b/database/seeders/CurrenciesSeeder.php @@ -30,7 +30,7 @@ class CurrenciesSeeder extends Seeder ['id' => 6, 'name' => 'Israeli Shekel', 'code' => 'ILS', 'symbol' => 'NIS ', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 7, 'name' => 'Swedish Krona', 'code' => 'SEK', 'symbol' => 'kr', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => ',', 'swap_currency_symbol' => true], ['id' => 8, 'name' => 'Kenyan Shilling', 'code' => 'KES', 'symbol' => 'KSh ', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], - ['id' => 9, 'name' => 'Canadian Dollar', 'code' => 'CAD', 'symbol' => 'C$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['id' => 9, 'name' => 'Canadian Dollar', 'code' => 'CAD', 'symbol' => '$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 10, 'name' => 'Philippine Peso', 'code' => 'PHP', 'symbol' => 'P ', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 11, 'name' => 'Indian Rupee', 'code' => 'INR', 'symbol' => 'Rs. ', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 12, 'name' => 'Australian Dollar', 'code' => 'AUD', 'symbol' => '$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], From 28ab2f73f4497511e14404ea79641b999a93db8c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jan 2021 09:01:00 +1100 Subject: [PATCH 2/2] Version bump --- VERSION.txt | 2 +- config/ninja.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index cfa0f5628fd1..7d908497ecd1 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.0.42 \ No newline at end of file +5.0.43 \ No newline at end of file diff --git a/config/ninja.php b/config/ninja.php index feaee9ea60cc..22c4e172d22d 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -12,7 +12,7 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', ''), - 'app_version' => '5.0.42', + 'app_version' => '5.0.43', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', false),