What problem does it solve?
This Skill automates the verification of Flyway database migrations, ensuring consistency in versioning, naming conventions, SQL syntax, and JPA entity synchronization to prevent critical database schema issues.
Core Features & Use Cases
- Version Number Validation: Checks for sequential and gapless version numbers (V1, V2, ... VN).
- Naming Convention Enforcement: Verifies the
V{N}__{snake_case_description}.sql pattern.
- SQL & JPA Synchronization: Confirms compatibility between SQL migration scripts and JPA entity definitions, including data types (UUID, TIMESTAMP WITH TIME ZONE, TEXT) and column lengths.
- Idempotency Checks: Ensures
CREATE statements use IF NOT EXISTS where appropriate.
- Index Strategy Review: Validates that essential columns have appropriate indexes.
- Use Case: Before merging a new database migration script, run this Skill to catch potential errors like missing version numbers, incorrect naming, or mismatches between the database schema and application code, thus avoiding deployment failures.
Quick Start
Run the verify-flyway-migrations skill to check the database migration scripts for consistency.