mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: migrate certificatesId
This commit is contained in:
@@ -483,6 +483,15 @@ class V11 extends Migration
|
||||
$document->setAttribute('$read', ['role:all']);
|
||||
$document->setAttribute('$write', ['role:all']);
|
||||
|
||||
break;
|
||||
case OldDatabase::SYSTEM_COLLECTION_CERTIFICATES:
|
||||
/**
|
||||
* Replace certificateId attribute.
|
||||
*/
|
||||
if ($document->getAttribute('certificateId') !== null) {
|
||||
$document->setAttribute('$id', $document->getAttribute('certificateId'));
|
||||
}
|
||||
|
||||
break;
|
||||
case OldDatabase::SYSTEM_COLLECTION_DOMAINS:
|
||||
$projectId = $this->getProjectIdFromReadPermissions($document);
|
||||
|
||||
Reference in New Issue
Block a user