diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 20:55:53 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 20:55:53 +0000 |
commit | 31d268fe929abefbbf14e76a96c02f18235451a8 (patch) | |
tree | 85236f886cb817f537c6a830b5fcabc7338c4624 /lib/migrate.php | |
parent | 553f4533c081e38e65ffb9981063d944fc58f431 (diff) | |
download | nextcloud-server-31d268fe929abefbbf14e76a96c02f18235451a8.tar.gz nextcloud-server-31d268fe929abefbbf14e76a96c02f18235451a8.zip |
check for sqlite
Diffstat (limited to 'lib/migrate.php')
-rw-r--r-- | lib/migrate.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/migrate.php b/lib/migrate.php index 6b1497d1d0c..d7d1400e2fa 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -482,6 +482,12 @@ class OC_Migrate{ $datadir = OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ); + // DB type + if( !is_callable( 'sqlite_open' ) || !class_exists( 'SQLite3' ) ){ + OC_Log::write( 'migration', 'SQLite not found', OC_Log::ERROR ); + return false; + } + // Prepare options array $options = array( 'portability' => MDB2_PORTABILITY_ALL & (!MDB2_PORTABILITY_FIX_CASE), |