Ubah tipe kolom di database yang sebelumnya menggunakan date, datetime, atau decimal menjadi string. Langkah ini meningkatkan fleksibilitas penyimpanan data.
- `customers` table:
- Ubah tipe kolom `date_of_birth` dari `date` menjadi `string`.
- `accounts` table:
- Ubah tipe kolom `opening_date` dari `date` menjadi `string`.
- Ubah tipe kolom `closure_date` dari `date` menjadi `string`.
- Revisi kolom `start_year_bal` menjadi `string` dengan parameter yang disesuaikan.
- `ft_txn_type_condition` table:
- Ubah tipe kolom `date_time` dari `dateTime` menjadi `string`.
- `data_captures` table:
- Ubah tipe kolom `value_date`, `exposure_date`, dan `accounting_date` dari `date` menjadi `string`.
- Ubah tipe kolom `date_time` dari `dateTime` menjadi `string`.
- Ubah tipe kolom `amount_lcy`, `amount_fcy`, dan `exchange_rate` dari `decimal` menjadi `string`.
- `temp_arrangements` table:
- Ubah tipe kolom `orig_contract_date` dan `start_date` dari `date` menjadi `string`.
- Model changes:
- Hapus properti `casts` dari model berikut:
- `AtmTransaction`
- `DataCapture`
- `FtTxnTypeCondition`
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Modules\Webstatement\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
// use Modules\Webstatement\Database\Factories\FtTxnTypeConditionFactory;
|
|
|
|
class FtTxnTypeCondition extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* Indicates if the IDs are auto-incrementing.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'ft_txn_type_condition';
|
|
/**
|
|
* The primary key for the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
/**
|
|
* The data type of the auto-incrementing ID.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $keyType = 'string';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $fillable = [
|
|
'id',
|
|
'date_time',
|
|
'transaction_type',
|
|
'short_descr',
|
|
'txn_code_cr',
|
|
'txn_code_dr',
|
|
];
|
|
}
|