mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
Remove exception because it breaks the upgrade.
This commit is contained in:
@@ -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
|
||||
|
@@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user