diff --git a/src/Appwrite/Migration/Version/V06.php b/src/Appwrite/Migration/Version/V06.php index b9a253701c..46798b315f 100644 --- a/src/Appwrite/Migration/Version/V06.php +++ b/src/Appwrite/Migration/Version/V06.php @@ -44,7 +44,7 @@ class V06 extends Migration break; case Database::SYSTEM_COLLECTION_PROJECTS: foreach ($providers as $key => $provider) { - if ($document->getAttribute('usersOauth' . \ucfirst($key) . 'Secret')) { + if ($document->getAttribute('usersOauth' . \ucfirst($key) . 'Secret', null)) { //TODO: take care of filter ['encrypt] } }