Jaxel
Well-known member
In most of my addons, I use the proper migration procedures... ex:
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?
Code:
AbstractSetup::migrateTableToReactions('ewr_medio_media', 'media_likes', 'media_like_users');
AbstractSetup::renameLikeAlertOptionsToReactions(['ewr_medio_media']);
AbstractSetup::renameLikeAlertsToReactions(['ewr_medio_media']);
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?