summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/setup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index d80408de988..fa0b8f85905 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -116,6 +116,8 @@ class OC_SETUP {
}
}
else {
+ //delete the old sqlite database first, might cause infinte loops otherwise
+ unlink("$datadir/owncloud.db");
//in case of sqlite, we can always fill the database
OC_DB::createDbFromStructure('db_structure.xml');
}