- Fixing SystemResource

- Adding tests for StorageManager
- Updating doc
This commit is contained in:
nupplaPhil 2020-01-06 17:42:28 +01:00
parent cc501439af
commit dbd5b5bb6e
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
12 changed files with 547 additions and 59 deletions

View file

@ -418,5 +418,15 @@ function update_1329()
Config::delete('storage', 'class');
}
$photos = DBA::select('photos', ['backend-class', 'id'], ['backend-class IS NOT NULL']);
foreach ($photos as $photo) {
DBA::update('photos', ['backend-class' => $photo['backend-class']::NAME], ['id' => $photo['id']]);
}
$attachs = DBA::select('attach', ['backend-class', 'id'], ['backend-class IS NOT NULL']);
foreach ($attachs as $attach) {
DBA::update('photos', ['backend-class' => $attach['backend-class']::NAME], ['id' => $attach['id']]);
}
return Update::SUCCESS;
}