Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove exception because it breaks the upgrade.
James Cole8f3cf38f77a5
diff --git a/app/Models/PiggyBank.php b/app/Models/PiggyBank.phpindex 68d4eef30e..a32ca5622b 100644--- a/app/Models/PiggyBank.php+++ b/app/Models/PiggyBank.php@@ -87,7 +87,7 @@ class PiggyBank extends Modelpublic function account(): BelongsTo{- throw new FireflyException('This method is not available on PiggyBank.');+ return $this->belongsTo(Account::class);}public function attachments(): MorphManydiff --git a/database/migrations/2024_11_30_075826_multi_piggy.php b/database/migrations/2024_11_30_075826_multi_piggy.phpindex fb47184a6b..bcd6cee9bc 100644--- a/database/migrations/2024_11_30_075826_multi_piggy.php+++ b/database/migrations/2024_11_30_075826_multi_piggy.php@@ -23,7 +23,6 @@ return new class () extends Migration {});Schema::table('piggy_banks', static function (Blueprint $table): void {// 3. add currency-$table->integer('transaction_currency_id', false, true)->after('account_id')->nullable();$table->foreign('transaction_currency_id', 'unique_currency')->references('id')->on('transaction_currencies')->onDelete('cascade');});