Skip to content

Replace custom upgrade hook with native PS9 actionModuleUpgradeAfter - #40

Merged
nenes25 merged 1 commit into
mainfrom
feature/use-native-upgrade-hook
Jun 23, 2026
Merged

Replace custom upgrade hook with native PS9 actionModuleUpgradeAfter#40
nenes25 merged 1 commit into
mainfrom
feature/use-native-upgrade-hook

Conversation

@nenes25

@nenes25 nenes25 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Closes #39

Summary

  • Remove the Module override that manually dispatched the custom actionModuleUpgradeVersion hook
  • Register and listen to the native PS9 actionModuleUpgradeAfter hook instead (params: module_name, new_version)
  • Update upgrade-0.6.0.php to handle the transition: removes the override, unregisters the old hook, registers the new one

Test plan

  • Fresh install: verify module registers actionModuleUpgradeAfter and not actionModuleUpgradeVersion
  • Upgrade from a previous version: run upgrade-0.6.0.php and confirm the override is removed from www/override/classes/module/Module.php
  • Upgrade a module from the BO: confirm the event is recorded in the changes table

…After

- Remove Module override that dispatched actionModuleUpgradeVersion
- Register actionModuleUpgradeAfter native hook instead
- Update upgrade-0.6.0.php to handle the transition
@nenes25
nenes25 merged commit 868ede2 into main Jun 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[enhancement]: Remove Module override

1 participant