Updates
Nyravio uses Flyway for database schema management. Migrations run automatically on application startup when upgrading to a new version.
Pre-upgrade checklist
Section titled “Pre-upgrade checklist”- Back up the database before upgrading — see Backup
- Read the changelog for breaking changes: CHANGELOG.md
- Test in staging if upgrading across multiple minor versions
Upgrade from source
Section titled “Upgrade from source”cd nyraviogit pulldocker compose up -d --buildThe build process compiles the application and applies any pending database migrations on startup.
Upgrade prebuilt images
Section titled “Upgrade prebuilt images”# Stop the current instance (preserves data volumes)docker compose stop
# Start with the new versionNYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:NEW_VERSION docker compose up -d --no-buildVerification
Section titled “Verification”After upgrading, verify the deployment:
# Liveness probecurl http://localhost:8080/health/live
# Readiness probe (includes database connectivity)curl http://localhost:8080/health/readyCheck application logs for any migration errors:
docker compose logs nyravio | grep -i flywayRollback
Section titled “Rollback”Rollback requires a pre-upgrade database backup. There is no automatic rollback mechanism.
To roll back:
- Stop the application
- Follow the Recovery procedure using the pre-upgrade backup
- Set
NYRAVIO_IMAGEto the previous version
# For prebuilt imagesexport NYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:PREVIOUS_VERSION
# For source-built images (if saved with docker save)docker load -i /path/to/nyravio-image-backup.tarThen follow the full restore procedure in Recovery.
Important limitations
Section titled “Important limitations”- Running a newer application version against a restored older database may apply forward-only migrations that cannot be reversed
- Running an older version against a newer schema will fail on startup (Flyway detects the version mismatch)
- The backup metadata records the original image identity — the restore procedure verifies it before any destructive operation
Next steps
Section titled “Next steps”- Backup — create a pre-upgrade backup
- Recovery — restore from backup
- Troubleshooting — common upgrade issues