fix: migrate certificatesId
This commit is contained in:
parent
ab0211d12f
commit
64826fa545
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue