Make sure integers are converted to strings because sqlite sucks.

This commit is contained in:
James Cole
2024-12-29 06:32:50 +01:00
parent 9a9dd9e075
commit 3c20e5f3af
11 changed files with 21 additions and 14 deletions

View File

@@ -38,19 +38,20 @@ class AutoBudget extends Model
use ReturnsIntegerIdTrait;
use SoftDeletes;
#[\Deprecated]
#[\Deprecated] /** @deprecated */
public const int AUTO_BUDGET_ADJUSTED = 3;
#[\Deprecated]
#[\Deprecated] /** @deprecated */
public const int AUTO_BUDGET_RESET = 1;
#[\Deprecated]
#[\Deprecated] /** @deprecated */
public const int AUTO_BUDGET_ROLLOVER = 2;
protected $casts
= [
'amount' => 'string',
'native_amount' => 'string',
];
protected $fillable = ['budget_id', 'amount', 'period'];
protected $fillable = ['budget_id', 'amount', 'period','native_amount'];
public function budget(): BelongsTo
{