Fix CLIQ: remove unknown column phone
This commit is contained in:
@@ -37,14 +37,12 @@ try {
|
|||||||
$upd = $con->prepare("
|
$upd = $con->prepare("
|
||||||
UPDATE cliq_invoices
|
UPDATE cliq_invoices
|
||||||
SET amount = :amount,
|
SET amount = :amount,
|
||||||
phone = :phone,
|
|
||||||
cliq_phone = :cliq_phone,
|
cliq_phone = :cliq_phone,
|
||||||
updated_at = NOW()
|
updated_at = NOW()
|
||||||
WHERE id = :id
|
WHERE id = :id
|
||||||
");
|
");
|
||||||
$upd->execute([
|
$upd->execute([
|
||||||
':amount' => $amount,
|
':amount' => $amount,
|
||||||
':phone' => $phone ?: null,
|
|
||||||
':cliq_phone' => $cliqPhone,
|
':cliq_phone' => $cliqPhone,
|
||||||
':id' => $existing['id'],
|
':id' => $existing['id'],
|
||||||
]);
|
]);
|
||||||
@@ -62,15 +60,14 @@ try {
|
|||||||
|
|
||||||
$ins = $con->prepare("
|
$ins = $con->prepare("
|
||||||
INSERT INTO cliq_invoices
|
INSERT INTO cliq_invoices
|
||||||
(invoice_number, user_id, user_type, phone, amount, cliq_phone, status, created_at, updated_at)
|
(invoice_number, user_id, user_type, amount, cliq_phone, status, created_at, updated_at)
|
||||||
VALUES
|
VALUES
|
||||||
(:invoice_number, :user_id, :user_type, :phone, :amount, :cliq_phone, 'pending', NOW(), NOW())
|
(:invoice_number, :user_id, :user_type, :amount, :cliq_phone, 'pending', NOW(), NOW())
|
||||||
");
|
");
|
||||||
$ins->execute([
|
$ins->execute([
|
||||||
':invoice_number' => $invoiceNumber,
|
':invoice_number' => $invoiceNumber,
|
||||||
':user_id' => $userId,
|
':user_id' => $userId,
|
||||||
':user_type' => $userType,
|
':user_type' => $userType,
|
||||||
':phone' => $phone ?: null,
|
|
||||||
':amount' => $amount,
|
':amount' => $amount,
|
||||||
':cliq_phone' => $cliqPhone
|
':cliq_phone' => $cliqPhone
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user