parent
e232907698
commit
2faccaee0d
@ -0,0 +1,20 @@ |
||||
<?php |
||||
|
||||
namespace OC\Setup; |
||||
|
||||
class Sqlite extends AbstractDatabase { |
||||
public function initialize($config) { |
||||
} |
||||
|
||||
public function setupDatabase($username) { |
||||
$datadir = \OC_Config::getValue('datadirectory'); |
||||
|
||||
//delete the old sqlite database first, might cause infinte loops otherwise |
||||
if(file_exists("$datadir/owncloud.db")) { |
||||
unlink("$datadir/owncloud.db"); |
||||
} |
||||
//in case of sqlite, we can always fill the database |
||||
error_log("creating sqlite db"); |
||||
\OC_DB::createDbFromStructure('db_structure.xml'); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue