From cff5924ba8217367e71ad4f7a818b7cd5c3ad579 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 19 Oct 2022 19:42:20 +0000
Subject: [PATCH] Update Rust crate diesel_migrations to v2

---
 Cargo.lock | 51 +++++++++++++++++++++++++++++++++++++++++----------
 Cargo.toml |  2 +-
 2 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index a50e350..bac71eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -118,10 +118,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "b28135ecf6b7d446b43e27e225622a038cc4e2930a1022f51cdb97ada19b8e4d"
 dependencies = [
  "byteorder",
- "diesel_derives",
+ "diesel_derives 1.4.1",
  "libsqlite3-sys",
 ]
 
+[[package]]
+name = "diesel"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68c186a7418a2aac330bb76cde82f16c36b03a66fb91db32d20214311f9f6545"
+dependencies = [
+ "diesel_derives 2.0.1",
+]
+
 [[package]]
 name = "diesel_derives"
 version = "1.4.1"
@@ -133,12 +142,25 @@ dependencies = [
  "syn",
 ]
 
+[[package]]
+name = "diesel_derives"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "143b758c91dbc3fe1fdcb0dba5bd13276c6a66422f2ef5795b58488248a310aa"
+dependencies = [
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
 [[package]]
 name = "diesel_migrations"
-version = "1.4.0"
+version = "2.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf3cde8413353dc7f5d72fa8ce0b99a560a359d2c5ef1e5817ca731cd9008f4c"
+checksum = "e9ae22beef5e9d6fab9225ddb073c1c6c1a7a6ded5019d5da11d1e5c5adc34e2"
 dependencies = [
+ "diesel 2.0.2",
  "migrations_internals",
  "migrations_macros",
 ]
@@ -279,23 +301,23 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
 
 [[package]]
 name = "migrations_internals"
-version = "1.4.1"
+version = "2.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b4fc84e4af020b837029e017966f86a1c2d5e83e64b589963d5047525995860"
+checksum = "c493c09323068c01e54c685f7da41a9ccf9219735c3766fbfd6099806ea08fbc"
 dependencies = [
- "diesel",
+ "serde",
+ "toml",
 ]
 
 [[package]]
 name = "migrations_macros"
-version = "1.4.2"
+version = "2.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9753f12909fd8d923f75ae5c3258cae1ed3c8ec052e1b38c93c21a6d157f789c"
+checksum = "8a8ff27a350511de30cdabb77147501c36ef02e0451d957abea2f30caffb2b58"
 dependencies = [
  "migrations_internals",
  "proc-macro2",
  "quote",
- "syn",
 ]
 
 [[package]]
@@ -469,7 +491,7 @@ dependencies = [
  "cargo-husky",
  "colored",
  "config",
- "diesel",
+ "diesel 1.4.8",
  "diesel_migrations",
  "mockall",
  "serde",
@@ -674,6 +696,15 @@ dependencies = [
  "tokio",
 ]
 
+[[package]]
+name = "toml"
+version = "0.5.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7"
+dependencies = [
+ "serde",
+]
+
 [[package]]
 name = "unicode-ident"
 version = "1.0.5"
diff --git a/Cargo.toml b/Cargo.toml
index 7356f9f..87255b9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,5 +26,5 @@ colored = { version="2.0", default-features=false }
 
 [dev-dependencies]
 cargo-husky = { version="1.5", features=["run-cargo-fmt", "run-cargo-clippy"] }
-diesel_migrations = { version = "1.4", features=["sqlite"] }
+diesel_migrations = { version = "2.0", features=["sqlite"] }
 mockall = "0.11"