Hello,
I upgraded from 1.5.x to 2.2.4 after that I have the error here reported. After deleting these tables:
xf_addon_install_batch
xf_addon_install_batch__conflict
xf_addon_install_batch_entry
... I will have an error when I try to install RM, XFMG, ElasticSearch ... So I restore these tables and after that I have no error.
So I believe its better to not delete them or not all of them?