Index: trunk/include/dblayer/functions_pdo-sqlite.inc.php
===================================================================
--- trunk/include/dblayer/functions_pdo-sqlite.inc.php	(revision 5503)
+++ trunk/include/dblayer/functions_pdo-sqlite.inc.php	(revision 6090)
@@ -22,5 +22,5 @@
 // +-----------------------------------------------------------------------+
 
-define('REQUIRED_PDO-SQLITE_VERSION', '3.0.0');
+define('REQUIRED_PDO_SQLITE_VERSION', '3.0.0');
 define('DB_ENGINE', 'SQLite');
 
@@ -54,4 +54,19 @@
 
   return $link;
+}
+
+function pwg_db_check_version()
+{
+  $current_version = pwg_get_db_version();
+  if (version_compare($current_version, REQUIRED_PDO_SQLITE_VERSION, '<'))
+  {
+    fatal_error(
+      sprintf(
+        'your database version is too old, you have "%s" and you need at least "%s"',
+        $current_version,
+        REQUIRED_PDO_SQLITE_VERSION
+        )
+      );
+  }
 }
 
