Description
Add migration system for SQLite with SQLite-specific DDL limitations and workarounds.
Requirements
Acceptance Criteria
- SQLite migration support with limitations handled
- Table recreation for unsupported ALTER operations
- Proper foreign key handling
- Index management
Files to create
beatrix_core/src/relational/migrations/sqlite.rs
Example Usage
Migration::new("add_user_column")
.alter_table("users", |table| {
table.add_column("phone", "TEXT");
})
.run(&db).await?; // Handles table recreation if needed
Description
Add migration system for SQLite with SQLite-specific DDL limitations and workarounds.
Requirements
Acceptance Criteria
Files to create
beatrix_core/src/relational/migrations/sqlite.rsExample Usage