Schema Manager
Validates migration SQL, analyzes index health, and applies pending schema migrations to the target database
Latest: v1.0.0
- Initial release of schema-manager.
- Validates migration SQL files for syntax correctness.
- Analyzes database indexes to identify redundancies and optimization opportunities.
- Generates and applies cleanup migrations for redundant indexes.
- Applies all pending schema migrations in the correct order.
Schema Manager
Overview
A unified database schema management tool that validates pending migration SQL, analyzes current indexes for optimization opportunities, and applies pending migrations.
Features
- Migration Validation: Scans
/migrations/for SQL files, validates syntax against the target database. - Index Analysis: Identifies potentially redundant indexes using naming pattern recognition and generates cleanup migrations.
- Migration Execution: Applies all pending migrations (including auto-generated cleanup) in order.
Output Format
{
"migrations_validated": [],
"indexes_analyzed": {"total": 2, "redundant": ["idx_users_email_unique"]},
"migrations_executed": ["003_drop_redundant_indexes.sql"],
"status": "completed"
}
