Setup Databases
Initialize all databases using the centralized ORISO-Database repository. Liquibase is DISABLED in all services - schemas are managed separately.All database schemas are managed in the
ORISO-Database repository, not by individual services. This provides centralized control and versioning of database schemas.Verify Database Pods are Running
Ensure database pods are operational before proceeding. Databases are deployed via Helm.
All database pods should show status
Running and 1/1 ready. If not, check Deploy Infrastructure.Run Master Setup Script
Use the master setup script to initialize all databases at once.
The master setup script will:
- Create all MariaDB databases (7 databases)
- Import all MariaDB schemas from
mariadb/*/schema.sql - Initialize MongoDB collections
- Create system users
- Verify all databases are accessible
The script should complete without errors. Verify by checking databases:
Create System Users
Create system users required for Matrix and other services.
System users created:
caritas_admin- Admin user for Caritas operationsoriso_call_admin- Admin for call managementgroup-chat-system- System user for group chats
Job should complete successfully. Check logs to verify all users were created.
Database Schema Management
Schema Location
All schemas are inORISO-Database:
Liquibase Status
Liquibase is DISABLED in all backend services. This means:- Services do NOT auto-migrate on startup
- All schema changes must be done manually via ORISO-Database scripts
- Schema versions are tracked in ORISO-Database repository
Updating Schemas
- Update schema files in
ORISO-Database/mariadb/<service>/schema.sql - Run migration scripts manually
- Services will use updated schemas on next connection
Backup and Restore
Backup Scripts
Location:caritas-workspace/ORISO-Database/scripts/backup/
Restore Scripts
Location:caritas-workspace/ORISO-Database/scripts/restore/
Troubleshooting
Master Setup Script Fails
Schema Import Errors
System Users Not Created
Next Steps
- Deploy Infrastructure - If databases not yet deployed
- Configure Keycloak - Import Keycloak realm
- Post-Deployment - Complete post-deployment steps