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
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 unit tests - Uses unsafe code to access private variables from SeaORM - If migrations are not all run sequentially (user upgrades by 2 or more versions of the application at once) the migration version will get out of date with the migration code.
Missing features: - Creating join tables - Automatically doing basic migrations such as adding a column based on the SeaORM Entity
Add sea-migrations
to your dependencies:
```toml [dependencies]
sea-migrations= "0.0.1" ```
Check out this example application.