From 69e7ed2b1b6a20e1ec8264782ab72a74e78f6f23 Mon Sep 17 00:00:00 2001 From: Saurav Sharma Date: Mon, 19 Aug 2024 17:14:01 +0545 Subject: [PATCH] chore: update version to 0.15.0 Signed-off-by: Saurav Sharma --- Cargo.toml | 2 +- README.MD | 8 ++++---- src/migrator/mod.rs | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79c921e8..f08dccb1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqlx_migrator" -version = "0.14.0" +version = "0.15.0" edition = "2021" authors = ["Saurav Sharma "] homepage = "https://github.com/iamsauravsharma/sqlx_migrator" diff --git a/README.MD b/README.MD index 0ff2e5c8..d8279b9c 100644 --- a/README.MD +++ b/README.MD @@ -18,25 +18,25 @@ Supported Databases: Add `sqlx_migrator` to your `Cargo.toml` with the appropriate database feature: ```toml -sqlx_migrator = { version = "0.14.0", features=["postgres"] } +sqlx_migrator = { version = "0.15.0", features=["postgres"] } ``` OR ```toml -sqlx_migrator = { version = "0.14.0", features=["mysql"] } +sqlx_migrator = { version = "0.15.0", features=["mysql"] } ``` OR ```toml -sqlx_migrator = { version = "0.14.0", features=["sqlite"] } +sqlx_migrator = { version = "0.15.0", features=["sqlite"] } ``` OR ```toml -sqlx_migrator = { version = "0.14.0", features=[ +sqlx_migrator = { version = "0.15.0", features=[ "any", # Plus any one of above database driver ] } diff --git a/src/migrator/mod.rs b/src/migrator/mod.rs index 80ae9462..302859ce 100644 --- a/src/migrator/mod.rs +++ b/src/migrator/mod.rs @@ -427,9 +427,9 @@ fn only_related_migration( ) { let mut related_migrations = vec![]; for with in with_list { - // check if with migrations is already added or not sometimes with list contains - // migrations which are interrelated so we do not need to add already added - // migration again + // check if with migrations is already added or not. Sometimes with list + // contains migrations which are interrelated so we do not need to add + // already added migration again if !related_migrations.contains(&with) { related_migrations.push(with); match plan_type {