From 9d736400b6f88bacd86aab14a234cc674d7d4715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Drunen?= Date: Sat, 31 Aug 2024 23:17:32 +0200 Subject: [PATCH] Add Mexican peso --- ...ert_mexican_peso_into_currencies_table.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2024_08_31_211536_insert_mexican_peso_into_currencies_table.php diff --git a/database/migrations/2024_08_31_211536_insert_mexican_peso_into_currencies_table.php b/database/migrations/2024_08_31_211536_insert_mexican_peso_into_currencies_table.php new file mode 100644 index 00000000..4cf081b0 --- /dev/null +++ b/database/migrations/2024_08_31_211536_insert_mexican_peso_into_currencies_table.php @@ -0,0 +1,28 @@ +insert([ + [ + 'name' => 'Mexican peso', + 'symbol' => '$', + 'iso' => 'MXN' + ] + ]); + } + + public function down(): void + { + DB::table('currencies') + ->where('iso', 'MXN') + ->delete(); + } +};