Summary
The abuse_filter_log table has an afl_ip_hex column. We should write to it to migrate from using afl_ip.
Background & Technical details
- T391322: Special:AbuseLog: Support search by IP and IP range when temporary accounts are enabled requests that it be possible to search AbuseFilter log entries performed by temporary accounts by the IP address used to perform the action
- To achieve this we need to be able to search by the IP address column in the abuse_filter_log table
- This involves writing to the new afl_ip_hex column for new entries, which will be the focus of this task. Existing entries will be migrated in another task
- Additionally, we will need to expire the value from afl_ip_hex in the same way as afl_ip to avoid storing the IPs for too long.
Acceptance criteria
- The afl_ip_hex column is written to when creating new abuse_filter_log rows
- The afl_ip_hex column is purged in the same way as afl_ip