@@ -69,11 +69,28 @@ class PaymentsLogicAndDataRepairSupport extends Migration
|
||||
|
||||
if (!$this->db->fieldExists('idempotency_key', 'payments')) {
|
||||
$columns['idempotency_key'] = [
|
||||
'type' => 'CHAR',
|
||||
'constraint' => 36,
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => 100,
|
||||
'null' => true,
|
||||
'after' => 'transaction_id',
|
||||
];
|
||||
} else {
|
||||
$this->forge->modifyColumn('payments', [
|
||||
'idempotency_key' => [
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => 100,
|
||||
'null' => true,
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$this->db->fieldExists('request_fingerprint_hash', 'payments')) {
|
||||
$columns['request_fingerprint_hash'] = [
|
||||
'type' => 'CHAR',
|
||||
'constraint' => 64,
|
||||
'null' => true,
|
||||
'after' => 'idempotency_key',
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->db->fieldExists('is_void', 'payments')) {
|
||||
@@ -86,6 +103,24 @@ class PaymentsLogicAndDataRepairSupport extends Migration
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->db->fieldExists('evidence_status', 'payments')) {
|
||||
$columns['evidence_status'] = [
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => 30,
|
||||
'null' => true,
|
||||
'after' => 'check_file',
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->db->fieldExists('evidence_failure_message', 'payments')) {
|
||||
$columns['evidence_failure_message'] = [
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => 255,
|
||||
'null' => true,
|
||||
'after' => 'evidence_status',
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->db->fieldExists('reversal_of_payment_id', 'payments')) {
|
||||
$columns['reversal_of_payment_id'] = [
|
||||
'type' => 'INT',
|
||||
|
||||
Reference in New Issue
Block a user