Updates¶
How to update a PteroCloud installation safely. This page documents the process, not a promise that any particular release exists.
Before you update¶
- Take a database backup.
- Save the pre-update reports:
php artisan pterocloud:diagnose --json > pre-update-diagnostics.json
php artisan pterocloud:compatibility --json > pre-update-compatibility.json
- Confirm the target version's compatibility status. A component reported
UNTESTEDorUNSUPPORTEDshould be resolved before upgrading.
Apply the update¶
- Replace the extension files with the new release.
- Run migrations (never
migrate:freshon a live install):
php artisan migrate
- Clear caches:
php artisan config:clear && php artisan cache:clear && php artisan view:clear
- Rebuild the frontend assets if the release includes them:
yarn install --frozen-lockfile && yarn build:production
- Re-run verification:
php artisan pterocloud:verify
php artisan pterocloud:health
php artisan pterocloud:compatibility
Version drift¶
Diagnostics compare the extension version, the compiled frontend version and (when pinned) the Blueprint version. A mismatch is reported as a warning or error with a documentation link; it never silently proceeds.
Rollback¶
There is no automated rollback of a schema migration. Restore the database backup taken before the update and reinstall the previous extension files.
Related¶
- Installation: upgrade
- Troubleshooting: updates
PC-UPD-###/PC-SYS-###in the error reference