[Pkg-owncloud-commits] [owncloud] 38/153: Do not attempt to covert to the same DBMS.

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:32 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 5ef7d69d418ef4323cc3dc93f5ec6d24315eef96
Author: Andreas Fischer <bantu at owncloud.com>
Date:   Wed Apr 9 15:57:33 2014 +0200

    Do not attempt to covert to the same DBMS.
---
 core/command/db/converttype.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 7e65d1f..7e0a41b 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -102,6 +102,14 @@ class ConvertType extends Command {
 	}
 
 	protected function execute(InputInterface $input, OutputInterface $output) {
+		if ($input->getArgument('type') === $this->config->getValue('dbtype', '')) {
+			$output->writeln(sprintf(
+				'<error>Can not convert from %1$s to %1$s.</error>',
+				$input->getArgument('type')
+			));
+			return 1;
+		}
+
 		$fromDB = \OC_DB::getConnection();
 		$toDB = $this->getToDBConnection($input, $output);
 

-- 
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