This crate aims to provide a simple solution to doing database migrations with SeaORM.
Features: - Automatically create database tables from your SeaORM entities - Write your migration code in Rust - Supports all SeaORM database backends - Basic protections against migration inconsistencies
This project is in beta and could have major changes to API or behavior in future updates. Below are some issues the project currently has:
Internal issues: - Doesn't have fully test suite (only basic tests provided by example and Rust docs) - Uses unsafe code to access private variables from SeaORM (waiting on seaQL/sea-query#183)
Missing features: - Add relationship in migration (waiting on seaQL/sea-query#184) - 1 to many relations - many to many relations - indexed columns
Add sea-migrations
to your dependencies:
```toml [dependencies]
sea-migrations= "0.0.1" ```
Check out this example application.