1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

Skip input on liquidate

This commit is contained in:
mordred 2018-12-12 12:36:06 +01:00
parent e69d112d5f
commit 1123c097bb
2 changed files with 3 additions and 3 deletions

View file

@ -256,14 +256,14 @@ bool DbManager::modeLiquidate()
return false; return false;
char type = '\0'; 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 ) ) while( promptForChar( "This action will drop all tables in the database. Are you sure? [y/n]", type ) )
{ {
if( type == 'y' ) if( type == 'y' )
break; break;
if( type == 'n' ) if( type == 'n' )
return true; return true;
} }*/
std::string query = "SELECT TABLE_NAME " std::string query = "SELECT TABLE_NAME "
"FROM information_schema.tables " "FROM information_schema.tables "

View file

@ -47,7 +47,7 @@ class DbManager
void setSchemaFile( const std::string& schemaFile ); void setSchemaFile( const std::string& schemaFile );
void setInsertFile( const std::string& insertFile ); void setInsertFile( const std::string& insertFile );
void setForceMode( bool ); void setForceMode( bool mode );
private: private:
std::string m_host; std::string m_host;