anitnilay20 / anitnilay20/beatrix

Implement SQLite migration system

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
high-priority migrations sqlite
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Description
Add migration system for SQLite with SQLite-specific DDL limitations and workarounds.

## Requirements
- [ ] SQLite DDL operations (CREATE, DROP)
- [ ] ALTER TABLE limitations handling
- [ ] Table recreation for complex changes
- [ ] Index management
- [ ] Foreign key support
- [ ] Write comprehensive tests

## 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
```rust
Migration::new("add_user_column")
.alter_table("users", |table| {
table.add_column("phone", "TEXT");
})
.run(&db).await?; // Handles table recreation if needed
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.