/** * Run repair step. * Must throw exception on error. * * @throws \Exception in case of failure */ public function run() { foreach ($this->oldDatabaseTables() as $tableName) { if ($this->connection->tableExists($tableName)) { $this->emit('\\OC\\Repair', 'info', [sprintf('Table %s has been deleted', $tableName)]); $this->connection->dropTable($tableName); } } }