diff --git a/code/SQLiteDatabaseConfigurationHelper.php b/code/SQLiteDatabaseConfigurationHelper.php index 98cd985..e394749 100644 --- a/code/SQLiteDatabaseConfigurationHelper.php +++ b/code/SQLiteDatabaseConfigurationHelper.php @@ -107,9 +107,7 @@ class SQLiteDatabaseConfigurationHelper implements DatabaseConfigurationHelper { ); } - public function requireDatabaseVersion($databaseConfig) { - $success = false; - $error = ''; + public function getDatabaseVersion($databaseConfig) { $version = 0; if(class_exists('SQLite3')) { @@ -128,6 +126,14 @@ class SQLiteDatabaseConfigurationHelper implements DatabaseConfigurationHelper { } } + return $version; + } + + public function requireDatabaseVersion($databaseConfig) { + $success = false; + $error = ''; + $version = $this->getDatabaseVersion($databaseConfig); + if($version) { $success = version_compare($version, '3.3', '>='); if(!$success) {