[Pkg-owncloud-commits] [owncloud] 39/153: Add option to create all app schemas instead of just installed app.

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 370593361b89063d7bd65c018ccd537d0ea1c0ab
Author: Andreas Fischer <bantu at owncloud.com>
Date:   Wed Apr 9 16:42:22 2014 +0200

    Add option to create all app schemas instead of just installed app.
---
 core/command/db/converttype.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 7e0a41b..f406148 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -98,6 +98,12 @@ class ConvertType extends Command {
 				InputOption::VALUE_NONE,
 				'remove all tables from the destination database'
 			)
+			->addOption(
+				'all-apps',
+				null,
+				InputOption::VALUE_NONE,
+				'whether to create schema for all apps instead of only installed apps'
+			)
 		;
 	}
 
@@ -120,7 +126,7 @@ class ConvertType extends Command {
 		$output->writeln('<info>Creating schema in new database</info>');
 		$schemaManager = new \OC\DB\MDB2SchemaManager($toDB);
 		$schemaManager->createDbFromStructure(\OC::$SERVERROOT.'/db_structure.xml');
-		$apps = \OC_App::getEnabledApps();
+		$apps = $input->getOption('all-apps') ? \OC_App::getAllApps() : \OC_App::getEnabledApps();
 		foreach($apps as $app) {
 			if(file_exists(\OC_App::getAppPath($app).'/appinfo/database.xml')) {
 				$schemaManager->createDbFromStructure(\OC_App::getAppPath($app).'/appinfo/database.xml');

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