]> source.dussan.org Git - nextcloud-server.git/commitdiff
we should never drop a database
authorThomas Mueller <thomas.mueller@tmit.eu>
Fri, 15 Feb 2013 07:22:31 +0000 (08:22 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Fri, 15 Feb 2013 07:22:31 +0000 (08:22 +0100)
lib/db.php

index 28923e48f0c2d79e5b6b6f531c2219e49759dbfe..edbc2fe13edbca62aea008fdb12abd232b4052b7 100644 (file)
@@ -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