Upgrading & Uninstalling
Charter stores all fleet, pricing, inquiry, and booking data inside its 26 Entries blueprints (zero custom SQL tables).
Upgrading Charter
Section titled “Upgrading Charter”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-charterphp vendor/bin/wire module:refreshphp vendor/bin/wire charter:doctor --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Charter), 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/Charter/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 Charter
Section titled “Uninstalling Charter”-
Remove
$wire->charter/Charter::requireInstance()calls from yoursite/templates/and anyCharter::resolveBlueprinthooks fromsite/ready.php. -
Uninstall
ProcessCharterandCharter:Terminal window php vendor/bin/wire module:uninstall ProcessCharterphp vendor/bin/wire module:uninstall Charter -
Remove the Composer package (optional):
Terminal window composer remove trk/processwire-charter
What Charter::___uninstall() Cleans Up Automatically
Section titled “What Charter::___uninstall() Cleans Up Automatically”- Detaches optional sibling integrations (including
Integration\Ai\Integration::detach()and URL prefix registrations). - Purges
Charterblueprint schemas and clearsCharter.HoldNotice/Charter.AiInquirycaches. - Removes the 3 RBAC permissions (
charter-admin,charter-manage,charter-view). - Preserves shared
Contactsrecords andCurrencyexchange rates used by other modules.