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,10 +9,12 @@ name = "migration"
path = "src/lib.rs"
[dependencies]
tokio = { version = "^1.21", features = ["macros"] }
serde = { version = "^1.0", features = ["derive"] }
chrono = "^0.4"
portfolio-entity = { path = "../entity" }
[dependencies.sea-orm-migration]
version = "^0.10"
features = [ "runtime-tokio-native-tls", "sqlx-postgres", "sqlx-sqlite"]
features = [ "runtime-tokio-native-tls", "sqlx-postgres", "sqlx-sqlite"]

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;
}