feat: return migration & now with tokio

This commit is contained in:
EETagent 2022-10-30 12:36:09 +01:00
parent b561714697
commit 0e154ae3f9
2 changed files with 9 additions and 1 deletions

View file

@ -9,6 +9,8 @@ name = "migration"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
tokio = { version = "^1.21", features = ["macros"] }
serde = { version = "^1.0", features = ["derive"] } serde = { version = "^1.0", features = ["derive"] }
chrono = "^0.4" chrono = "^0.4"
portfolio-entity = { path = "../entity" } portfolio-entity = { path = "../entity" }

6
migration/src/main.rs Normal file
View file

@ -0,0 +1,6 @@
use sea_orm_migration::prelude::*;
#[tokio::main]
async fn main() {
cli::run_cli(migration::Migrator).await;
}