A maintenance script is needed that will populate the cu_useragent table and agent_id columns (e.g. cuc_agent_id, cupe_agent_id) with values from the agent columns (e.g. cuc_agent, cupe_agent).
This should be run after the creation of the cu_useragent and agent_id columns but before any removal of the agent columns in SchemaChangesHandler.php.
Acceptance criteria
- Create the maintenance script
- Add this maintenance script to SchemaChangesHandler.php so that it is run when running update.php