diff --git a/database/migrations/2023_10_10_083024_add_ariary_currency.php b/database/migrations/2023_10_10_083024_add_ariary_currency.php new file mode 100644 index 000000000000..51978dbab5c7 --- /dev/null +++ b/database/migrations/2023_10_10_083024_add_ariary_currency.php @@ -0,0 +1,39 @@ +id = 119; + $cur->code = 'MGA'; + $cur->name = 'Malagasy ariary'; + $cur->symbol = 'Ar'; + $cur->thousand_separator = ','; + $cur->decimal_separator = '.'; + $cur->precision = 0; + $cur->save(); + } + + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // + } +}; diff --git a/database/seeders/CurrenciesSeeder.php b/database/seeders/CurrenciesSeeder.php index 3005940fa1f9..c9ae3f523b43 100644 --- a/database/seeders/CurrenciesSeeder.php +++ b/database/seeders/CurrenciesSeeder.php @@ -141,6 +141,7 @@ class CurrenciesSeeder extends Seeder ['id' => 116, 'name' => 'Silver Troy Ounce', 'code' => 'XAG', 'symbol' => 'XAG', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 117, 'name' => 'Gold Troy Ounce', 'code' => 'XAU', 'symbol' => 'XAU', 'precision' => '3', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 118, 'name' => 'Nicaraguan Córdoba', 'code' => 'NIO', 'symbol' => 'C$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['id' => 119, 'name' => 'Malagasy ariary', 'code' => 'MGA', 'symbol' => 'AR', 'precision' => '0', 'thousand_separator' => ',', 'decimal_separator' => '.'], ]; foreach ($currencies as $currency) {