Skip to content

Commit

Permalink
Merge pull request #500 from range-of-motion/499-add-mexican-peso
Browse files Browse the repository at this point in the history
Add Mexican peso
  • Loading branch information
range-of-motion authored Aug 31, 2024
2 parents 3a68884 + 9d73640 commit 79d3255
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 79d3255

Please sign in to comment.