mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-04 10:30:50 +00:00
feat: return migration & now with tokio
This commit is contained in:
parent
b561714697
commit
0e154ae3f9
2 changed files with 9 additions and 1 deletions
|
|
@ -9,10 +9,12 @@ 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" }
|
||||||
|
|
||||||
[dependencies.sea-orm-migration]
|
[dependencies.sea-orm-migration]
|
||||||
version = "^0.10"
|
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
6
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;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue