Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken storahe engine #115

Merged
merged 1 commit into from
Feb 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
}
}