XF 2.1 Can't migrate news feed likes to reactions?

Jaxel

Well-known member
In most of my addons, I use the proper migration procedures... ex:
Code:
        AbstractSetup::migrateTableToReactions('ewr_medio_media', 'media_likes', 'media_like_users');
        AbstractSetup::renameLikeAlertOptionsToReactions(['ewr_medio_media']);
        AbstractSetup::renameLikeAlertsToReactions(['ewr_medio_media']);
This migrates the tables, alerts, and news feeds. However, it looks like the alerts and news feeds are tied together.

For one of my addons, I have news feeds, but no alerts on likes (because the content has no owner, there is no one to send alerts to). So I only run the first line, without lines 2 and 3. Unfortunately, this also means that the news feeds are not converted to reactions. How would I fix this?
 
Easiest thing would probably just be to trigger the specific query you need directly -- you can see it in the body of that function.

Otherwise, you probably could do the usual "alerts" rename and it probably just wouldn't change anything there.
 
Back
Top Bottom