[Pkg-owncloud-commits] [owncloud] 349/394: we should never drop a database

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 073e129ffd34a802e8d5b3879cdeee85835b1847
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Fri Feb 15 08:22:31 2013 +0100

    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 57feebe..826a7f1 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list