mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
First code for liabilities and some tests.
This commit is contained in:
@@ -41,12 +41,15 @@ class AccountTypeSeeder extends Seeder
|
||||
AccountType::IMPORT,
|
||||
AccountType::LOAN,
|
||||
AccountType::RECONCILIATION,
|
||||
AccountType::DEBT,
|
||||
AccountType::MORTGAGE,
|
||||
AccountType::CREDITCARD,
|
||||
];
|
||||
foreach ($types as $type) {
|
||||
try {
|
||||
AccountType::create(['type' => $type]);
|
||||
} catch (PDOException $e) {
|
||||
Log::warning(sprintf('Could not create account type "%s". It might exist already.', $type));
|
||||
Log::warning(sprintf('Could not create account type "%s". It might exist already: %s', $type , $e->getMessage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user