Updating Solder¶
Back up before every update
Always back up your database and mod repository before updating. If something goes wrong, you can restore from backup and try again.
Standard Update (Bare-Metal)¶
Put Solder into maintenance mode, pull the latest code, update dependencies, run migrations, and bring it back up:
php artisan down
git pull
composer install --no-dev --no-interaction
npm ci
npm run build
php artisan migrate
php artisan optimize
php artisan up
Note
If git pull fails because untracked files would be overwritten, you may need to reset before pulling:
Replace <version-tag> with the tag of the version you were on before the update.
Docker Update¶
For Docker installations, pull the latest code and rebuild:
The container entrypoint handles migrations and optimization automatically on startup.
Catalog Integrity Migration¶
Before upgrading, put every Solder instance into maintenance mode and stop background jobs, integrations, and other processes that can write to its database. Keep them stopped until migrations finish. For Docker deployments, stop other application replicas before starting the updated container, which runs migrations automatically.
The catalog integrity migration checks for:
- Duplicate mod versions with the same mod and version label.
- Duplicate builds with the same modpack and version label.
- Duplicate links between a build and a mod version.
- Mod versions without a mod, builds without a modpack, or build membership links without an existing build or mod version.
If any check fails, this migration stops before changing any schema or data. The error identifies each affected relationship and an example record or duplicate key. It never deletes or merges records automatically.
Keep Solder offline, retain your backup, and review the reported records with your database administrator. Restore missing parents or correct links and version labels according to the intended catalog contents; remove records only after explicitly deciding that their data is unwanted. Rerun php artisan migrate after resolving the conflicts. Each run may identify further examples.
Once installed, the database rejects duplicate keys and broken references. A mod version referenced by a build cannot be deleted, nor can a mod with remaining versions or a modpack with remaining builds. Deleting a build removes its membership links, not its mod versions.
MySQL and MariaDB upgrades also align relationship columns with the existing unsigned integer IDs. Allow time for table alterations and index creation. Their schema changes are not transactional: if a database error occurs after the preflight succeeds, keep writers stopped and restore the backup or have your database administrator repair the partially applied migration before retrying. Rolling back removes the new constraints but keeps unsigned relationship columns, avoiding truncation of IDs created after the upgrade.
Branch Rename¶
The dev branch has been renamed to main, and the master branch has been removed. If your local clone still tracks the old branch, update it with:
git branch -m dev main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
Version-Specific Notes¶
v1.0.0¶
Use PHP 8.5 (8.4 minimum), Node.js 26 LTS, and npm.
- Laravel upgraded from 12 to 13
- Frontend rebuilt with Vite 8, Tailwind CSS v4, and Alpine.js —
npm ci && npm run buildis now a required deployment step - Authentication replaced with Laravel Fortify (2FA support) and Laravel Sanctum (API tokens)
- New environment variables:
MAIL_ENABLED,SOLDER_CORS_ORIGINS,SOLDER_INITIAL_ADMIN_EMAIL,SOLDER_INITIAL_ADMIN_PASSWORD - Password policy now requires minimum 8 characters and checks against breached databases
- Docker: Redis image replaced by Valkey
Run php artisan migrate to create the new personal_access_tokens, password_reset_tokens tables and add 2FA columns to users.
v0.8.0¶
Requires PHP 8.2+. Install PHP 8.2 or later and configure your web server to use it.
You must also update your .env file:
-
Rename
BROADCAST_DRIVERtoBROADCAST_CONNECTION: -
Rename
CACHE_DRIVERtoCACHE_STORE: -
Add the following line (see
.env.examplefor details):
v0.7.15¶
Requires PHP 8.1+. Install PHP 8.1 or later and configure your web server to use it.
v0.7.8¶
Requires PHP 8.0+. Install PHP 8.0 or later and configure your web server to use it.
Pre-v0.7¶
Full reinstall required
Updating from versions before v0.7 requires a complete reinstall. Back up your database and modpack resources (images), delete the Solder installation, and follow the Getting Started guide to install fresh.
After reinstalling, you will need to fix the Laravel migration table. The old table was named laravel_migrations with three columns (bundle, name, batch). The new table is named migrations with two columns (migration, batch).
To migrate the old table:
- Delete the
bundlecolumn. - Rename the
namecolumn tomigration. -
Rename the table:
-
Run
php artisan migrateto apply any remaining migrations.