summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-15 08:22:31 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-15 08:22:31 +0100
commit102619ab87f3adb1d649a41232305eda704c7f57 (patch)
tree795c44a09ffc8ad125fcd57250ddca6b1ce540a5 /lib/db.php
parent166693426daee89b9499a81a5f9b4e8e9bbab612 (diff)
downloadnextcloud-server-102619ab87f3adb1d649a41232305eda704c7f57.tar.gz
nextcloud-server-102619ab87f3adb1d649a41232305eda704c7f57.zip
we should never drop a database
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php
index 28923e48f0c..edbc2fe13ed 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -497,6 +497,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