Upgrading & Uninstalling
Upgrading Currency
Section titled “Upgrading Currency”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-currencyphp vendor/bin/wire module:refreshphp vendor/bin/wire currency:doctor --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Currency), 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/Currency/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 Currency
Section titled “Uninstalling Currency”Uninstalling Currency from Modules (or via php vendor/bin/wire module:uninstall Currency) runs ___uninstall() for a zero-orphan teardown:
- Purges all 3
CurrencyBlueprintstypes (currency-settings,currency-currencies,currency-rate-history) and their stored entries. - Deletes all 3 RBAC permissions (
currency-admin,currency-manage,currency-view). - Clears
CurrencyWireCache entries, session state, thecurrencylog, and deferredReactworkspace, widget, command-search, and data-provider registrations. - Removes the companion
ProcessCurrencyadmin page at Setup -> Currencies.