From: Robin Appelman Date: Thu, 16 Jun 2011 12:56:49 +0000 (+0200) Subject: default to sqlite3 over sqlite2 for new installations X-Git-Tag: v3.0~267^2~524 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3062723c343c25fe8e5d9482b699eaa4e4f6a6b7;p=nextcloud-server.git default to sqlite3 over sqlite2 for new installations --- diff --git a/lib/setup.php b/lib/setup.php index ab4a786c435..c2757021f20 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -66,8 +66,8 @@ class OC_SETUP { $password = htmlspecialchars_decode($options['adminpass']); $datadir = htmlspecialchars_decode($options['directory']); - //if only sqlite3 is available use that. - if($dbtype=='sqlite' and !is_callable('sqlite_open')){ + //use sqlite3 when available, otherise sqlite2 will be used. + if($dbtype=='sqlite' and class_exists('SQLite3')){ $dbtype='sqlite3'; }