From fc6eb6363b0996b702eb57aa9b9653f8b2285e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4umler?= Date: Sun, 21 Mar 2021 13:53:01 +0100 Subject: [PATCH] sqlx-cli database reset fix confirmation flag sqlx database reset currenctly requires no confirmation and a confirmation when -y flag is set. Should be the other way around as it is for sqlx database drop. This commit fixes this. --- sqlx-cli/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-cli/src/lib.rs b/sqlx-cli/src/lib.rs index 7ff1cf0c..5dd4aeef 100644 --- a/sqlx-cli/src/lib.rs +++ b/sqlx-cli/src/lib.rs @@ -42,7 +42,7 @@ pub async fn run(opt: Opt) -> anyhow::Result<()> { DatabaseCommand::Create => database::create(&database_url).await?, DatabaseCommand::Drop { yes } => database::drop(&database_url, !yes).await?, DatabaseCommand::Reset { yes, source } => { - database::reset(&source, &database_url, yes).await? + database::reset(&source, &database_url, !yes).await? } DatabaseCommand::Setup { source } => database::setup(&source, &database_url).await?, },