2015-02-05 21:41:00 -06:00
|
|
|
<?php
|
2016-09-17 00:57:32 -05:00
|
|
|
/**
|
|
|
|
* TransactionTypeSeeder.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2016-05-20 01:57:45 -05:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2015-02-05 22:01:24 -06:00
|
|
|
use FireflyIII\Models\TransactionType;
|
2015-02-11 00:35:10 -06:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
2015-02-05 21:41:00 -06:00
|
|
|
/**
|
|
|
|
* Class TransactionTypeSeeder
|
|
|
|
*/
|
|
|
|
class TransactionTypeSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
|
|
|
|
DB::table('transaction_types')->delete();
|
|
|
|
|
2015-12-09 18:39:50 -06:00
|
|
|
TransactionType::create(['type' => TransactionType::WITHDRAWAL]);
|
|
|
|
TransactionType::create(['type' => TransactionType::DEPOSIT]);
|
|
|
|
TransactionType::create(['type' => TransactionType::TRANSFER]);
|
|
|
|
TransactionType::create(['type' => TransactionType::OPENING_BALANCE]);
|
2015-02-05 21:41:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|