From 1123c097bb7675c1199f9f3d4f85efb55b59076f Mon Sep 17 00:00:00 2001 From: mordred Date: Wed, 12 Dec 2018 12:36:06 +0100 Subject: [PATCH] Skip input on liquidate --- src/dbm/DbManager.cpp | 4 ++-- src/dbm/DbManager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dbm/DbManager.cpp b/src/dbm/DbManager.cpp index b4545ae7..1be6b172 100644 --- a/src/dbm/DbManager.cpp +++ b/src/dbm/DbManager.cpp @@ -256,14 +256,14 @@ bool DbManager::modeLiquidate() return false; char type = '\0'; - if( !m_force ) +/* if( !m_force ) while( promptForChar( "This action will drop all tables in the database. Are you sure? [y/n]", type ) ) { if( type == 'y' ) break; if( type == 'n' ) return true; - } + }*/ std::string query = "SELECT TABLE_NAME " "FROM information_schema.tables " diff --git a/src/dbm/DbManager.h b/src/dbm/DbManager.h index d53e27f4..302a5422 100644 --- a/src/dbm/DbManager.h +++ b/src/dbm/DbManager.h @@ -47,7 +47,7 @@ class DbManager void setSchemaFile( const std::string& schemaFile ); void setInsertFile( const std::string& insertFile ); - void setForceMode( bool ); + void setForceMode( bool mode ); private: std::string m_host;