diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-11-08 12:42:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 12:42:52 +0100 |
commit | 3be53b236f2c945373c2e689d5a02d865faadef2 (patch) | |
tree | 15e7a6ed336684a96f4f3589fe9c7cc2674552be /lib/private/DB/MigrationService.php | |
parent | 168560c0f29d8f326026f18273c763c48a5afafb (diff) | |
parent | 6f079279d9fce3ea88f3e618bbbc07faaf9fb84b (diff) | |
download | nextcloud-server-3be53b236f2c945373c2e689d5a02d865faadef2.tar.gz nextcloud-server-3be53b236f2c945373c2e689d5a02d865faadef2.zip |
Merge pull request #41215 from nextcloud/backport/41214/stable27
[stable27] fix(install): Make installing more verbose
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r-- | lib/private/DB/MigrationService.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index 7993730b230..f8c6a9907ce 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -406,6 +406,7 @@ class MigrationService { */ public function migrate($to = 'latest', $schemaOnly = false) { if ($schemaOnly) { + $this->output->debug('Migrating schema only'); $this->migrateSchemaOnly($to); return; } @@ -439,6 +440,7 @@ class MigrationService { $toSchema = null; foreach ($toBeExecuted as $version) { + $this->output->debug('- Reading ' . $version); $instance = $this->createInstance($version); $toSchema = $instance->changeSchema($this->output, function () use ($toSchema): ISchemaWrapper { @@ -447,15 +449,19 @@ class MigrationService { } if ($toSchema instanceof SchemaWrapper) { + $this->output->debug('- Checking target database schema'); $targetSchema = $toSchema->getWrappedSchema(); if ($this->checkOracle) { $beforeSchema = $this->connection->createSchema(); $this->ensureOracleConstraints($beforeSchema, $targetSchema, strlen($this->connection->getPrefix())); } + + $this->output->debug('- Migrate database schema'); $this->connection->migrateToSchema($targetSchema); $toSchema->performDropTableCalls(); } + $this->output->debug('- Mark migrations as executed'); foreach ($toBeExecuted as $version) { $this->markAsExecuted($version); } |