mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-21 17:44:06 +00:00
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.
This commit is contained in:
committed by
Ryan Leckey
parent
674d89bbab
commit
fc6eb6363b
@@ -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?,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user