mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Skip empty ID
This commit is contained in:
parent
2d6d79de7b
commit
4d4cfef1ad
1 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,11 @@ class V23 extends Migration
|
||||||
$collections = $this->collections[$collectionType];
|
$collections = $this->collections[$collectionType];
|
||||||
|
|
||||||
foreach ($collections as $collection) {
|
foreach ($collections as $collection) {
|
||||||
$id = $collection['$id'];
|
$id = $collection['$id'] ?? null;
|
||||||
|
|
||||||
|
if (empty($id)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Console::log("Migrating Collection \"{$id}\"");
|
Console::log("Migrating Collection \"{$id}\"");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue