diff options
| author | Nathan Perry <np@nathanperry.dev> | 2022-11-28 10:59:46 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2022-11-28 10:59:46 -0500 |
| commit | d649248b17cd3ac20a499464b559c7d83e9236fb (patch) | |
| tree | bd12e1c1850dd9578727828cb1983c16ce8995b4 /Cargo.toml | |
| parent | 20b5cd1498fcd0e03e7c92dd40e78cdb8bc35b8b (diff) | |
db: run migrations in db connect, upgrade diesel
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |
