Skip to content

Upgrading & Uninstalling

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-account
    php vendor/bin/wire module:refresh
    php vendor/bin/wire account:doctor --json

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 Entries blueprints (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 ProcessAccount admin page and the account-admin permission.
    • The @fieldset:account-profile blueprint registration.
  • Preserved:
    • All ProcessWire User accounts and core roles remain intact.
    • If you previously opted into account:scaffold:user --allow-user-template, uninstalling Account unregisters @fieldset:account-profile without deleting embedded fields or data already stored on the ProcessWire user template, preventing accidental data loss.

Next steps