Upgrading & Uninstalling
Upgrading Packages
Section titled “Upgrading Packages”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-packagesphp vendor/bin/wire module:refreshphp vendor/bin/wire packages:doctor --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Packages), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Packages/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling Packages
Section titled “Uninstalling Packages”Uninstalling Packages from Modules (or via php vendor/bin/wire module:uninstall Packages) executes ___uninstall(), which performs a complete cleanup:
- Purges all stored release ZIP archives via
archiveStorage()->purgeAll(). - Drops all 4 managed SQL tables (
entries_tbl_packages_downloads,entries_tbl_packages_activations,entries_tbl_packages_rate_limits,entries_tbl_packages_credentials). - Purges all
PackagesBlueprintscollections and settings (packages-items,packages-tiers,packages-bundles,packages-releases,packages-licenses). - Removes the companion
ProcessPackagesadmin page and all 3 RBAC permissions (packages-view,packages-manage,packages-admin).