diff --git a/core/Command/Db/Migrations/ExecuteCommand.php b/core/Command/Db/Migrations/ExecuteCommand.php index 8570db77632f3763cbe33ee66257b1ed4ff0ef41..6aad4f4973f06b736fd17c6da7f6e91d37a812f2 100644 --- a/core/Command/Db/Migrations/ExecuteCommand.php +++ b/core/Command/Db/Migrations/ExecuteCommand.php @@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations; use OC\DB\MigrationService; +use OC\Migration\ConsoleOutput; use OCP\IDBConnection; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -57,7 +58,7 @@ class ExecuteCommand extends Command { public function execute(InputInterface $input, OutputInterface $output) { $appName = $input->getArgument('app'); - $ms = new MigrationService($appName, $this->connection); + $ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output)); $version = $input->getArgument('version'); $ms->executeStep($version); diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index 868516a901390d7fd224f90b0fc846d103943aad..307989c845adcd56fea764e3344de66a54b39b1e 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations; use OC\DB\MigrationService; +use OC\Migration\ConsoleOutput; use OCP\IConfig; use OCP\IDBConnection; use Symfony\Component\Console\Command\Command; @@ -113,7 +114,7 @@ class Version implements ISqlMigration { public function execute(InputInterface $input, OutputInterface $output) { $appName = $input->getArgument('app'); - $ms = new MigrationService($appName, $this->connection); + $ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output)); $kind = $input->getArgument('kind'); $version = date('YmdHis'); diff --git a/core/Command/Db/Migrations/MigrateCommand.php b/core/Command/Db/Migrations/MigrateCommand.php index b19410f10c560bcb7eacc6f040fac9f04cce7445..2b0e082acaa640a0d6aeb5af3477cd8ce7bd7470 100644 --- a/core/Command/Db/Migrations/MigrateCommand.php +++ b/core/Command/Db/Migrations/MigrateCommand.php @@ -23,6 +23,7 @@ namespace OC\Core\Command\Db\Migrations; use OC\DB\MigrationService; +use OC\Migration\ConsoleOutput; use OCP\IDBConnection; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -54,7 +55,7 @@ class MigrateCommand extends Command { public function execute(InputInterface $input, OutputInterface $output) { $appName = $input->getArgument('app'); - $ms = new MigrationService($appName, $this->connection); + $ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output)); $version = $input->getArgument('version'); $ms->migrate($version); diff --git a/core/Command/Db/Migrations/StatusCommand.php b/core/Command/Db/Migrations/StatusCommand.php index 72d8cb030786b6b0f7dcdea3b3bcff5f15292ad2..20172000ee3d90e1580ce7ae806af7c54f141cf1 100644 --- a/core/Command/Db/Migrations/StatusCommand.php +++ b/core/Command/Db/Migrations/StatusCommand.php @@ -22,6 +22,7 @@ namespace OC\Core\Command\Db\Migrations; use OC\DB\MigrationService; +use OC\Migration\ConsoleOutput; use OCP\IDBConnection; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -50,7 +51,7 @@ class StatusCommand extends Command { public function execute(InputInterface $input, OutputInterface $output) { $appName = $input->getArgument('app'); - $ms = new MigrationService($appName, $this->connection); + $ms = new MigrationService($appName, $this->connection, new ConsoleOutput($output)); $infos = $this->getMigrationsInfos($ms); foreach ($infos as $key => $value) {