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`
65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace Modules\Webstatement\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DataCapture extends Model
|
|
{
|
|
/**
|
|
* Indicates if the model's ID is auto-incrementing.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
protected $table = 'data_captures';
|
|
/**
|
|
* The data type of the auto-incrementing ID.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $keyType = 'string';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'account_number',
|
|
'sign',
|
|
'amount_lcy',
|
|
'transaction_code',
|
|
'their_reference',
|
|
'narrative',
|
|
'pl_category',
|
|
'customer_id',
|
|
'account_officer',
|
|
'product_category',
|
|
'value_date',
|
|
'currency',
|
|
'amount_fcy',
|
|
'exchange_rate',
|
|
'neg_ref_no',
|
|
'position_type',
|
|
'our_reference',
|
|
'reversal_marker',
|
|
'exposure_date',
|
|
'currency_market',
|
|
'iblc_country',
|
|
'last_version',
|
|
'otor_version',
|
|
'department_code',
|
|
'dealer_desk',
|
|
'bank_sort_cde',
|
|
'cheque_number',
|
|
'accounting_date',
|
|
'contingent_acct',
|
|
'cheq_type',
|
|
'tfs_reference',
|
|
'accounting_company',
|
|
'stmt_no',
|
|
'curr_no',
|
|
'inputter',
|
|
'authoriser',
|
|
'co_code',
|
|
'date_time'
|
|
];
|
|
}
|