From d5335c4398fc9c32842f07d2e955f9fa86f632b6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 23 Apr 2024 15:19:30 +1200 Subject: [PATCH] Remove redundant delete --- src/Appwrite/Platform/Workers/Databases.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Databases.php b/src/Appwrite/Platform/Workers/Databases.php index b305279e7a..6510461eee 100644 --- a/src/Appwrite/Platform/Workers/Databases.php +++ b/src/Appwrite/Platform/Workers/Databases.php @@ -529,8 +529,6 @@ class Databases extends Action ], $dbForProject, function ($attribute) use ($dbForProject, $databaseInternalId) { - $dbForProject->deleteDocument('attributes', $attribute->getId()); - Console::success('Deleted document "' . $attribute->getId() . '" related collection successfully'); $dbForProject->purgeCachedDocument('database_' . $databaseInternalId, $attribute->getAttribute('collectionId')); $dbForProject->purgeCachedCollection('database_' . $databaseInternalId . '_collection_' . $attribute->getAttribute('collectionInternalId')); }