diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 2520acb6..8425adc5 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -337,7 +337,7 @@ protected function createDatabase(Database $resource): bool '$createdAt' => $resource->getCreatedAt(), '$updatedAt' => $resource->getUpdatedAt(), 'originalId' => empty($resource->getOriginalId()) ? null : $resource->getOriginalId(), - 'type' => empty($resource->getType()) ? 'sql' : $resource->getType(), + 'type' => empty($resource->getType()) ? 'legacy' : $resource->getType(), ])); $resource->setSequence($database->getSequence()); diff --git a/src/Migration/Resources/Database/Database.php b/src/Migration/Resources/Database/Database.php index f644c5f5..48254630 100644 --- a/src/Migration/Resources/Database/Database.php +++ b/src/Migration/Resources/Database/Database.php @@ -46,7 +46,7 @@ public static function fromArray(array $array): self updatedAt: $array['updatedAt'] ?? '', enabled: $array['enabled'] ?? true, originalId: $array['originalId'] ?? '', - type: $array['type'] ?? 'sql', + type: $array['type'] ?? 'legacy', ); } diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index ba07b941..802d2b97 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -725,7 +725,7 @@ private function exportDatabases(int $batchSize): void $database['name'], $database['$createdAt'], $database['$updatedAt'], - type: $database['type'] ?? 'sql' + type: $database['type'] ?? 'legacy' ); $databases[] = $newDatabase;