Changeset 6090 for trunk/include/dblayer/functions_pdo-sqlite.inc.php
- Timestamp:
- 05/07/10 02:34:56 (3 years ago)
- Files:
-
- 1 modified
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
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)