A new database bootstrap and schema repair system has been implemented as part of the ongoing Mir Vengeance modernisation project.
This system allows the server to automatically validate and repair parts of the database structure during startup, reducing manual maintenance and improving deployment reliability.
What Was Completed
The server now performs a series of startup checks against the database before loading game data.
These checks can:
- Verify required tables exist
- Verify required columns exist
- Detect missing schema elements
- Create missing columns where appropriate
- Apply database upgrades automatically
- Reduce dependency on manual SQL scripts
This allows new server builds to introduce additional database fields without requiring extensive manual intervention.
Why This Matters
Historically, many Mir server updates required administrators to manually apply SQL changes before a new build could be used.
Missing tables or columns often resulted in:
- Startup failures
- Runtime errors
- Invalid data loading
- Failed feature deployments
The new bootstrap system reduces these risks by allowing the server to validate its environment automatically.
Benefits
Easier Development
New features can introduce database changes with less risk of deployment errors.
Improved Reliability
The server can detect missing schema elements before they become runtime problems.
Faster Deployment
Database updates become significantly easier to manage across development, testing and production environments.
Future Expansion
The system provides a foundation for future automated database migrations and version tracking.
Examples
The bootstrap process can assist with areas such as:
- Character data
- Hero systems
- Intelligent Creatures
- Guild systems
- Storage
- Crafting
- Future gameplay systems
As new features are added, the database can evolve alongside the server with far less manual intervention.
Project Status
Database bootstrap system completed
Schema validation completed
Missing column detection completed
Automatic repair functionality completed
Integrated into server startup
The database now forms part of the server’s self-validating startup process and provides a more robust foundation for future development.