Conversation
|
@ctron can you try this and see if it works for you? use crate::common::migration::*;
use sea_orm_migration::{MigratorTraitSelf, prelude::*};
pub struct Migrator {
pub i: i32,
}
#[async_trait::async_trait]
impl MigratorTraitSelf for Migrator {
fn migrations(&self) -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20220118_000001_create_cake_table::Migration),
Box::new(m20220118_000002_create_fruit_table::Migration),
]
}
}[patch.crates-io]
sea-orm-migration = { git = "https://github.com/SeaQL/sea-orm", branch = "migrator-self" } |
1797c55 to
a8f1c20
Compare
|
I won't be able to actually try it out this week. But taking a quick look, that looks very promising. As the |
|
thanks, please give it a try and let me know. want to have some user feedback before merging this in. |
|
@ctron got any fun? |
I'm so sorry. Especially as you came up with a quick fix like that. But I wasn't able to test it yet. It's still on my todo list, as this problem still persists and we do need a fix. So it still is relevant. |
|
no problem, I've rebased the branch |
|
Finally had some time to check this out. Yes, having this would be awesome! |
|
I hope there's no conflict! |
🎉 Released In 2.0.0-rc.32 🎉Huge thanks for the contribution! |
#2803