sqlx_cli::db::run_drop: actually print the database name in confirm

This commit is contained in:
Austin Bonander 2020-05-18 14:30:25 -07:00 committed by Ryan Leckey
parent 35fd6f64cc
commit 9729385257

View File

@ -39,7 +39,10 @@ pub async fn run_drop() -> anyhow::Result<()> {
if db_exists {
if !Confirmation::new()
.with_text("\nAre you sure you want to drop the database: {}?")
.with_text(&format!(
"\nAre you sure you want to drop the database: {}?",
db_name
))
.default(false)
.interact()?
{