From 102619ab87f3adb1d649a41232305eda704c7f57 Mon Sep 17 00:00:00 2001
From: Thomas Mueller <thomas.mueller@tmit.eu>
Date: Fri, 15 Feb 2013 08:22:31 +0100
Subject: [PATCH] we should never drop a database

---
 lib/db.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/db.php b/lib/db.php
index 28923e48f0..edbc2fe13e 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
-- 
GitLab