Schema Management
MoroJS doesn't include a built-in migration system. Instead, manage your database schema using your database's native tools or third-party migration libraries.
Schema Versioning with SQL Files
Schema Versioning with SQL Files
typescript
Schema Management Best Practices
- • Version your schema files in source control
- • Use CREATE TABLE IF NOT EXISTS for safety
- • Test schema changes on development first
- • Keep backups before schema changes
- • Use transactions for multi-step changes
- • Document schema changes and reasoning
Production Schema Management
Safe Production Schema Updates
typescript
Database Backup Before Changes
typescript