mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
Make Storage testable & add tests
- Making StorageManager dynamic (DI::facStorage()) - Making concrete Storage dynamic (DI::storage()) - Add tests for Storage backend and failure handling - Bumping Level-2/Dice to "dev-master" until new release - Using Storage-Names instead of Storage-Classes in config (includes migration)
This commit is contained in:
parent
a5895f8623
commit
08edeae2f9
18 changed files with 744 additions and 242 deletions
12
update.php
12
update.php
|
@ -408,3 +408,15 @@ function update_1327()
|
|||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1329()
|
||||
{
|
||||
$currStorage = Config::get('storage', 'class', '');
|
||||
|
||||
if (!empty($currStorage)) {
|
||||
$storageName = array_key_first(\Friendica\Core\StorageManager::DEFAULT_BACKENDS, $currStorage);
|
||||
Config::set('storage', 'name', $storageName);
|
||||
Config::delete('storage', 'class');
|
||||
}
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue