What problem does it solve?
This Skill helps prevent broken or unsafe Vikunja database migrations by guiding developers to write cross-DB, production-safe migration code that handles errors correctly and avoids schema/data inconsistencies.
Core Features & Use Cases
- Cross-DB migration correctness (MySQL/PostgreSQL/SQLite): Ensures the same migration logic works reliably across the three supported databases.
- DDL error handling discipline: Forces handling of errors from
tx.Exec, session.Exec, and xorm calls so migrations do not falsely appear successful.
- Time-column and schema consistency: Enforces
time.Time for time fields and requires struct and frontend model sync after schema changes.
- Safety for path/user input: Requires sanitizing any user-supplied paths or archive entry names to prevent traversal and misuse.
- Validation via feature tests: Directs using
mage test:feature (SQLite default) to catch schema/behavior mismatches after changes.
Quick Start
Ask the AI to review or generate a new Vikunja migration for your struct change, ensuring cross-DB compatibility, strict error handling, correct time field usage, and updated frontend model types.