diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-03-31 19:27:18 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-03-31 19:27:18 +0200 |
commit | a585cec5303a7b3d361559f73bba154fcbe0c978 (patch) | |
tree | ad55653bf1c7d040cb8a3cca6e8ac028bad74cd6 /core | |
parent | e67cf99cef596da7db5171730523e110a1a055d0 (diff) | |
download | nextcloud-server-a585cec5303a7b3d361559f73bba154fcbe0c978.tar.gz nextcloud-server-a585cec5303a7b3d361559f73bba154fcbe0c978.zip |
Remove unnecessary and incorrect comments.
Diffstat (limited to 'core')
-rw-r--r-- | core/command/db/converttype.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index b445378783a..387f873adb6 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -94,13 +94,9 @@ class ConvertType extends Command { 'mssql' => 'pdo_sqlsrv', ); protected function execute(InputInterface $input, OutputInterface $output) { - // connect 'from' database $fromDB = \OC_DB::getConnection(); - - // connect 'to' database $toDB = $this->getToDBConnection($input, $output); - // Clearing schema in new database if ($input->getOption('clear-schema')) { $schemaManager = $toDB->getSchemaManager(); $toTables = $schemaManager->listTableNames(); @@ -112,7 +108,6 @@ class ConvertType extends Command { } } - // create tables in new database $output->writeln('Creating schema in new database'); $schemaManager = new \OC\DB\MDB2SchemaManager($toDB); $schemaManager->createDbFromStructure(\OC::$SERVERROOT.'/db_structure.xml'); @@ -123,10 +118,9 @@ class ConvertType extends Command { } } - // get tables from 'to' database $toTables = $this->getTables($toDB); - // get tables from 'from' database $fromTables = $this->getTables($fromDB); + // warn/fail if there are more tables in 'from' database $tables = array_diff($fromTables, $toTables); if (!empty($tables)) { @@ -140,7 +134,6 @@ class ConvertType extends Command { return; } } - // enable maintenance mode to prevent changes $tables = array_intersect($toTables, $fromTables); $this->convertDB($fromDB, $toDB, $tables, $input, $output); } |