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(); + } +};