diff options
Diffstat (limited to 'lib/private/Repair/DropOldTables.php')
-rw-r--r-- | lib/private/Repair/DropOldTables.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/private/Repair/DropOldTables.php b/lib/private/Repair/DropOldTables.php index 67eafaa930e..15d5b9a3577 100644 --- a/lib/private/Repair/DropOldTables.php +++ b/lib/private/Repair/DropOldTables.php @@ -23,11 +23,11 @@ namespace OC\Repair; -use OC\Hooks\BasicEmitter; -use OC\RepairStep; use OCP\IDBConnection; +use OCP\Migration\IOutput; +use OCP\Migration\IRepairStep; -class DropOldTables extends BasicEmitter implements RepairStep { +class DropOldTables implements IRepairStep { /** @var IDBConnection */ protected $connection; @@ -54,12 +54,10 @@ class DropOldTables extends BasicEmitter implements RepairStep { * * @throws \Exception in case of failure */ - public function run() { + public function run(IOutput $output) { foreach ($this->oldDatabaseTables() as $tableName) { if ($this->connection->tableExists($tableName)){ - $this->emit('\OC\Repair', 'info', [ - sprintf('Table %s has been deleted', $tableName) - ]); + $output->info(sprintf('Table %s has been deleted', $tableName)); $this->connection->dropTable($tableName); } } |