mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Updated upgrade script
This commit is contained in:
parent
58807de605
commit
0e7d120639
1 changed files with 2 additions and 0 deletions
|
|
@ -141,6 +141,8 @@ function fixDocument(Document $document) {
|
|||
->removeAttribute('$uid')
|
||||
;
|
||||
|
||||
Console::log('Switched from $uid to $id: '.$document->getCollection().'/'.$document->getId());
|
||||
|
||||
foreach($document as &$attr) {
|
||||
if($attr instanceof Document) {
|
||||
$attr = fixDocument($attr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue