mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix upgrade problem in Softaculous.
This commit is contained in:
parent
e2530c5486
commit
f999be81c2
@ -130,7 +130,7 @@ class UpgradeDatabase extends Command
|
|||||||
$currency = TransactionCurrency::where('code', $currencyPreference->data)->first();
|
$currency = TransactionCurrency::where('code', $currencyPreference->data)->first();
|
||||||
if (null === $currency) {
|
if (null === $currency) {
|
||||||
$this->line('Fall back to default currency in migrateBillsToRules().');
|
$this->line('Fall back to default currency in migrateBillsToRules().');
|
||||||
$currency = app('amount')->getDefaultCurrency();
|
$currency = app('amount')->getDefaultCurrencyByUser($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $ruleGroup) {
|
if (null === $ruleGroup) {
|
||||||
@ -452,7 +452,7 @@ class UpgradeDatabase extends Command
|
|||||||
if (null !== $budget) {
|
if (null !== $budget) {
|
||||||
$user = $budget->user;
|
$user = $budget->user;
|
||||||
if (null !== $user) {
|
if (null !== $user) {
|
||||||
$currency = \Amount::getDefaultCurrencyByUser($user);
|
$currency = app('amount')->getDefaultCurrencyByUser($user);
|
||||||
$budgetLimit->transaction_currency_id = $currency->id;
|
$budgetLimit->transaction_currency_id = $currency->id;
|
||||||
$budgetLimit->save();
|
$budgetLimit->save();
|
||||||
$this->line(
|
$this->line(
|
||||||
@ -464,6 +464,9 @@ class UpgradeDatabase extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
private function createNewTypes(): void
|
private function createNewTypes(): void
|
||||||
{
|
{
|
||||||
// create transaction type "Reconciliation".
|
// create transaction type "Reconciliation".
|
||||||
|
Loading…
Reference in New Issue
Block a user