init
This commit is contained in:
11
crates/migration/src/lib.rs
Normal file
11
crates/migration/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
pub use sea_orm_migration::prelude::*;
|
||||
|
||||
|
||||
pub struct Migrator;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigratorTrait for Migrator {
|
||||
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
6
crates/migration/src/main.rs
Normal file
6
crates/migration/src/main.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use sea_orm_migration::prelude::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
cli::run_cli(migration::Migrator).await;
|
||||
}
|
||||
Reference in New Issue
Block a user