firefly-iii/database/seeds/TransactionCurrencySeeder.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2015-02-05 21:41:00 -06:00
<?php
/**
* TransactionCurrencySeeder.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
2016-05-20 01:57:45 -05:00
declare(strict_types = 1);
2015-02-05 21:41:00 -06:00
2015-02-05 22:01:24 -06:00
use FireflyIII\Models\TransactionCurrency;
2015-02-11 00:35:10 -06:00
use Illuminate\Database\Seeder;
2015-02-05 21:41:00 -06:00
/**
* Class TransactionCurrencySeeder
*/
class TransactionCurrencySeeder extends Seeder
{
public function run()
{
DB::table('transaction_currencies')->delete();
2015-06-29 08:23:50 -05:00
TransactionCurrency::create(['code' => 'EUR', 'name' => 'Euro', 'symbol' => '€']);
2015-02-11 00:35:10 -06:00
TransactionCurrency::create(['code' => 'USD', 'name' => 'US Dollar', 'symbol' => '$']);
TransactionCurrency::create(['code' => 'HUF', 'name' => 'Hungarian forint', 'symbol' => 'Ft']);
TransactionCurrency::create(['code' => 'BRL', 'name' => 'Real', 'symbol' => 'R$']);
2016-09-21 14:45:36 -05:00
TransactionCurrency::create(['code' => 'GBP', 'name' => 'British Pound', 'symbol' => '£']);
2016-12-04 02:33:41 -06:00
TransactionCurrency::create(['code' => 'IDR', 'name' => 'Indonesian rupiah', 'symbol' => 'Rp']);
2015-02-05 21:41:00 -06:00
}
}