]> source.dussan.org Git - nextcloud-server.git/commitdiff
check for sqlite
authorTom Needham <needham.thomas@gmail.com>
Tue, 27 Mar 2012 20:55:53 +0000 (20:55 +0000)
committerTom Needham <needham.thomas@gmail.com>
Tue, 27 Mar 2012 20:55:53 +0000 (20:55 +0000)
lib/migrate.php

index 6b1497d1d0c91500d91a1549b30174dfa7496803..d7d1400e2fa1a0d3d6ca9869d357101e4cbab0d0 100644 (file)
@@ -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),