Context: we need to reimplement the schema so that:
- it can support tools other than just the P&E dashboard
- it does not duplicate information in each record (e.g., repeating the base URL in each row)
- it stores a unique identifier of a dashboard that we can use in the code to make API calls etc.
The `campaign_events` table would have two fields, `event_tracking_tool_id` and `event_tracking_tool_dashboard_id` (better names needed). The former is int|null and refers to a unique identifier of each tracking tool, as determined by the application (see T312869). The latter would be a string|null field holding the identifier of the given dashboard inside that tool (could be a numeric ID, or a name, or something else depending on the tool).
The application logic would use these fields for its various use cases (again, see T312869).
==== Deployment plan ====
- Write the patch that changes the schema in the code. Review it, but **DO NOT MERGE IT**. Only give it a +1, **explicitly** writing in a comment that the +1 means you are approving the change (and not that you have a [[https://bash.toolforge.org/quip/AU7VVae36snAnmqnK_xL | working mouse ]]).
- Create the new columns on beta (both are default null), and add defaults to the old columns
- Merge the patch and wait for it to reach beta
- Drop the old columns on beta