mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
b3d99cd210
- adds contants for transaction type names - demeter law = never speaks with strangers
22 lines
552 B
PHP
22 lines
552 B
PHP
<?php
|
|
use FireflyIII\Models\TransactionType;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
/**
|
|
* Class TransactionTypeSeeder
|
|
*/
|
|
class TransactionTypeSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
|
|
DB::table('transaction_types')->delete();
|
|
|
|
TransactionType::create(['type' => TransactionType::WITHDRAWAL]);
|
|
TransactionType::create(['type' => TransactionType::DEPOSIT]);
|
|
TransactionType::create(['type' => TransactionType::TRANSFER]);
|
|
TransactionType::create(['type' => TransactionType::OPENING_BALANCE]);
|
|
}
|
|
|
|
}
|