Changeset 6090 for trunk/include/dblayer
- Timestamp:
- May 7, 2010, 2:34:56 AM (14 years ago)
- Location:
- trunk/include/dblayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_pdo-sqlite.inc.php
r5503 r6090 22 22 // +-----------------------------------------------------------------------+ 23 23 24 define('REQUIRED_PDO -SQLITE_VERSION', '3.0.0');24 define('REQUIRED_PDO_SQLITE_VERSION', '3.0.0'); 25 25 define('DB_ENGINE', 'SQLite'); 26 26 … … 54 54 55 55 return $link; 56 } 57 58 function pwg_db_check_version() 59 { 60 $current_version = pwg_get_db_version(); 61 if (version_compare($current_version, REQUIRED_PDO_SQLITE_VERSION, '<')) 62 { 63 fatal_error( 64 sprintf( 65 'your database version is too old, you have "%s" and you need at least "%s"', 66 $current_version, 67 REQUIRED_PDO_SQLITE_VERSION 68 ) 69 ); 70 } 56 71 } 57 72 -
trunk/include/dblayer/functions_pgsql.inc.php
r5267 r6090 58 58 { 59 59 return $link; 60 } 61 } 62 63 function pwg_db_check_version() 64 { 65 $current_version = pwg_get_db_version(); 66 if (version_compare($current_version, REQUIRED_PGSQL_VERSION, '<')) 67 { 68 fatal_error( 69 sprintf( 70 'your database version is too old, you have "%s" and you need at least "%s"', 71 $current_version, 72 REQUIRED_PGSQL_VERSION 73 ) 74 ); 60 75 } 61 76 } -
trunk/include/dblayer/functions_sqlite.inc.php
r5503 r6090 65 65 } 66 66 67 function pwg_db_check_version() 68 { 69 $current_version = pwg_get_db_version(); 70 if (version_compare($current_version, REQUIRED_SQLITE_VERSION, '<')) 71 { 72 fatal_error( 73 sprintf( 74 'your database version is too old, you have "%s" and you need at least "%s"', 75 $current_version, 76 REQUIRED_SQLITE_VERSION 77 ) 78 ); 79 } 80 } 81 67 82 function pwg_db_check_charset() 68 83 {
Note: See TracChangeset
for help on using the changeset viewer.