Upgrading & Uninstalling
Upgrading Account
Section titled “Upgrading Account”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-accountphp vendor/bin/wire module:refreshphp vendor/bin/wire account:doctor --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Account), 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/Account/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 Account
Section titled “Uninstalling Account”When you uninstall Account from Modules (or via php vendor/bin/wire module:uninstall Account), ___uninstall() performs a clean, predictable teardown:
- Removed:
- All 9 internal
Entriesblueprints (account,account-profiles,account-credentials,account-identities,account-challenges,account-sessions,account-consents,account-audit,account-templates) and their stored items. - All 3 managed SQL tables owned by
AccountNotificationStore::OWNER(entries_tbl_account_deliveries,entries_tbl_account_inbox,entries_tbl_account_saved_items). - The companion
ProcessAccountadmin page and theaccount-adminpermission. - The
@fieldset:account-profileblueprint registration.
- All 9 internal
- Preserved:
- All ProcessWire
Useraccounts and core roles remain intact. - If you previously opted into
account:scaffold:user --allow-user-template, uninstalling Account unregisters@fieldset:account-profilewithout deleting embedded fields or data already stored on the ProcessWireusertemplate, preventing accidental data loss.
- All ProcessWire