From d8ad759751d5d089c4dc9378dff12a00eba1bfd5 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Tue, 21 Apr 2026 17:57:41 +0530 Subject: [PATCH] updated --- src/Migration/Sources/Appwrite.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index 6691c6a8ba..e5eedaab81 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -1153,9 +1153,16 @@ class Appwrite extends Source $id = $row['$id']; $permissions = $row['$permissions']; + // TablesDB(API reader) returns `$tableId`, while downstream import cleanup still + // normalizes/removes legacy `$collectionId`. Mirror the value to keep + // compatibility across both shapes. + if (isset($row['$tableId']) && !isset($row['$collectionId'])) { + $row['$collectionId'] = $row['$tableId']; + } + unset($row['$id']); unset($row['$permissions']); - unset($row['$collectionId']); + unset($row['$tableId']); unset($row['$databaseId']); unset($row['$sequence']); unset($row['$collection']);