diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 7535bdb..a10072c 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -315,7 +315,7 @@ protected function createDatabase(Database $resource): bool $database = $this->database->createDocument('databases', new UtopiaDocument([ '$id' => $resource->getId(), 'name' => $resource->getDatabaseName(), - 'enabled' => true, + 'enabled' => $resource->getEnabled(), 'search' => implode(' ', [$resource->getId(), $resource->getDatabaseName()]), '$createdAt' => $resource->getCreatedAt(), '$updatedAt' => $resource->getUpdatedAt(), @@ -375,7 +375,7 @@ protected function createCollection(Collection $resource): bool 'databaseId' => $resource->getDatabase()->getId(), '$permissions' => Permission::aggregate($resource->getPermissions()), 'documentSecurity' => $resource->getDocumentSecurity(), - 'enabled' => true, + 'enabled' => $resource->getEnabled(), 'name' => $resource->getCollectionName(), 'search' => implode(' ', [$resource->getId(), $resource->getCollectionName()]), '$createdAt' => $resource->getCreatedAt(),