Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r--lib/private/DB/MigrationService.php35
1 files changed, 13 insertions, 22 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 13bbe8dc5d0..4b7e4d3a040 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -45,35 +45,25 @@ use OCP\Migration\IOutput;
use Psr\Log\LoggerInterface;
class MigrationService {
-
- /** @var boolean */
- private $migrationTableCreated;
- /** @var array */
- private $migrations;
- /** @var IOutput */
- private $output;
- /** @var Connection */
- private $connection;
- /** @var string */
- private $appName;
- /** @var bool */
- private $checkOracle;
+ private bool $migrationTableCreated;
+ private array $migrations;
+ private string $migrationsPath;
+ private string $migrationsNamespace;
+ private IOutput $output;
+ private Connection $connection;
+ private string $appName;
+ private bool $checkOracle;
/**
- * MigrationService constructor.
- *
- * @param $appName
- * @param Connection $connection
- * @param AppLocator $appLocator
- * @param IOutput|null $output
* @throws \Exception
*/
- public function __construct($appName, Connection $connection, IOutput $output = null, AppLocator $appLocator = null) {
+ public function __construct($appName, Connection $connection, ?IOutput $output = null, ?AppLocator $appLocator = null) {
$this->appName = $appName;
$this->connection = $connection;
- $this->output = $output;
- if (null === $this->output) {
+ if ($output === null) {
$this->output = new SimpleOutput(\OC::$server->get(LoggerInterface::class), $appName);
+ } else {
+ $this->output = $output;
}
if ($appName === 'core') {
@@ -104,6 +94,7 @@ class MigrationService {
}
}
}
+ $this->migrationTableCreated = false;
}
/**