Skip to content

Commit 5c55df0

Browse files
author
Appwrite Contributor
committed
Fix: Handle missing 'database' key in Appwrite source by using null for correct fallback
1 parent 111f622 commit 5c55df0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Migration/Sources/Appwrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ private function exportDatabases(int $batchSize, array $resources = []): void
865865
'createdAt' => $database['$createdAt'],
866866
'updatedAt' => $database['$updatedAt'],
867867
'type' => $originalType,
868-
'database' => $database['database'],
868+
'database' => $database['database'] ?? null,
869869
'enabled' => $database['enabled'] ?? true,
870870
]);
871871
$databases[] = $newDatabase;

0 commit comments

Comments
 (0)