From: Thomas Mueller Date: Fri, 15 Feb 2013 07:22:31 +0000 (+0100) Subject: we should never drop a database X-Git-Tag: v5.0.0beta1~36^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=102619ab87f3adb1d649a41232305eda704c7f57;p=nextcloud-server.git we should never drop a database --- 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