For arlanix/notification 1.1.0
Upgrade and remove
Upgrade
To upgrade, run the following commands:
composer update arlanix/notification --with-all-dependencies
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
If your deploy runs setup:upgrade while the running site's cache is in use, clean the configuration cache first. See Troubleshooting.
If the consumer runs under supervisor, restart it so that it runs the new code. A consumer that the cron starts uses the new code on its next run.
Deliveries queued during the upgrade are not lost. Each delivery is a row in the database, and the cron puts back on the queue any delivery whose queue message was lost.
Remove
When you remove the modules, their tables are deleted. This deletes the topics, subscriptions, rules, the Message Log, and the monitoring states and admin sign-ins.
Run the following commands in this order:
bin/magento module:disable Arlanix_NotificationMonitoring Arlanix_NotificationEvent Arlanix_NotificationDiscord \
Arlanix_NotificationWhatsapp Arlanix_NotificationSlack Arlanix_NotificationTeams Arlanix_NotificationTelegram Arlanix_NotificationSmtp Arlanix_Notification
bin/magento setup:upgrade
composer remove arlanix/notification
The order matters. setup:upgrade drops the tables of a disabled module only while the module's code is still installed. The declarative schema drops the tables that the module's db_schema_whitelist.json lists, and it reads that file from the module's code. If you run setup:upgrade after composer remove, it finds no whitelist and keeps the tables. You then have to drop them by hand.
Two things stay after removal:
- The settings in
core_config_data. To delete them, runDELETE FROM core_config_data WHERE path LIKE 'arlanix_notification/%'. - The
arlanix_admin_devicecookie in admin users' browsers. It expires on its own.
If another module publishes notifications and only suggests Multichannel Store Notifications, it keeps working. Its events reach no listener, and its topic select is empty. If another module requires Multichannel Store Notifications, remove that module first.
You can also remove only one module:
- If you remove one way of delivery, such as
Arlanix_NotificationTelegram, its subscriptions stay. They are shown as delivered by telegram (not installed). Their deliveries fail until you install the module again. - If you remove only the store events or monitoring, the rules for their events stay. These rules send nothing until you install the module again.