added WINIX_MAKE_DATABASE_MIGRATION plugin message for making migrations from plugins
This commit is contained in:
@@ -316,6 +316,14 @@ bool App::TryToMakeDatabaseMigration()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
PluginRes res = plugin.Call(nullptr, WINIX_MAKE_DATABASE_MIGRATION);
|
||||
|
||||
if( config.db_stop_if_migration_fails && res.res_false > 0 )
|
||||
{
|
||||
log << log1 << "App: database migration of some plugins failed, stopping winix" << logend;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user