Closed hgati closed 3 weeks ago
This should grab all rows from the table with a column matching the encrypted data format.
Did you figure out the issue?
@convenient I found out that it's not about the customer group, but rather the issue occurs when the value of the rp_token
field in the database is stored as NULL. so it doesn't seem to be an issue.
Before
SELECT `cb_customer_entity`.`entity_id`, `cb_customer_entity`.`rp_token`
FROM `cb_customer_entity`
ORDER BY entity_id ASC
LIMIT 10
If print the SQL of the code you provided, it looks like the following:
SELECT `cb_customer_entity`.`entity_id`, `cb_customer_entity`.`rp_token`
FROM `cb_customer_entity`
WHERE
((`cb_customer_entity`.`rp_token` LIKE '_:_:____%' OR `cb_customer_entity`.`rp_token` LIKE '__:_:____%'))
AND
(`cb_customer_entity`.`rp_token` NOT LIKE '1:_:__%')
Only customers belonging to the "General" customer group were re-encrypted, not all customer. Can it be applied to other customer groups as well ?