Some more colors.

This commit is contained in:
Andreas Fischer 2014-03-31 20:51:30 +02:00
parent f9853b253c
commit b39a74ff6c
1 changed files with 2 additions and 2 deletions

View File

@ -102,14 +102,14 @@ class ConvertType extends Command {
$schemaManager = $toDB->getSchemaManager();
$toTables = $schemaManager->listTableNames();
if (!empty($toTables)) {
$output->writeln('Clearing schema in new database');
$output->writeln('<info>Clearing schema in new database</info>');
}
foreach($toTables as $table) {
$schemaManager->dropTable($table);
}
}
$output->writeln('Creating schema in new database');
$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();