Upgrading UltraStats¶
Typical upgrade (minor or maintenance releases)¶
- Download the version you need from GitHub Releases (source archive or tag checkout).
- On the web server, replace the contents of your UltraStats
src/area with the newsrc/from the release—do not remove your existingconfig.phpunless a release note tells you to. - Log in to the Admin Center in a browser.
- If the application prompts for a database upgrade, run it and confirm success. This applies statements from
src/contrib/db_update_v*.txtas needed; the internal schema version is tracked in theconfigtable and in code (functions_db.php).
If any statement fails, the upgrade page lists errors and does not advance the stored database_installedversion until all statements succeed—fix the underlying issue (or restore from backup) and run Upgrade again.
That covers most upgrades, as long as you keep backups and test after deploy.
What runs the database upgrade¶
- Admin → Upgrade (or the upgrade flow the UI exposes):
src/admin/upgrade.phpruns the appropriatedb_update_*.sqlfor your current version. Each file may contain a single or split batch of SQL, depending on version.
Release archives¶
- Pushing a SemVer tag
v*.*.*produces a release workflow tarballultrastats-X.Y.Z.tar.gzwith a top folderultrastats-X.Y.Z/. Use thesrc/inside that tree as the upload source to your web root.
Old documentation (2008–2009)¶
Community sites used to say: “copy everything under src/ into your site root, then ACP → database update.” The idea is the same; download URLs pointed at third-party mirrors and are no longer valid—use GitHub Releases instead. See historical-reference.md for snapshot links.