mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
- Fixing SystemResource
- Adding tests for StorageManager - Updating doc
This commit is contained in:
parent
cc501439af
commit
dbd5b5bb6e
12 changed files with 547 additions and 59 deletions
10
update.php
10
update.php
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue