Rev 1050 | Rev 1090 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1050 | Rev 1080 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | // Note: The config setting "database_version" is inserted in setup/sql/...sql, not in the OIDplus core init |
34 | // Note: The config setting "database_version" is inserted in setup/sql/...sql, not in the OIDplus core init |
35 | throw new OIDplusConfigInitializationException(_L('Cannot determine database version (the entry "database_version" inside the table "###config" is probably missing)')); |
35 | throw new OIDplusConfigInitializationException(_L('Cannot determine database version (the entry "database_version" inside the table "###config" is probably missing)')); |
36 | } |
36 | } |
37 | $version = $row['value']; |
37 | $version = $row['value']; |
38 | if (!is_numeric($version)) { |
38 | if (!is_numeric($version)) { |
39 | throw new OIDplusConfigInitializationException(_L('Entry "database_version" inside the table "###config" seems to be wrong (expect number between 200 and 999)')); |
39 | throw new OIDplusConfigInitializationException(_L('Entry "database_version" inside the table "###config" seems to be wrong (needs to be a number)')); |
40 | } |
40 | } |
41 | 41 | ||
42 | // Upgrade from old versions |
42 | // Upgrade from old versions |
43 | try { |
43 | try { |
44 | if ($version == 200) { |
44 | if ($version == 200) { |