Subversion Repositories oidplus

Rev

Rev 1050 | Rev 1219 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1050 Rev 1130
Line 23... Line 23...
23
 * This function will be called by OIDplusDatabaseConnection.class.php at method afterConnect().
23
 * This function will be called by OIDplusDatabaseConnection.class.php at method afterConnect().
24
 * @param OIDplusDatabaseConnection $db is the OIDplusDatabaseConnection class
24
 * @param OIDplusDatabaseConnection $db is the OIDplusDatabaseConnection class
25
 * @return int new version set
25
 * @return int new version set
26
 * @throws \ViaThinkSoft\OIDplus\OIDplusException
26
 * @throws \ViaThinkSoft\OIDplus\OIDplusException
27
 */
27
 */
28
function oidplus_dbupdate_205(OIDplusDatabaseConnection $db) {
28
function oidplus_dbupdate_205(OIDplusDatabaseConnection $db): int {
29
        // Note: We update to version 1000, because we want to intentionally break older versions of OIDplus
29
        // Note: We update to version 1000, because we want to intentionally break older versions of OIDplus
30
        // if they try to connect to a database that is newer than their own program files. Older versions
30
        // if they try to connect to a database that is newer than their own program files. Older versions
31
        // of OIDplus checked for DB version 200..999 and failed if the version is outside this range.
31
        // of OIDplus checked for DB version 200..999 and failed if the version is outside this range.
32
        // The main reason is that the new version of OIDplus added encrypted private keys,
32
        // The main reason is that the new version of OIDplus added encrypted private keys,
33
        // and if an older version of OIDplus would try to connect to such a database,
33
        // and if an older version of OIDplus would try to connect to such a database,