added option do_migration_to_winix_fullmorm do the config (only temporarily)
if true then we make Item::do_migration() and exit
This commit is contained in:
@@ -286,12 +286,16 @@ bool App::Init()
|
||||
//model_connector.set_doc_connector(doc_html_connector);
|
||||
|
||||
// temporary
|
||||
Item item_temp;
|
||||
item_temp.set_connector(model_connector);
|
||||
item_temp.do_migration(&model_connector);
|
||||
//std::exit(0);
|
||||
// -----------
|
||||
if( config.space.to_bool(L"do_migration_to_winix_fullmorm", false) )
|
||||
{
|
||||
Item item_temp;
|
||||
item_temp.set_connector(model_connector);
|
||||
item_temp.do_migration(&model_connector, log);
|
||||
|
||||
log << log1 << "Migrations complete, now remove do_migration_to_winix_fullmorm from the config" << logend;
|
||||
std::exit(0);
|
||||
}
|
||||
/////////////
|
||||
|
||||
db_conn.SetConnParam(config.db_database, config.db_user, config.db_pass);
|
||||
db_conn.WaitForConnection();
|
||||
|
||||
Reference in New Issue
Block a user