aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2022-11-28 10:59:46 -0500
committerNathan Perry <np@nathanperry.dev>2022-11-28 10:59:46 -0500
commitd649248b17cd3ac20a499464b559c7d83e9236fb (patch)
treebd12e1c1850dd9578727828cb1983c16ce8995b4 /Cargo.toml
parent20b5cd1498fcd0e03e7c92dd40e78cdb8bc35b8b (diff)
db: run migrations in db connect, upgrade diesel
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4beb2d1..2e31c2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
[features]
default = ["db", "games"]
-db = ["diesel", "postgres", "r2d2_postgres"]
+db = ["diesel", "postgres", "r2d2_postgres", "diesel_migrations"]
games = []
[dependencies]
@@ -20,7 +20,7 @@ dotenv = "^0.13"
chrono = "^0.4"
time = "^0.1"
fern = { version = "^0.5", features = ["colored"] }
-diesel = { version = "~1.4", features = ["postgres", "chrono", "r2d2"], optional = true }
+diesel = { version = "2.0", features = ["postgres", "chrono", "r2d2"], optional = true }
ctrlc = { version = "~3.1", features = ["termination"] }
rand = "^0.6"
either = "~1.5"
@@ -37,6 +37,7 @@ pest = "~2.1"
pest_derive = "~2.1"
postgres = { version = "^0.19", optional = true, features = ["with-chrono-0_4"] }
r2d2_postgres = { version = "^0.18", optional = true }
+diesel_migrations = { version = "2.0", optional = true }
envconfig = "^0.8"
envconfig_derive = "^0.8"