diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index cef732b08c..3dd4c3f771 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -340,6 +340,9 @@ class Migrations extends Action */ $endpoint = System::getEnv('_APP_MIGRATION_ENDPOINT'); + if(empty($endpoint)){ + throw new \Exception('empty _APP_MIGRATION_ENDPOINT'); + } try { $credentials = $migration->getAttribute('credentials', []);