Remove exception because it breaks the upgrade.

This commit is contained in:
James Cole
2024-12-14 22:12:56 +01:00
parent f33766a062
commit 8f3cf38f77
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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');
});