Rev 1130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1130 | Rev 1219 | ||
---|---|---|---|
Line 31... | Line 31... | ||
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, |
34 | // then it would re-generate the keys (and therefore destroy the existing SystemID). |
34 | // then it would re-generate the keys (and therefore destroy the existing SystemID). |
35 | $version = 1000; |
35 | $version = 1000; |
36 | $db->query("UPDATE ###config SET value = ? WHERE name = 'database_version'", array($version)); |
36 | $db->query("UPDATE ###config SET value = ? WHERE name = 'database_version'", array("$version")); |
37 | 37 | ||
38 | return $version; |
38 | return $version; |
39 | } |
39 | } |