From 644dcb8fb15341c5c0e339efd3f1f602fe14e0e1 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 1 Feb 2026 15:11:29 +0200 Subject: [PATCH] empty $credentials --- src/Appwrite/Platform/Workers/Migrations.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index acec464974..f1b501d2be 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -338,6 +338,9 @@ class Migrations extends Action throw new \Exception('_APP_MIGRATION_ENDPOINT env is empty'); } + /** + * Overwrite env + */ $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1'; @@ -346,8 +349,10 @@ class Migrations extends Action if ($migration->getAttribute('source') === SourceAppwrite::getName()) { if (empty($credentials)) { - $credentials['projectId'] = $credentials['projectId'] ?? $project->getId(); - $credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; + //$credentials['projectId'] = $credentials['projectId'] ?? $project->getId(); + //$credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; + $credentials['projectId'] = $project->getId(); + $credentials['apiKey'] = $tempAPIKey; $credentials['endpoint'] = $endpoint; } }