diff --git a/src/Appwrite/Migration/Version/V06.php b/src/Appwrite/Migration/Version/V06.php index 60bb8d3471..e4fbc77718 100644 --- a/src/Appwrite/Migration/Version/V06.php +++ b/src/Appwrite/Migration/Version/V06.php @@ -35,7 +35,7 @@ class V06 extends Migration case Database::SYSTEM_COLLECTION_KEYS: if ($document->getAttribute('secret', null)) { $json = \json_decode($document->getAttribute('secret'), true); - if ($json['data'] || $json['method'] || $json['iv'] || $json['tag'] || $json['version']) + if (is_array($json)) { Console::log('Secret already encrypted. Skipped: ' . $document->getId()); break;