feat: use sea-orm migrations

This commit is contained in:
Suiranoil
2023-07-04 15:47:17 +03:00
parent 5cfcf7f454
commit a177b99cd3
14 changed files with 982 additions and 116 deletions

19
migration/Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "migration"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
name = "migration"
path = "src/lib.rs"
[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration]
version = "0.11.3"
features = [
"runtime-tokio-rustls",
"sqlx-postgres",
]