diff options
author | Joas Schilling <coding@schilljs.com> | 2023-10-31 12:06:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-11-03 15:44:46 +0100 |
commit | 6f39d82031202a2a8d1fb81ea448a2ffdc52cc29 (patch) | |
tree | 26f76451f1462ea5669f1d53e9cd0ebf7d79e7f2 /lib/private/Setup/AbstractDatabase.php | |
parent | 50de7553b582744c7376ca5c7bcff0ba47c1e6b3 (diff) | |
download | nextcloud-server-6f39d82031202a2a8d1fb81ea448a2ffdc52cc29.tar.gz nextcloud-server-6f39d82031202a2a8d1fb81ea448a2ffdc52cc29.zip |
fix(install): Make installing more verbose
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Setup/AbstractDatabase.php')
-rw-r--r-- | lib/private/Setup/AbstractDatabase.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Setup/AbstractDatabase.php b/lib/private/Setup/AbstractDatabase.php index 79f23de8ef8..6bef40338c9 100644 --- a/lib/private/Setup/AbstractDatabase.php +++ b/lib/private/Setup/AbstractDatabase.php @@ -33,6 +33,7 @@ use OC\DB\ConnectionFactory; use OC\DB\MigrationService; use OC\SystemConfig; use OCP\IL10N; +use OCP\Migration\IOutput; use OCP\Security\ISecureRandom; use Psr\Log\LoggerInterface; @@ -150,11 +151,11 @@ abstract class AbstractDatabase { */ abstract public function setupDatabase($username); - public function runMigrations() { + public function runMigrations(?IOutput $output = null) { if (!is_dir(\OC::$SERVERROOT."/core/Migrations")) { return; } - $ms = new MigrationService('core', \OC::$server->get(Connection::class)); + $ms = new MigrationService('core', \OC::$server->get(Connection::class), $output); $ms->migrate('latest', true); } } |