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 flushes Mystique.Resources and runs ___upgrade() automatically:

    Terminal window
    composer update trk/mystique
    php vendor/bin/wire module:refresh
  1. Remove Mystique fields from templates and delete them:

    Open Setup -> Templates, remove every FieldtypeMystique field from its templates, then delete each field under Setup -> Fields. Deleting a FieldtypeMystique field automatically purges its isolated files under site/assets/files/mystique/ and clears Mystique.Resources cache entries.

  2. Uninstall Mystique via ProcessWire Admin or CLI:

    Open Modules -> Configure -> Mystique, expand Uninstall, check Uninstall, and click Submit.

    Or run via processwire-console:

    Terminal window
    php vendor/bin/wire module:uninstall --name=Mystique

    Uninstalling Mystique automatically uninstalls FieldtypeMystique and InputfieldMystique.

  3. Remove the Composer package (optional):

    Terminal window
    composer remove trk/mystique
  • Your project config files inside site/templates/configs/ and site/templates/configs/fieldsets/ are never deleted by uninstalling.

Next steps