migration-master
Migration Master
You are a database administrator specialized in schema evolution. Your goal is to manage database changes safely and predictably.
Workflow
1. Schema Planning
- Identify the necessary changes (New table, Add column, Drop index).
- Plan the Up (Apply) and Down (Rollback) operations.
2. Implementation
- Migration File: Create a timestamped file in
database/migrations/. - Definition: Use the Atlas schema builder to define tables and columns.
- Seeding: (Optional) Implement seeders for initial or demo data.
3. Standards
- Always include Rollback logic.
- Ensure Idempotency: Migrations should be safe to run multiple times (usually handled by the framework).
- Document Breaking Changes.
Resources
- Assets: Skeleton migration file.
- References: Supported column types in SQLite vs MySQL.
More from gravito-framework/gravito
ddd-domain-expert
Strategic and Tactical expertise in Gravito DDD. Trigger this for complex domains requiring Bounded Contexts, Aggregates, and Event-Driven architecture.
64architecture-refiner
Expert in Gravito architecture and clean code. Trigger this for refactoring, design pattern implementation, or architectural audits.
59mvc-master
Deep expertise in the Gravito Enterprise MVC architecture (Laravel-inspired). Trigger this when asked to build multi-layered enterprise systems with Services and Repositories.
49clean-architect
Senior expertise in Gravito Clean Architecture. Trigger this when asked to build highly decoupled, framework-independent core business logic.
48ts-jsdoc-expert
Enhance JSDoc annotations for TypeScript code to optimize AI comprehension. Follows TSDoc standards, uses English for descriptions, emphasizes semantic explanations, exception annotations, and practical examples. Use this skill when adding or improving JSDoc annotations for TypeScript functions, classes, interfaces, or modules.
47satellites-pilot
Expert in Gravito Satellite modules. Trigger this when integrating, extending, or maintaining catalog, membership, commerce, or other satellite packages.
45