dataManager->rebuild(); if ($params->hasFlag('hard')) { $message = "Are you sure you want to run a hard DB rebuild? It will drop unused columns, " . "decrease exceeding column lengths. It may take some time to process.\nType [Y] to proceed."; $io->writeLine($message); $input = $io->readLine(); if (strtolower($input) !== 'y') { return; } $this->dataManager->rebuildDatabase(null, RebuildMode::HARD); } $io->writeLine("Rebuild has been done."); } }