START TRANSACTION;
INSERT INTO tbloptions (tenant_id, name, value)
SELECT tenant_id, 'paymentmethod_finix_merchant_trans_limit', '15000'
FROM tbloptions
WHERE name = 'paymentmethod_finix_active' AND value = 1
    ON DUPLICATE KEY UPDATE value = '15000';
COMMIT;
