Acceptance criteria
- Write a maintenance script that:
- Finds unused rows in ce_address (no corresponding entry in ce_event_address) and deletes them
- Uses CLDR and manual overrides to try and convert free-text field in the database into valid country codes
- Populates the new country code column with the code
- For countries that cannot be converted: make the event online (deleting the ce_address row)
- Finds in-person or hybrid events with no country (either NULL, or no corresponding row in ce_address), and applies the same change used for invalid countries
- Removes the country from the full address field
- Deletes duplicated row representing the same address (see T397476#10980178)
- The script should have an option that allows us to run it in production without performing any writes