X-Git-Url: https://vaikene.ee/gitweb/highlight.css?a=blobdiff_plain;f=src%2Fapps%2FPswGen%2FStorage%2Fmodule.h;h=7f53b268d23718b04d65d828a79ce9fbdf998337;hb=19bb35ea710505eb1951108bb4c9461315ad77a7;hp=95b935f2926bec0e31793eba401d7d7668c4fbd4;hpb=2ed96066b8600d07d9ada5dc44e9768fe56e633c;p=evaf diff --git a/src/apps/PswGen/Storage/module.h b/src/apps/PswGen/Storage/module.h index 95b935f..7f53b26 100644 --- a/src/apps/PswGen/Storage/module.h +++ b/src/apps/PswGen/Storage/module.h @@ -3,7 +3,7 @@ * @brief Implementation of the iStorage interface * @author Enar Vaikene * - * Copyright (c) 2011 Enar Vaikene + * Copyright (c) 2011-2012 Enar Vaikene * * This file is part of the eVaf C++ cross-platform application development framework. * @@ -139,6 +139,16 @@ private: // Methods */ bool createTables(); + /** + * Upgrades database tables if necessary + * @return True if ok; false if failed + * + * This function checks if database tables need to upgraded and + * performs the upgrade without a loss of data if possible. + * Returns false if upgrade is not possible or fails. + */ + bool upgradeTables(); + /** * Loads data from the database * @return True if ok; false if failed