summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-04-09 15:21:57 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-04-09 15:21:57 +0200
commit3e0858e51f885badb58b4ea3a7666937b3158bff (patch)
tree46a165ffbf4a17e3c49a065fd25f7fb349af1f80
parent78ee4c1327313a0d2b8153be01cb77770cf90a81 (diff)
downloadnextcloud-server-3e0858e51f885badb58b4ea3a7666937b3158bff.tar.gz
nextcloud-server-3e0858e51f885badb58b4ea3a7666937b3158bff.zip
private -> protected
-rw-r--r--core/command/db/converttype.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index d419ca61a8b..81a89de97f8 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -145,7 +145,7 @@ class ConvertType extends Command {
$this->convertDB($fromDB, $toDB, $tables, $input, $output);
}
- private function getToDBConnection(InputInterface $input, OutputInterface $output) {
+ protected function getToDBConnection(InputInterface $input, OutputInterface $output) {
$type = $input->getArgument('type');
$connectionParams = array(
'host' => $input->getArgument('hostname'),
@@ -160,12 +160,12 @@ class ConvertType extends Command {
return $this->connectionFactory->getConnection($type, $connectionParams);
}
- private function getTables(Connection $db) {
+ protected function getTables(Connection $db) {
$schemaManager = $db->getSchemaManager();
return $schemaManager->listTableNames();
}
- private function copyTable(Connection $fromDB, Connection $toDB, $table, OutputInterface $output) {
+ protected function copyTable(Connection $fromDB, Connection $toDB, $table, OutputInterface $output) {
/** @var $progress \Symfony\Component\Console\Helper\ProgressHelper */
$progress = $this->getHelperSet()->get('progress');
$query = 'SELECT COUNT(*) FROM '.$table;
@@ -185,7 +185,7 @@ class ConvertType extends Command {
$progress->finish();
}
- private function convertDB(Connection $fromDB, Connection $toDB, array $tables, InputInterface $input, OutputInterface $output) {
+ protected function convertDB(Connection $fromDB, Connection $toDB, array $tables, InputInterface $input, OutputInterface $output) {
$this->config->setValue('maintenance', true);
$type = $input->getArgument('type');
try {
@@ -216,7 +216,7 @@ class ConvertType extends Command {
$this->config->setValue('maintenance', false);
}
- private function saveDBInfo(InputInterface $input) {
+ protected function saveDBInfo(InputInterface $input) {
$type = $input->getArgument('type');
$username = $input->getArgument('username');
$dbhost = $input->getArgument('hostname');