Sea Migrations
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
Beta Warning
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
Install
Add sea-migrations
to your dependencies:
[dependencies]
# ...
sea-migrations= "0.0.1"
Usage
Check out this example application.