From 3a963fab0beffb095e97739f796b4cfee58c19c7 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 20 Jul 2022 15:27:27 +0200 Subject: [PATCH] fix: remove unnecessary conditions --- src/Appwrite/Migration/Version/V14.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Appwrite/Migration/Version/V14.php b/src/Appwrite/Migration/Version/V14.php index d26852901f..7d7d551ec5 100644 --- a/src/Appwrite/Migration/Version/V14.php +++ b/src/Appwrite/Migration/Version/V14.php @@ -253,21 +253,15 @@ class V14 extends Migration /** * Add Internal ID 'collectionInternalId' for Subqueries. */ - if (!empty($document->getAttribute('collectionId')) && is_null($document->getAttribute('collectionInternalId'))) { - $document->setAttribute('collectionInternalId', $internalId); - } + $document->setAttribute('collectionInternalId', $internalId); /** * Add Internal ID 'databaseInternalId' for Subqueries. */ - if (is_null($document->getAttribute('databaseInternalId'))) { - $document->setAttribute('databaseInternalId', '1'); - } + $document->setAttribute('databaseInternalId', '1'); /** * Add Internal ID 'databaseId'. */ - if (is_null($document->getAttribute('databaseId'))) { - $document->setAttribute('databaseId', 'default'); - } + $document->setAttribute('databaseId', 'default'); /** * Re-create Attribute.