Skip to content

Commit

Permalink
Merge pull request #115 from oat-sa/fix/update-broken-config
Browse files Browse the repository at this point in the history
Fix broken storahe engine
  • Loading branch information
siwane authored Feb 24, 2017
2 parents 28a2a3a + 36b909e commit a0a5f35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 10 additions & 0 deletions scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -392,5 +400,7 @@ public function update($initialVersion)

$this->setVersion('1.15.0');
}

$this->skip('1.15.0', '1.15.1');
}
}

0 comments on commit a0a5f35

Please sign in to comment.