From ee45cc2f73e4cfb0e4a52948d87bcc7ea138df6a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 18 Nov 2017 16:36:22 +0100 Subject: [PATCH] Fix upgrade database thing. --- app/Models/AccountType.php | 3 +++ app/Models/TransactionType.php | 3 +++ 2 files changed, 6 insertions(+) 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. *