Skip to content

Firefly III: a personal finances manager

Remove exception because it breaks the upgrade.

James Cole8f3cf38f77a5
diff --git a/app/Models/PiggyBank.php b/app/Models/PiggyBank.php
index 68d4eef30e..a32ca5622b 100644
--- a/app/Models/PiggyBank.php
+++ b/app/Models/PiggyBank.php
@@ -87,7 +87,7 @@ class PiggyBank extends Model
public function account(): BelongsTo
{
- throw new FireflyException('This method is not available on PiggyBank.');
+ return $this->belongsTo(Account::class);
}
public function attachments(): MorphMany
diff --git a/database/migrations/2024_11_30_075826_multi_piggy.php b/database/migrations/2024_11_30_075826_multi_piggy.php
index 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');
});