mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +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:
parent
674d89bbab
commit
fc6eb6363b
1 changed files with 1 additions and 1 deletions
|
@ -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?,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue