From f28588ecb6ec2dec08ea0446a7dc759fd9b1ed41 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Wed, 15 Oct 2025 14:24:59 +0530 Subject: [PATCH] updated migration --- src/Appwrite/Platform/Workers/Migrations.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index a51de9c4f3..0a4be7bc48 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -463,8 +463,7 @@ class Migrations extends Action */ $databaseOverride = ''; $dbScheme = ''; - $project = $this->project; - $region = $project->getAttribute('region'); + $region = $this->project->getAttribute('region'); switch ($databaseType) { case 'documentsdb': $databases = Config::getParam('pools-documentsdb', []); @@ -474,7 +473,7 @@ class Migrations extends Action break; default: // legacy/tablesdb case where projects having the location of the database - return $project->getAttribute('database'); + return $this->project->getAttribute('database'); } if ($region !== 'default') {