diff --git a/manifest.php b/manifest.php index 15eb6cf8..e5a421d1 100644 --- a/manifest.php +++ b/manifest.php @@ -29,7 +29,7 @@ 'label' => 'Browser and OS diagnostic tool', 'description' => 'Check compatibility of the os and browser of a client', 'license' => 'GPL-2.0', - 'version' => '1.15.0', + 'version' => '1.15.1', 'author' => 'Open Assessment Technologies SA', 'requires' => array( 'tao' => '>=4.0.0', diff --git a/scripts/update/Updater.php b/scripts/update/Updater.php index 2949fc0c..d82f785f 100644 --- a/scripts/update/Updater.php +++ b/scripts/update/Updater.php @@ -333,6 +333,14 @@ public function update($initialVersion) $this->skip('1.10.2', '1.13.2'); + if ($this->isBetween('1.11.0', '1.15.1')) { + $service = $this->safeLoadService(Storage::SERVICE_ID); + if (!$service instanceof Storage) { + // invalid Service, replace with default + $this->getServiceManager()->register(Storage::SERVICE_ID, new PaginatedSqlStorage($storageService->getOptions())); + } + } + if ($this->isVersion('1.13.2')) { $storageService = $this->getServiceManager()->get(Storage::SERVICE_ID); @@ -392,5 +400,7 @@ public function update($initialVersion) $this->setVersion('1.15.0'); } + + $this->skip('1.15.0', '1.15.1'); } }