Upgrading
Database migrations run automatically when the backend starts.
Standard upgrade
./scripts/upgrade.sh # build latest
./scripts/upgrade.sh v1.1.0 # build specific version
Rollback
# Restore the backup and restart the previous image
cat servasec_backup_20260702.sql | docker compose exec -T db psql -U servasec servasec
Adding a migration (developers)
make migrate-create NAME=describe_your_change
Edit the generated file in backend/migrations/, rebuild, restart. The new migration runs automatically on next startup. See backend/migrations/MIGRATIONS.md for the version-to-app mapping.