Migration Helper
Analyze GORM model changes, estimate resulting schema (DDL) differences, and propose safe migration steps with verification guidance.
pilinux492 estrellas19 feb 2026 - Ocupación
- Categorías
- Ingeniería de Datos
Contenido de la habilidad When to Use
- A model change (field add/remove/type change) or migration code is proposed and you need a safe rollout plan.
Rules
- Start with a non-destructive assessment and clearly call out destructive operations (drops, type narrows, index changes).
- Recommend backups, staging verification, and zero-downtime considerations for risky changes.
Project-Specific Paths
- Core migration:
database/migrate/
- Example app migration:
example2/internal/database/migrate/
- Core models:
database/model/ (Auth, TwoFA, TwoFABackup, TempEmail)
Workflow
- Locate migration entrypoints in the paths above.
- Map model edits to likely DDL changes and affected queries.