summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Setup/Sqlite.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/Setup/Sqlite.php b/lib/private/Setup/Sqlite.php
index d95e70c8b0c..406c1e6fc9a 100644
--- a/lib/private/Setup/Sqlite.php
+++ b/lib/private/Setup/Sqlite.php
@@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OC\Setup;
class Sqlite extends AbstractDatabase {
@@ -29,14 +30,11 @@ class Sqlite extends AbstractDatabase {
return array();
}
- public function initialize($config) {
- }
-
public function setupDatabase($username) {
$datadir = $this->config->getValue('datadirectory', \OC::$SERVERROOT . '/data');
//delete the old sqlite database first, might cause infinte loops otherwise
- if(file_exists("$datadir/owncloud.db")) {
+ if (file_exists("$datadir/owncloud.db")) {
unlink("$datadir/owncloud.db");
}
//in case of sqlite, we can always fill the database