summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php
index 57feebe9b2d..826a7f1ddbf 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -464,6 +464,9 @@ class OC_DB {
$definition['name']=OC_Config::getValue( "dbuser", $oldname );
}
+ // we should never drop a database
+ $definition['overwrite'] = false;
+
$ret=self::$schema->createDatabase( $definition );
// Die in case something went wrong