Skip to content
Snippets Groups Projects
Commit c3b57944 authored by Thomas Schmidt's avatar Thomas Schmidt
Browse files

Revert "enhance detection of un-initialized database", conflicted with setup step, needs rework

This reverts commit 7fb89c53.
parent 7fb89c53
No related branches found
No related tags found
No related merge requests found
...@@ -582,12 +582,6 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common ...@@ -582,12 +582,6 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
return $query; return $query;
} }
/* Dummy interface for sqlite, to stay compatible with the database abstraction */
function getUserInfo() {
return "sqlite standard user";
}
// }}} // }}}
// {{{ getServerVersion() // {{{ getServerVersion()
......
...@@ -97,14 +97,6 @@ class OC_DB { ...@@ -97,14 +97,6 @@ class OC_DB {
die( $error ); die( $error );
} }
self::$DBConnection->loadModule('Manager');
if (count(self::$DBConnection->listTables()) == 0) {
$error = 'database tables not initialized, using '.$CONFIG_DBTYPE.'. ('.self::$DBConnection->getUserInfo() . ')';
if(defined("DEBUG") && DEBUG) {error_log( $error);}
if(defined("DEBUG") && DEBUG) {error_log( self::$DBConnection->getUserInfo());}
die( $error );
}
// We always, really always want associative arrays // We always, really always want associative arrays
self::$DBConnection->setFetchMode(MDB2_FETCHMODE_ASSOC); self::$DBConnection->setFetchMode(MDB2_FETCHMODE_ASSOC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment