Upgrading & Uninstalling
Upgrading Mystique
Section titled “Upgrading Mystique”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire flushes
Mystique.Resourcesand runs___upgrade()automatically:Terminal window composer update trk/mystiquephp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Mystique), 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, flushes
WireCache, and runs___upgrade()automatically.
- Replace
site/modules/Mystique/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh).
Uninstalling Mystique
Section titled “Uninstalling Mystique”-
Remove
Mystiquefields from templates and delete them:Open Setup -> Templates, remove every
FieldtypeMystiquefield from its templates, then delete each field under Setup -> Fields. Deleting aFieldtypeMystiquefield automatically purges its isolated files undersite/assets/files/mystique/and clearsMystique.Resourcescache entries. -
Uninstall
Mystiquevia 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=MystiqueUninstalling
Mystiqueautomatically uninstallsFieldtypeMystiqueandInputfieldMystique. -
Remove the Composer package (optional):
Terminal window composer remove trk/mystique
What Uninstalling Preserves
Section titled “What Uninstalling Preserves”- Your project config files inside
site/templates/configs/andsite/templates/configs/fieldsets/are never deleted by uninstalling.