Self-Hosting
Upgrading
Database migrations and version compatibility.
Upgrading
Database Migrations
Kaiten uses automatic database migrations via Go's embed package. Migrations run automatically when the API starts, or can be run manually.
Automatic (Default)
Migrations run on API startup. No action needed.
Manual
go run api/cmd/seeder/main.go --run-migrationsThis requires KAITEN_DATABASE_CONNECTION_STRING to be set.
Upgrade Procedure
- Pull the latest code or image
- Backup your database (if production)
- Restart the API — migrations run automatically
- Verify health:
curl http://localhost:6000/api/healthz
Breaking Changes
When upgrading between major versions, check the CHANGELOG for:
- Schema changes that require data migration
- API endpoint changes
- Environment variable changes
- Docker Compose configuration changes
Rollback
If needed, roll back by:
- Restoring the database backup
- Running the previous API version

