Skip to content

Commit

Permalink
Add Mexican peso
Browse files Browse the repository at this point in the history
  • Loading branch information
range-of-motion committed Aug 31, 2024
1 parent 3a68884 commit 9d73640
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
DB::table('currencies')
->insert([
[
'name' => 'Mexican peso',
'symbol' => '$',
'iso' => 'MXN'
]
]);
}

public function down(): void
{
DB::table('currencies')
->where('iso', 'MXN')
->delete();
}
};

0 comments on commit 9d73640

Please sign in to comment.