Skip to content

Firefly III: a personal finances manager

Fix upgrade database thing.

James Coleee45cc2f73e4
diff --git a/app/Models/AccountType.php b/app/Models/AccountType.php
index 40b9a872eb..1ba108a8ce 100644
--- a/app/Models/AccountType.php
+++ b/app/Models/AccountType.php
@@ -41,6 +41,9 @@ class AccountType extends Model
const RECONCILIATION = 'Reconciliation account';
const LOAN = 'Loan';
+ /** @var array */
+ protected $fillable = ['type'];
+
/**
* The attributes that should be casted to native types.
*
diff --git a/app/Models/TransactionType.php b/app/Models/TransactionType.php
index 33f5dc58eb..9668384b2f 100644
--- a/app/Models/TransactionType.php
+++ b/app/Models/TransactionType.php
@@ -39,6 +39,9 @@ class TransactionType extends Model
const OPENING_BALANCE = 'Opening balance';
const RECONCILIATION = 'Reconciliation';
+ /** @var array */
+ protected $fillable = ['type'];
+
/**
* The attributes that should be casted to native types.
*