I have a plugin where I want to intercept database changes made during the upgrade process.
It looks like the WordPress Way to do this is with the 'dbdelta_queries' filter. The trouble is, my plugin's main .php file isn't loaded during the upgrade process, so I can't hook that filter.
How can I get a plugin to hook a filter -- this filter or any filter -- during the upgrade process?